Getting error "Parse error: syntax error, unexpected T_STRING in" on line 1

Every time I update anything in the header-extension.php, or footer-extension.php (no matter how small), I get the following…

Parse error: syntax error, unexpected T_STRING in /home/public_html/wp-content/themes/travelify/library/structure/header-extensions.php on line 1

Do you know what would cause this?

This can happen when your FTP client, text editor places a random blank spaces inside the file because of format incapabilities.

Try editing you file locally and then upload them to your web hosting.

This happens and it’s completely random thing. For me it usually happens when I develop locally on Mac and then try to upload files to Linux server file on file bases. The best option is to upload everything as archive and then unarchive it.

Thanks aigars, it solved my problem

Hey, i get same error, only now i cant access my website at all, even as admin