Fatal error when added product to the cart
-
Here is error message recived when I try to add product to the cart:
Fatal error: Uncaught Error: Call to a member function get_name() on bool in /var/www/mystore.com/htdocs/wp-content/plugins/woo-product-bundle/index.php:1653 Stack trace: #0 /var/www/mystore.com/htdocs/wp-includes/class-wp-hook.php(290): WPcleverWoosb->woosb_add_to_cart_validation(true, 1786) #1 /var/www/mystore.com/htdocs/wp-includes/plugin.php(206): WP_Hook->apply_filters(true, Array) #2 /var/www/mystore.com/htdocs/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php(776): apply_filters('woocommerce_add...', true, 1786, 1) #3 /var/www/mystore.com/htdocs/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php(750): WC_Form_Handler::add_to_cart_handler_simple(1786) #4 /var/www/mystore.com/htdocs/wp-includes/class-wp-hook.php(288): WC_Form_Handler::add_to_cart_action('') #5 /var/www/mystore.com/htdocs/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(NULL, Array) #6 /var/www/mystore.com/htdocs/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #7 /var/www/mystore.com/htdocs/wp-settings.php(545): do_action('wp_load in /var/www/mystore.com/htdocs/wp-content/plugins/woo-product-bundle/index.php on line 1653
error appears when there is no product selected. Basically it is admin error – show bundle-product without products selected but plugin should somehow handle such situation (not with fatal error message).
Message like – Bundle is without products – would be OK.
Product Save / Update with no products in bundle should not be validated, now it does.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Fatal error when added product to the cart’ is closed to new replies.