Title: Error when adding a bundle to the cart
Last modified: March 4, 2022

---

# Error when adding a bundle to the cart

 *  [michielpopmp](https://wordpress.org/support/users/michielpopmp/)
 * (@michielpopmp)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/error-when-adding-a-bundle-to-the-cart/)
 * Hello,
 * Unfortunately I am having a trouble when adding a bundle to my cart. When I add
   the bundle to the cart, it says “A critical error has occurred on this site”,
   while the product has been added to the cart when I refresh the webshop.
 * I am using version 6.0.7 of your plug-in and version 5.9.1 of WordPress.
 * Could you help me please?
 * Thanks in advance!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-when-adding-a-bundle-to-the-cart%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [chitny](https://wordpress.org/support/users/chitny/)
 * (@chitny)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/error-when-adding-a-bundle-to-the-cart/#post-15435861)
 * i got exactly the same problem in two sites after upgrading wordpress and the
   plugin version… I cant find how to fix it.
 *  [svdv1975](https://wordpress.org/support/users/svdv1975/)
 * (@svdv1975)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/error-when-adding-a-bundle-to-the-cart/#post-15446557)
 * #metoo 🙁
 * Just paid and installed all and ran into the same issue.
    Hope its solved fast
   or I’ll have a refund.
 * Fatal error: Uncaught Error: Call to a member function get_stock_managed_by_id()
   on null in /home/customer/www/…./public_html/wp-content/plugins/woocommerce/includes/
   class-wc-cart.php:689 Stack trace: #0 /home/customer/www/…./public_html/wp-content/
   plugins/woocommerce/includes/class-wc-cart.php(1218): WC_Cart->get_cart_item_quantities()#
   1 /home/customer/www/…./public_html/wp-content/plugins/woo-product-bundle-premium/
   includes/class-woosb.php(1377): WC_Cart->add_to_cart(10359, 1, 10584, Array, 
   Array) #2 /home/customer/www/…./public_html/wp-content/plugins/woo-product-bundle-
   premium/includes/class-woosb.php(1297): WPCleverWoosb->woosb_add_to_cart_items(
   Array, ‘d532174e5ec4514…’, 11850, 1) #3 /home/customer/www/…./public_html/wp-
   includes/class-wp-hook.php(307): WPCleverWoosb->woosb_add_to_cart(‘d532174e5ec4514…’,
   11850, 1, 0, Array, Array) #4 /home/customer/www/…./public_html/wp-includes/class-
   wp-hook. in /home/customer/www/…./public_html/wp-content/plugins/woocommerce/
   includes/class-wc-cart.php on line 689
    There has been a critical error on this
   website.
 * Learn more about troubleshooting WordPress.
 *  Plugin Support [Janilyn T](https://wordpress.org/support/users/janilyn409/)
 * (@janilyn409)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/error-when-adding-a-bundle-to-the-cart/#post-15448064)
 * Hi [@svdv1975](https://wordpress.org/support/users/svdv1975/) , [@chitny](https://wordpress.org/support/users/chitny/),
   [@michielpopmp](https://wordpress.org/support/users/michielpopmp/) ,
 * Thanks for reporting this issue to us.
 * You can kindly contact our developer at our Support Forum to get help on this
   issue at [https://wpc.ticksy.com/](https://wpc.ticksy.com/). Please submit a 
   ticket with a link to your published bundle for us to help you check it out.
 * We might need access to the backend admin area to investigate further on this
   issue.
 * Best regards.

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

The topic ‘Error when adding a bundle to the cart’ is closed to new replies.

 * ![](https://ps.w.org/woo-product-bundle/assets/icon-128x128.png?rev=1857793)
 * [WPC Product Bundles for WooCommerce](https://wordpress.org/plugins/woo-product-bundle/)
 * [Support Threads](https://wordpress.org/support/plugin/woo-product-bundle/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-product-bundle/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-product-bundle/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-product-bundle/reviews/)

 * 3 replies
 * 4 participants
 * Last reply from: [Janilyn T](https://wordpress.org/support/users/janilyn409/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/error-when-adding-a-bundle-to-the-cart/#post-15448064)
 * Status: not resolved