PHP error on cart page
-
Hi
We’ve just started getting the following PHP error repeatedly in our logs and people having trouble checking out – any thoughts? Is it a bug in the plugin?
[15-Oct-2021 10:37:51 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_stock_managed_by_id() on null in /home/watchnat/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart.php:689
Stack trace:
#0 /home/watchnat/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1218): WC_Cart->get_cart_item_quantities()
#1 /home/watchnat/public_html/wp-content/plugins/woo-discount-rules/v2/App/Helpers/Woocommerce.php(544): WC_Cart->add_to_cart(106844, ‘1’, 0, Array, Array)
#2 /home/watchnat/public_html/wp-content/plugins/woo-discount-rules-pro/App/Rules/BOGO.php(416): Wdr\App\Helpers\Woocommerce::add_to_cart(‘106844’, ‘1’, 0, Array, Array)
#3 /home/watchnat/public_html/wp-includes/class-wp-hook.php(292): WDRPro\App\Rules\BOGO::handleAutoAddFreeProductsBXGY(Object(WC_Cart))
#4 /home/watchnat/public_html/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters(NULL, Array)
#5 /home/watchnat/public_html/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
#6 /home/watchnat/public_html/wp-content/plugins/woocommerce/in in /home/watchnat/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart.php on line 689Thanks!
- The topic ‘PHP error on cart page’ is closed to new replies.