• Hi,

    After the plugin installation I do not see it anywhere in WP dashboard. Any ideas?

    I am on multisite, latest WP and Woo.

    Regards, Dariusz

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    I had/have the very same issue – on multisite, latest WP & Woo. Woo is network activated.

    I had a look at the plugin code and it appears that the initial check for an active Woocommerce plugin in “class-sfa-woocommerce-abandoned-carts.php” doesn’t work correctly on my installation.

    The line

    “if (in_array(‘woocommerce/woocommerce.php’, apply_filters(‘active_plugins’, get_option(‘active_plugins’)))) {”

    doesn’t seem to work on my multi-site install, resulting in the plugin not getting loaded.

    As a workaround, (not upgrade safe), I added a function to check the WC_VERSION constant, which WooCommerce defines, once all plugins have loaded.

    I then replaced the problem line with a call to that function.

    function check_for_woocommerce() {
    if (!defined(‘WC_VERSION’)) {
    return false;
    } else {
    return true;
    }
    }

    if ( check_for_woocommerce() ) {
    add_action(‘admin_menu’, ‘sfa_add_plugin_menu_item’);
    etc, etc..

    the plugin works correctly on my installation now.

    Plugin Author smallfishes

    (@smallfishes)

    @simonnakuk and @dmlynarski thanks for the report and work around.

    I’ll have to set up a test environment to replicate the issue and see about releasing an official fix.

    Mike

    Thread Starter dmlynarski

    (@dmlynarski)

    I am afraid, this does not work for me.

    1. I get this warning:
    Warning: Use of undefined constant ‘WC_VERSION’ – assumed ‘‘WC_VERSION’’ (this will throw an Error in a future version of PHP) in /home/platne/serwer23331/public_html/dm/wp-content/plugins/wc-abandoned-carts-by-small-fish-analytics/class-sfa-woocommerce-abandoned-carts.php on line 18

    2. Menu item still not showing.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Menu item does not exist in WP dashboard’ is closed to new replies.