• Resolved felixlinker

    (@felixlinker)


    Your plugin doesn’t recognize WooCommerce as being active on multisites.

    Everything works fine if you replace your code in is_woocommerce_active with:

    
    if (!function_exists('is_plugin_active')){
        include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
    }
    return is_plugin_active('woocommerce/woocommerce.php');
    
    • This topic was modified 7 years, 8 months ago by felixlinker.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Kokomo

    (@kokomoweb)

    felixlinker,

    thanks for the help. It’s strange, I have a multisite and wasn’t having the issue, yet some people on multisite have been reporting the problem. I’ll take a look at your code and update the plugin accordingly. thank-you!

    Thread Starter felixlinker

    (@felixlinker)

    No worries. I was able to reproduce this issue on a clean locally installed wordpress site. Nothing but WooCommerce and your plugin installed.

    You might want to consider that I’m new to wordpress plugin development and don’t know much about security issues. I don’t know how safe it is to simply include the file if needed function doesn’t exist. But it was recommended here: developer.www.remarpro.com

    • This reply was modified 7 years, 8 months ago by felixlinker.
    Plugin Author Kokomo

    (@kokomoweb)

    Felix,

    I ended up trying a different route, but the newest version of the plugin should be multisite compatible. Please let me know if it works for you. Thanks again for the help.

    Hi there,

    I’ve just installed the latest version of the plugin, but it still shows the same error message.

    Please tell me what is the file where I need to replace the above mentioned script?

    Everything works fine if you replace your code in is_woocommerce_active with:
    if (!function_exists(‘is_plugin_active’)){
    include_once( ABSPATH . ‘wp-admin/includes/plugin.php’ );
    }
    return is_plugin_active(‘woocommerce/woocommerce.php’);

    Thanks a lot for the help,

    Jan-Erik

    • This reply was modified 7 years, 8 months ago by Jan-Erik.
    Plugin Author Kokomo

    (@kokomoweb)

    @finlander is there any chance you could give me admin access to your website or a staging site so I can take a look and test the code accordingly? I tried on several multisites and am having no issues, yet a few people are reporting here that it’s not working

    Thread Starter felixlinker

    (@felixlinker)

    @kokomoweb the new version works fine for me! Thank you!

    Plugin Author Kokomo

    (@kokomoweb)

    @finlander could you try this version of the plugin and let me know if it works?

    https://www.kokomoweb.com/wc-product-customer-list.zip

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘WooCommerce recognized as inactive on multisite’ is closed to new replies.