• Hi there

    Have just moved my blog to a new server and url.

    Followed the instructions in wordpress codex (downloaded using ftp, then changed domain urls in settings, then downloaded again, also downloaded database using phpmyadmin, and then uploaded both the downloaded database and all downloaded files to the new location with updated db details in wpconfig)

    I am getting this error message

    Parse error: syntax error, unexpected $end in /www/business/8843/wp-includes/theme.php on line 1941

    This was working perfectly before… cannot work out why this is coming up. Any ideas?

    Thanks so much

Viewing 5 replies - 1 through 5 (of 5 total)
  • You might start by uploading a fresh copy of WordPress ON TOP OF the existing version. If you are using 2010 or 2011 themes, back them up first as they will be written over. Everything else should be fine.

    Doing this eliminates the possibility that your WordPress files got corrupted during the move. It may not resolve the problem but it eliminates one potential source of the problem. And, it might solve the problem.

    Thread Starter ben1000

    (@ben1000)

    I have tried starting with a new version of WordPress (which works fine) and uploaded folder by folder. It all works fine until the wp-includes folder is uploaded when that message emerges…

    Parse error: syntax error, unexpected $end in /www/business/8843/wp-includes/theme.php on line 1941

    Not sure what to do. Thanks

    The meaning of the error message is an IF statement is not closed somewhere. The program is running to the end of that file with an IF statement still unclosed

    The error message generally lists the very last line # in the file in question. In WordPress 3.2.1 there are 1986 lines in file /wp-includes/theme.php Your error message says the last line is line 1941

    How many lines are in your copy of that file? Are you running 3.2.1? If not, what version are you running?

    Thread Starter ben1000

    (@ben1000)

    Ah thats very interesting because it looks as if its just stopped half way through… Im redownloading it and will then try a re-upload and hope that works. Thanks

    That’s why I suggested you reupload the entire WordPress install. If one file is corrupt (partially missing) there’s a good possibility there are other files like that also.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Moving Blog Server: Parse Error unexpected $end’ is closed to new replies.