• Resolved utnalove

    (@utnalove)


    Hello, I have just move my blog to a new hosting provider. This is what I did:

    -backup databases and files
    -uploaded the files to the new server
    -created a new database in the new server and imported the previously exported sql DB

    Now I get this error:

    Parse error: syntax error, unexpected '}' in /home/nameofmysite/public_html/wp-content/themes/nameofmytheme/header.php on line 7

    On line 7 I have this:
    <?php if ( is_home() ) { ?><?php } else { ?><?php}?><div id="top"></div>

    It was working fine on the old server.

    I can think of this. In the old server wordpress was installed on:
    /folderofmysite/

    In the new server it is here:
    /home/nameofmysite/public_html/

    But still both folders are the roots to my site. Did I do something wrong?

Viewing 1 replies (of 1 total)
  • Thread Starter utnalove

    (@utnalove)

    Resolved. It looks like that the header.php gets changed each time I upload it via FTP to the new hosting. Instead of having around 600 rows, after upload all the code is “altogether” and has few tens of lines :(((

    I had yo upload it via web browser for some reason. My FileZilla failed… or maybe the new hosting changes its format automatcailly.. hmm…

Viewing 1 replies (of 1 total)
  • The topic ‘SOS! Problem after moving the blog to a new server. Parse error: syntax error’ is closed to new replies.