Parse error: syntax error, Unexpected '}' functions.php line 1

Asked

Viewed 169 times

-2

I am with a wordpress installation running on another server and locally, however, when I climbed to another host I received the following error:

Parse error: syntax error, Unexpected '}' in /home/khoru270/public_html/wp-content/themes/u-design/functions.php on line 1

I have checked several times and can not find where this key would be. And as I said is working in two other places.

Follows the code:
http://pastebin.com/P1nTWDSV

  • The code in Pastebin shows no errors, which version of PHP is using on the server presenting the error?

  • What is the version of php on your server? Post the contents of /home/khoru270/public_html/wp-content/themes/u-design/functions.php ... The problem seems to me a typo, but it can also be an error with character conversion.

  • The PHP version is 5.2 Bruno

  • The code is in the Pastebin link

  • 1

    Renato, I’m sorry, but I won’t read 3200 lines of code to look for the error for you. No chance. If you say that the same theme works in other places, almost certainly the error is not in that file. If you turn off all plugins, gives the same error?

  • I do not believe that there is an error in this code, at least not a syntax error, even putting a die(); in the first line it still shows the same error.

  • Probably the problem and because it is version 5.2 and on your computer should be using a newer version, I recommend that you upgrade to the server because version 5.2 is very obsolete. I recommend version 5.4+.

Show 2 more comments

1 answer

2

After almost going crazy I discovered the problem. It seems that Filezilla was corrupting the file.

In Filezilla I went to edit>settings>downloads>file types> and switch from automatic to binary. I restarted Filezilla and uploaded the file again.

I thank everyone who gave me a strength, really personal vlw.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.