• Resolved ianbarker24

    (@ianbarker24)


    Can you help please? I’m getting the following fatal error when trying to activate your plugin, free version;

    Fatal error: Cannot declare class SP_Admin, because the name is already in use in /hermes/bosnaweb19a/b2946/ipg.kplpoolcom/kpl-shop/wp-content/plugins/sportspress/includes/admin/class-sp-admin.php on line 15

    I’m trying to activate the pliugin on a site based upon the WooCommerce Storefront theme. Is this a conflict with another plugin in use do you think?

    Thanks
    Ian Barker

    • This topic was modified 6 years, 3 months ago by ianbarker24.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Savvas

    (@savvasha)

    Hi @ianbarker24 ,

    It seems like a conflict indeed. Can you try to switch to a default theme like Rookie or Twentytwenty and try to re-activate SportsPress?

    Thanks,
    Savvas

    @ianbarker24

    Temporarily you could add this to your sportspress.php file :
    if (class_exists(‘SP_Admin’)) {
    return false;
    }

    Better would be
    – completely delete the SportsPress plugin,
    – deactivate all other plugins,
    – switch your theme to TwentyTwenty,
    – re-install SportsPress

    Roch

    (@rochesterj)

    That’s a great workaround 🙂

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

The topic ‘Fatal Error on plugin activation’ is closed to new replies.