WordPress php error after editing file with FileZilla

It could be a problem with your file encoding. Make sure that your files are encoded in the same way as your wordpress install. In most cases your site use files encoded in UTF-8.

Go to FileZilla options: Open Site Manager > Charset tab – Custom Encoding > and see if it’s UTF-8.

When it’s set properly try to open and edit a file and see if it works!