I added a function to functions.php (that was previously working) and updated it in the server using filezilla. There was a syntax error outside of my function.
Then, to solve the issue, i changed the functions.php for i copy that i had of a previously working version. But there were syntax errors there too.
Then i returned to my new version and to the backup. Both had sintax errors, but different ones.
I don't understand what is happening. It should work with the backup, or at least throw the same syntax error every time. My thoughts are that Filezilla is corrupting the file or something like that when it uploads it
¿What could be the reason for this errors?