• Resolved cinmybulle

    (@cinmybulle)


    Hi everyone. I’m trying to make this theme works on my website. It works perfectly on my localhost. But each time i try to upload the file front-page.php on my servor, even if i don’t do any modifications, even if i upload the original file, i have this error :

    Parse error: syntax error, unexpected 'get_header' (T_STRING) in /home/wvrgkjza/public_html/solange/wp-content/themes/constructzine-lite/front-page.php on line 1

    Then, i have to delete the theme and reinstall it… Very annoying. What can i do to fix it ?
    Thank you for your help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter cinmybulle

    (@cinmybulle)

    I found !
    I had to replace all `<?php

    /*

    * The template for displaying Single.

    *

    * @package ThemeIsle

    */

    get_header();

    ?>`

    by <?php get_header(); ?>

    I do not see any differences, besides the spaces…

    Alexandra

    (@alexandrastan001)

    Awesome! Glad that you got your fix! ??
    and thank you for sharing it with us.
    Best regards,
    Alexandra

    My fix was I needed to makes sure the file line separators were set to LF -> Unix \n.

    Hi,
    I had the same problem after editing the 404.php file… I just replace the first line with <?php get_header(); ?>
    Could you explain why this does the trick? I would like to understand why the comments /* …. */ in the php header returns an error.

    Thanks!

    Hi,

    Please create a new thread for your questions instead of opening a year old thread. Thank you. ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Front page editing error unexpected 'get_header' (T_STRING)’ is closed to new replies.