when a customer adds a product to cart they get this error message
Fatal error: Uncaught Error: Call to a member function is_type() on null in /home//wp-content/plugins/woocommerce/includes/class-wc-cart.php:543 Stack trace: #0 /home/sitedatabase/public_html/wp-content/plugins/woocommerce-variable-stock-management/includes/class-catch-add-to-cart.php(105): WC_Cart::get_item_data(NULL, NULL) #1 /home//public_html/wp-includes/class-wp-hook.php(298): catchaddtocart->filter_woocommerce_add_to_cart_validation(true, 6486, 1, 6494, Array) #2 /home//public_html/wp-includes/plugin.php(203): WP_Hook->apply_filters(true, Array) #3 /home//public_html/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php(850): apply_filters(‘woocommerce_add…’, true, 6486, 1, 6494, Array) #4 //public_html/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php(695): WC_Form_Handler::add_to_cart_handler_variable(6486) #5 /home//public_html/wp-includes/class-wp-hook.php(298): WC_Form_Handler::add_to_cart_action(’’) #6 /home//pub in /home//public_html/wp-content/plugins/woocommerce/includes/class-wc-cart.php on line 543