e-ParaTodos

e-Goodness For Everyone

By

Parse error: syntax error, unexpected T_VARIABLE

filezillaWhen uploading themes especially in WordPress I sometimes get this error:

WordPress – Parse error: syntax error, unexpected T_VARIABLE

My solution is check FTP settings are to binary transfer.

In FileZilla 2.2.32, go Edit > Settings > File transfer settings > ASCII/Binary. Set it to always binary: that should do the trick.

In FileZilla 3.5.0 the setting is in Edit > Settings > Transfers > File Types > Default transfer type > Binary.