• Resolved Carles Chan

    (@carleschan)


    Hi guys,

    I’m getting this fatal error after updating Storefront from 1.6.1 to 2.0.0. The error message is like “Parse error: syntax error, unexpected T_FUNCTION in /home1/user/public_html/mysite.com/wp-content/themes/storefront/inc/customizer/class-storefront-customizer.php on line 73”. Glad I have a full backup of the site. Any solution to fix it please?

Viewing 11 replies - 1 through 11 (of 11 total)
  • not without seeing the site…

    votion

    (@votion)

    I am getting the same error. It seems to of started when the site did an automatic update on Saturday morning 06.05.16. I presume it was Storefront being updated.

    Did you find a way to fix it?

    This was my error message:
    Parse error: syntax error, unexpected T_FUNCTION in /home4/mysite/public_html/wp-content/themes/storefront/inc/customizer/class-storefront-customizer.php on line 73

    many thanks

    Votion

    James Koster

    (@jameskoster)

    Hey,

    I saw this crop up in the beta test. Turned out to be an old version of PHP in that case. Please check your version and perhaps get in touch with your host to update it if it’s very old.

    Cheers

    votion

    (@votion)

    OK thanks for the prompt response.
    Its running PHP 5.4.24

    What version does it need to run?

    votion

    (@votion)

    I updated it to Version 6 and it seems to be working now.

    Thanks for your help

    kategorgeous

    (@kategorgeous)

    Hi – I am also getting this error but it is on a live site on 123-reg hosted server – should I contact 123-reg?

    kategorgeous

    (@kategorgeous)

    in the meantime – how do I revert back to the previous version – I need to get the site back up – thanks

    esmi

    (@esmi)

    @kategorgeous: If you require assistance then, as per the Forum Welcome, please post your own topic.

    James Koster

    (@jameskoster)

    @kategorgeous old versions can be downloaded from github.

    Yes, you’ll likely need to contact your host about updating your PHP version.

    There should be an option in your hosting cpanel to select PHP version

    Thread Starter Carles Chan

    (@carleschan)

    Update Host PHP to 5.6.16, problem resolved. Thanks to jameskoster.

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Parse error: syntax error, unexpected T_FUNCTION’ is closed to new replies.