Open jasoncomes opened 7 years ago
This is a bug within capistrano's stack (something to do with ruby's string encoding, I never fully understood it myself).
In the meantime, you should be able to find the offending files like this:
find /var/www/example.com/production/master/current/web/wp-content/uploads/ -name '*' -print | grep -P '[^\x00-\x7f]'
Note: it took a lot of googling and trial/error to just get that command figured out...and this will find any non ascii chars, be they valid UTF8 or not
When running
bundle exec cap production evolve:down:files
get this error:This is caused by the Marketing/Content team uploading files with invalid UTF8 names, breaking the possibility to pull down. Moving forward we'll be adding something along these lines to prevent this issue -> https://wpartisan.me/tutorials/rename-clean-wordpress-media-filenames. For the meantime is there a way to find the file names on the production server to be able to fix(find invalid UTF8 byte characters and rename command for files in the uploads directory) or something we can do on the server to prevent this error. Right now, its broken on affordablecolleges.com and onlinecolleges.net.