• Please I need help. I just made the last Storefront theme update and instantly have a fatal error, now I can’t do anything with the site and the addmin…

    href=”https://www.vynildeco.com/wp-admin/plugins.php?plugin_status=upgrade”>

    Fatal error: Cannot redeclare is_woocommerce_activated() (previously declared in /home/content/p3pnexwpnas03_data02/05/3165405/html/wp-content/themes/woot/inc/functions/extras.php:24) in /home/content/p3pnexwpnas03_data02/05/3165405/html/wp-content/themes/storefront/inc/storefront-functions.php on line 13

Viewing 15 replies - 1 through 15 (of 17 total)
  • Hey!

    What is this ‘woot’ theme you’re using? Is it a child theme? If so, deactivate it.

    The issue is that your ‘woot’ theme is declaring a function already present in Storefront.

    If you’re not using a child theme I recommend a fresh install of Storefront in the correct directory.

    Cheers

    Thread Starter LauraLS

    (@laurals)

    I use Storefront but I use Site Origin for widgets and used the
    Page Builder Themes for some pages… it isn’t a child theme..

    I had a similar experience upgrading to 2.0.0 today, and just joined here to see if others had similar issues. In my case, I immediately got a “500 Error – Website Not Available” message. All my other WP sites (non Storefront) on the same server worked fine.

    Since I could no longer access the admin portion of my site, and had to FTP upload Storefront 1.6.1 to resolve the issue. Once that was uploaded, my site was working fine again. I may try again, or wait until 2.0.1 or something similar. My site is pretty bare bones, and only uses Woocommerce, Storefront and a few simple plugins.

    I’m using Woot and had the same error.

    go to

    wp-content/themes/storefront/inc/storefront-functions.php

    Change;

    function is_woocommerce_activated() {
    	return class_exists( 'woocommerce' ) ? true : false;
    }

    to

    if ( ! function_exists( 'is_woocommerce_activated' ) ) {
    	function is_woocommerce_activated() {
    		return class_exists( 'woocommerce' ) ? true : false;
    	}
    }

    There were other things broken with Woot so I would recommend just rolling back like I did, but this gives a quick fix (Which is NOT a permanent or long-term solution)

    Thread Starter LauraLS

    (@laurals)

    hottoddy
    Thanks for the comments I will try that!

    Ah, I wasn’t even aware of the Woot theme. That explains it. Looks like it’s an issue with that theme so I suggest posting an issue on it’s own forum.

    brandontvc’s snippet should fix though.

    Thread Starter LauraLS

    (@laurals)

    Well finally!! Thanks you all !! I just had to FTP upload Storefront 1.6.1 to resolve the issue…!!!!
    The theme is “Storefront” from “Woot”.

    @laurals that isn’t really solving the issue. You will need to update to Storefront 2.0 eventually. I strongly suggest reporting this issue to the Woot theme author.

    Thread Starter LauraLS

    (@laurals)

    Hi Jameskoster!
    Thats true, but I tried send a ticket to Woothemes, but I′m a non-paying customer, so I can’t… Please tell how, if you know…

    Thanks !

    @laurals The author of the Woot theme will need to release an update. Please post a topic on their support forum linking to this topic. They’ll know what to do ??

    Thread Starter LauraLS

    (@laurals)

    Ok! It is done!

    Thread Starter LauraLS

    (@laurals)

    Ok! Just do it !

    Thanks ??

    In updating my theme to Storefront 2.0, my entire site became unavailable on my computer (the mobile site is still up). With some assistance from the tech support of my hosting co., I was able to get live again. However, after updating to 2.1, the same thing has happened including my access to WP-admin. I need a permanent fix or procedure for updating Storefront. I use the Woot child theme.
    Woocommerce doesn’t seem to have a way to communicate the problem if you’re not a paying customer.
    Any help will be extremely welcome!

    The issue lies in the Woot child theme. As has been posted on this topic several times now, please post on their forum.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Fatal error with the last update Storefront theme’ is closed to new replies.