Title: Error cart
Last modified: August 26, 2023

---

# Error cart

 *  Resolved [zauroman](https://wordpress.org/support/users/zauroman/)
 * (@zauroman)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/error-cart-3/)
 * Hi! Where can this error come from? I can’t reproduce this on my site. I tried
   to reproduce everything in the trash, but there is no point. But sometimes it
   does happen.
 *     ```wp-block-code
       2023-08-16T05:41:07+00:00 CRITICAL Uncaught Error: Call to a member function get_tax_class() on null in /home/z/test/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php:225
       Stack trace:
       #0 /home/z/test/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(651): WC_Cart_Totals->get_items_from_cart()
       #1 /home/z/test/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(143): WC_Cart_Totals->calculate_item_totals()
       #2 /home/z/test/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(134): WC_Cart_Totals->calculate()
       #3 /home/z/test/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1406): WC_Cart_Totals->__construct(Object(WC_Cart))
       #4 /home/z/test/public_html/wp-content/themes/woodmart/inc/integrations/woocommerce/modules/quantity.php(57): WC_Cart->calculate_totals()
       #5 /home/z/test/public_html/wp-includes/class-wp-hook.php(308): woodmart_update_cart_item('')
       #6 /home/z/test/public_html/wp-includes/cla в /home/z/test/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php на строке 225
       ```
   

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Kaavya Iyer](https://wordpress.org/support/users/kaavyaiyer/)
 * (@kaavyaiyer)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/error-cart-3/#post-17003397)
 * Hi [@zauroman](https://wordpress.org/support/users/zauroman/),
 * Have you implemented any custom code on your website?
 * It is also possible for this error to occur due to a plugin conflict. Please 
   follow these steps to determine if there is a theme/plugin conflict:
 * 1. Switch your theme to Storefront.
   2. Disable all plugins except WooCommerce.
   3. Test if the refund functionality is working as expected.
 * You can find a detailed explanation on how to do a conflict test here: [https://docs.woocommerce.com/document/how-to-test-for-conflicts/](https://docs.woocommerce.com/document/how-to-test-for-conflicts/)
 *  Thread Starter [zauroman](https://wordpress.org/support/users/zauroman/)
 * (@zauroman)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/error-cart-3/#post-17003767)
 * What does the refund function mean? I wrote to you above that I don’t know where
   this error comes from. How can I test this without knowing where to reproduce
   it?
 * Can you tell me where the error may come from and where to test?
 *  [Kaavya Iyer](https://wordpress.org/support/users/kaavyaiyer/)
 * (@kaavyaiyer)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/error-cart-3/#post-17003880)
 * Hi [@zauroman](https://wordpress.org/support/users/zauroman/),
 * I apologise for the ‘refund’ functionality text. That was meant for a different
   ticket that I was aswering.
 * You mentioned that you are not able to reproduce it on your site as of now. That
   makes troubleshooting a bit challenging. Like I mentioned in my previous reply,
   the probable causes for the error are custom code/snippet or conflict with a 
   theme/plugin.
 * If any custom code is implemented on your site related to cart or checkout, please
   share it here if you can. To determine if there is a theme/plugin conflict, please
   switch your theme to Storefront, disable all plugins except WooCommerce and let
   us know if the same error is generated again. But, since the error does not occur
   all the time, it may be difficult to pinpoint the origin of the error right now.
 * I hope this helps!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Error cart’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Kaavya Iyer](https://wordpress.org/support/users/kaavyaiyer/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/error-cart-3/#post-17003880)
 * Status: resolved