Support » Plugin: WPC Product Bundles for WooCommerce » Fatal error when added product to the cart

  • Resolved jasom

    (@jasom)


    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.

    • This topic was modified 2 years, 2 months ago by jasom.
    • This topic was modified 2 years, 2 months ago by jasom.
    • This topic was modified 2 years, 2 months ago by jasom.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author WPClever

    (@wpclever)

    Hi,
    For your case, please submit a ticket to our devs via this page and describe your issue. Our devs will reach back soon and instruct you on this. Please be as specific as possible, give us some screenshots and a link to your published bundle so that our devs can help you faster. Stay tuned.

    Best regards.

    Thread Starter jasom

    (@jasom)

    Great, I did so. Link is https://wpc.ticksy.com/ticket/2217295

    Note from the end of issue:

    In admin > Woocommerce > Producs table should by a note after product title “product has no bundled products selected”

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal error when added product to the cart’ is closed to new replies.