• Hello, after an update of storefront, for the last version, i have unexpected T_FUNCTION / class-storefront-customizer.php on line 154

    if i want create a new woocommerce with storefront, i have the same.

    My shop is in a subfolder of my main site.

    Thank you for your help.

    Fréd, from France.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello,

    The error message is telling you that there is a problem in the storefront customzer.php.
    Looks like this is not a Storefront theme issue but an issue with the storfront customizer you are using?

    This can be a conflict with some other plugin.
    Have you tried de-activating all plugins to see if this issue/error goes away?

    If so start activating plugins one by one to see which one is causing this conflict.
    As the customizer is a premium plugin you should be able to ask for support at Woocommerce for this as well?

    Hope this helps?
    Annie

    • This reply was modified 8 years, 2 months ago by LogoLogics.
    Thread Starter geologie

    (@geologie)

    Hello, thank for your help, and sorry for my bag english/americain.

    1/ I install a new wordpress in last version
    2/ I install a new woocommerce in last version
    = ok, i have a website (without any plugin or other, with native theme).

    3/ i install storefront, and i have :
    Parse error: syntax error, unexpected T_FUNCTION in /home/lesmineri/www/jwdino/boutiquedinosaure/wp-content/themes/storefront/inc/customizer/class-storefront-customizer.php on line 154

    at this line, i see :

    $wp_customize->selective_refresh->add_partial( 'custom_logo', array(
    					'selector'        => '.site-branding',
    					'render_callback' => function() {
    						storefront_site_title_or_logo();
    					},
    				) );

    a bug of storefront ?

    Looks like you’re not using the latest version of Storefront or WordPress core. Please update both ??

    Hi

    I’m having the same issue. Brand new site with no plugins installed. Any help would be appreciated

    I am having a similar issue after updating Storefront. I am using it together with the child theme Boutique and it is on a new site with no additional plugins. All I have is WooCommerce, Storefront and Boutique and when I go to Appearances>Customize I get the following warning:
    Warning: Creating default object from empty value in /home/lorirae/public_html/wp-content/themes/storefront/inc/customizer/class-storefront-customizer.php on line 105
    I have tried asking in different places even at WooCommerce tech but because they are the free plugins there is no support. Please post an answer If anyone has any idea how to fix it or where to look.Much appreciated!

    Please confirm which version of WordPress you’re using. If it’s not the latest then please update ??

    Thread Starter geologie

    (@geologie)

    For me i found the source of problem, it’s the version of php. I was in 5.2, no problem in past but with the last update of storefrond, i have the error message.
    I use now php 5.6, and without other modification, it’s ok.
    Thank for your help, best whishes from France :).
    Merci !

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘unexpected T_FUNCTION / class-storefront-customizer.php on line 154’ is closed to new replies.