WordPress.org

Ready to get started?Download WordPress

Forums

Shopp Cache Helper
Fatal error upon activation (10 posts)

  1. Hiranthi
    Member
    Posted 2 years ago #

    Using latest version of W3TC, this plugin gives me a fatal error when I try to activate it:

    Fatal error: Call to undefined method W3_Config::instance() in /.../wp-content/plugins/shopp-cache-helper/shopp-cache-helper.php on line 244

    Line 244 says:
    $config = W3_Config::instance();

    Change that to:
    $config = new W3_Config;

    And now the plugin can be activated again (and works too).

    http://wordpress.org/extend/plugins/shopp-cache-helper/

  2. moongoose
    Member
    Posted 2 years ago #

    I'm having same problem. This fixed it. Thanks so much!!!

  3. Frederick Townes
    Member
    Posted 2 years ago #

    Thanks everyone.

  4. NatalieAB
    Member
    Posted 2 years ago #

    I'm sorry but how do you put that code in? It won't even let me see my blog only that message.

  5. Frederick Townes
    Member
    Posted 2 years ago #

    @Hiranthi, can you mark this issue resolved?

  6. Hiranthi
    Member
    Posted 2 years ago #

    @NatalieAB, you have to change it with a code/text editor (on your computer, after changing it re-upload the file through FTP). Or: disable the plugin (ie add an underscore to its plugin folder) and then edit it through the Plugin Editor in WP. Don't forget to remove the underscore after saving the edit and then re-enable the plugin.

    @Frederick, this topic is set as "Not a support question". Unfortunately the plugin maker (of the Shopp Cache plugin) never added this fix to the plugin so it's not really resolved.

  7. Frederick Townes
    Member
    Posted 2 years ago #

    Ok Hiranthi. I hope they make an update soon.

  8. jazbek
    Member
    Posted 1 year ago #

    This fix allowed me to activate the plugin, but the plugin doesn't work. I enabled it while I had 2 items in my cart. Upon removing an item, the cart refreshed and the item was still there.

  9. jazbek
    Member
    Posted 1 year ago #

    It seems that DONOTCACHEPAGE is only read once for a page. If the constant is not defined one time when a page loads, then the page will be cached. Once the page is in the cache, it'll always load it from the cache.

  10. jazbek
    Member
    Posted 1 year ago #

    I actually just got this working by manually adding 'shopp_items_in_cart' to the w3 total cache list of rejected cookies. Seems like the plugin tries to set it automatically but it doesn't work.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic