Call to a member function get_tax_class() on null
-
2021-05-06T16:17:03+00:00 CRITICAL Uncaught Error: Call to a member function get_tax_class() on null in /ho../.../public_html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php:225 Stack trace: #0 /ho../.../public_html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(651): WC_Cart_Totals->get_items_from_cart() #1 /ho../.../public_html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(143): WC_Cart_Totals->calculate_item_totals() #2 /ho../.../public_html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(134): WC_Cart_Totals->calculate() #3 /ho../.../public_html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1383): WC_Cart_Totals->__construct(Object(WC_Cart)) #4 /ho../.../public_html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1342): WC_Cart->calculate_totals() #5 /ho../.../public_html/wp-content/plugins/woo-fly-cart/wpc-fly-cart.php(830): WC_Cart->set_quantity('58a1fe83b045918...', 2) #6 /ho../.../public_html/wp-i in /ho../.../public_html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php on line 225
I have been getting this error it seems for just over 2-3 weeks (I think that is around the time I downloaded the latest version of your plugin – 3.0.4), but I just discovered the error is happening last night via my log files.
I can replicate when/how the error occurs. Add an item to the cart and then go to the pop-up cart (edge of screen). Try changing the quantity up by 1. For me, I just get a spinning arrow. If/when I eventually click outside the cart, the page reloads and the cart is now empty. Then, I get a new error in my logs file.
All plugins are current as is WordPress.
I have not tried reverting to a previous version of your plugin.Woocommerce v5.2.2
WordPress v5.7.1
- The topic ‘Call to a member function get_tax_class() on null’ is closed to new replies.