Support » Theme: Storefront » Installing Storefront – getting Syntax Error

  • I’m trying to use the Storefront Theme. My only plugin is Woocommerce. When I activated the theme I got a blank page. Turned on the Debug script and I’m getting this:

    Parse error: syntax error, unexpected T_FUNCTION in /home2/fayette3/public_html/wpsite/wp-content/themes/storefront3/inc/customizer/class-storefront-customizer.php on line 74

    Is there something wrong with the theme files? Anyone know what I should do?

    P.S. I’m not savvy with this stuff. I’m writing this after lots of troubleshooting just to get out of the blank page trap and to turn on debug. So any replies please assume I do not know how to code. Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter rebeccaschiffman


    Also, I just tried changing my PHP version with Bluehost, first to 5.4, then 5.6, nothing changed. I’m not totally sure I did that right though.

    Hi Rebecca,

    Looks like a recent update to the theme broke something. And you’re not the only one, since someone else reported this issue here. Can you try downgrading to a previous version of theme and see if it works? You can find the older versions here. Other than that, please check your PHP version and ask your host to update it to version 6 if it isn’t already running that.

    Hope it helps.

    Best Regards,
    Suyogya (Themeisle Support)

    Hey there,

    Sorry for the trouble you’re having here.

    The line of code referenced in your error includes the use keyword which was introduced in php version 5.3. So I’m guessing your update hasn’t gone through. Try contacting your host if you’re unable to update the version yourself.


    Hi, i am sure you have fixed it now but for reference to others who might end up here,

    I had a similar problem to this and eventually figured out that my php was not updated despite changing it in my control panel. It turns out i needed to update the htaccess file

    I had to define the version of php by adding in this and it solved my problem

    # Use system PHP5 as default
    AddType x-httpd-php56 .php

    The only problem i can foresee in the future is having to update this manually in the future, fortunately it is only on my dev site!

    I am a relative newbie to the wordpress backend so apologies to any seasoned WP devs if this is a bad solution. If it is please let me know why, i would be happy to listen.


Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Installing Storefront – getting Syntax Error’ is closed to new replies.