• Hi,
    My client has been experiencing a critical error when changing the low stock level. What happens is after updating the stock level threshold, he gets a critical error message, then when trying to do the same update it goes through. This has happened a few times. Any insight into what might be the problem?

    Here’s the error message that WordPress generates from the crash:

    WordPress version 5.5.3
    Current theme: Goodnow Farms (version 1.0.0)
    Current plugin: Back In Stock Notifier for WooCommerce | WooCommerce Waitlist Pro (version 1.9.9)
    PHP version 7.3.22-1+ubuntu18.04.1+deb.sury.org+1
    
    Error Details
    =============
    An error of type E_ERROR was caused in line 215 of the file /*******/wp-content/plugins/back-in-stock-notifier-for-woocommerce/includes/class-core.php. Error message: Uncaught Error: Call to a member function is_in_stock() on bool in /*******/wp-content/plugins/back-in-stock-notifier-for-woocommerce/includes/class-core.php:215
    Stack trace:
    #0 /*******/wp-includes/class-wp-hook.php(287): CWG_Instock_Core->get_product_bundle_subscribers(Array, 1750)
    #1 /*******/wp-includes/plugin.php(206): WP_Hook->apply_filters(Array, Array)
    #2 /*******/wp-content/plugins/back-in-stock-notifier-for-woocommerce/includes/class-core.php(52): apply_filters('cwginstock_trig...', Array, 1750)
    #3 /*******/wp-includes/class-wp-hook.php(287): CWG_Instock_Core->trigger_instock_status(1750, 'instock', Object(WC_Product_Simple))
    #4 /*******/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)
    #5 /*******/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #6 /*******/wp-content/plugins/back-in-stock-notifier-f
Viewing 1 replies (of 1 total)
  • Thread Starter scottm-ldg

    (@scottm-ldg)

    Anyone have any insight as to what’s going on with this? I thought I had resolved the problem by updating WordPress to v5.6, but I’m still seeing crashes. This one is an “Uncaught Error”. Here’s the error message from the Woocommerce status log:

    2021-02-03T21:09:01+00:00 CRITICAL Uncaught Error: Call to a member function is_in_stock() on bool in /path/wp-content/plugins/back-in-stock-notifier-for-woocommerce/includes/class-core.php:215
    Stack trace:
    #0 /path/wp-includes/class-wp-hook.php(287): CWG_Instock_Core->get_product_bundle_subscribers(Array, 1780)
    #1 /path/wp-includes/plugin.php(212): WP_Hook->apply_filters(Array, Array)
    #2 /path/wp-content/plugins/back-in-stock-notifier-for-woocommerce/includes/class-core.php(52): apply_filters('cwginstock_trig...', Array, 1780)
    #3 /path/wp-includes/class-wp-hook.php(287): CWG_Instock_Core->trigger_instock_status(1780, 'instock', Object(WC_Product_Simple))
    #4 /path/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)
    #5 /path/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
    #6 /path/wp-content/plugins/back-in-stock-notifier-f in /path/wp-content/plugins/back-in-stock-notifier-for-woocommerce/includes/class-core.php on line 215
Viewing 1 replies (of 1 total)
  • The topic ‘Critical Error when updating low stock notification’ is closed to new replies.