• Resolved draquo

    (@draquo)


    Hi everybody!

    I have this existing wordpress site that I just recently get my hands on. The site is working properly on the web server. I am making modifications on the site, but the way I’m doing it is I’m doing the changes first on my local pc with XAMPP. I copied all the files from the webhost to my local pc. The index.php (home page)is working well, but whenever I navigate thorugh the pages, I’m getting this error – “Parse error: syntax error, unexpected $end in c:\xampp\htdocs\wp-content\themes\[theme name]\header.php on line 92.” I replaced the real theme name with [theme name] here for privacy purposes.

    Have anyone of you encountered this error before? Please help.

    Thanks,
    draquo

Viewing 6 replies - 1 through 6 (of 6 total)
  • I assume you have already tried dropping a fresh header.php in the folder?

    Thread Starter draquo

    (@draquo)

    hi samboll,

    what do you mean by dropping a fresh header.php? I just used the same header.php i downloaded from the server. Do I have to do something else?

    Thanks!

    that should work on localhost if working on website, but I meant from a fresh download of the theme zip
    sometimes files are corrupted in uploading/downloadin

    Thread Starter draquo

    (@draquo)

    Yes, I already did that twice and still getting the same error. 🙁

    Thread Starter draquo

    (@draquo)

    Hi,

    I already solved this matter. I change all <? in my header.php to <?php. I found out that local server does not accept <?, they have to be in <?php.

    Now, all is working well.

    Hi draquo,

    thank you very much for the solution.
    I had the same problem and now, all is working well as well.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Parse error on header.php’ is closed to new replies.