Fix WordPress Error

Job ID: 35575654

Budget: £10 – £15 GBP

Error on WooCommerce

The log is as follows

CRITICAL Uncaught Error: Call to a member function get_tax_class() on null in /home/sites/2b/0/08245efc30/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php:225

Stack trace:

#0 /home/sites/2b/0/08245efc30/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(651): WC_Cart_Totals->get_items_from_cart()
#1 /home/sites/2b/0/08245efc30/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(143): WC_Cart_Totals->calculate_item_totals()
#2 /home/sites/2b/0/08245efc30/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(134): WC_Cart_Totals->calculate()
#3 /home/sites/2b/0/08245efc30/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1401): WC_Cart_Totals->__construct(Object(WC_Cart))
#4 /home/sites/2b/0/08245efc30/public_html/wp-content/themes/greenmart/inc/vendors/woocommerce/skins/fresh-el/functions.php(107): WC_Cart->calculate_totals()
#5 /home/sites/2b/0/08245efc30/public_html/wp-includes/class-wp-hook.php(308): greenmart_quantity_button_action('')
#6 /home/sites/2b/0/08245efc30/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
#7 /home/sites/2b/0/08245efc30/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#8 /home/sites/2b/0/08245efc30/public_html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(94): do_action('wc_ajax_greenma...')
#9 /home/sites/2b/0/08245efc30/public_html/wp-includes/class-wp-hook.php(308): WC_AJAX::do_wc_ajax('')
#10 /home/sites/2b/0/08245efc30/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(false, Array)
#11 /home/sites/2b/0/08245efc30/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#12 /home/sites/2b/0/08245efc30/public_html/wp-includes/template-loader.php(13): do_action('template_redire...')
#13 /home/sites/2b/0/08245efc30/public_html/wp-blog-header.php(19): require_once('/home/sites/2b/...')
#14 /home/sites/2b/0/08245efc30/public_html/index.php(17): require('/home/sites/2b/...')
#15 {main}
thrown in /home/sites/2b/0/08245efc30/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php on line 225
Related categories: PHP WordPress CSS HTML WooCommerce