Title: Infinite loop
Last modified: October 29, 2024

---

# Infinite loop

 *  [t4k4](https://wordpress.org/support/users/t4k4/)
 * (@t4k4)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/infinite-loop-23/)
 * Hi there,
   If by mistake, a bundle contains itself, this causes an infinite loop
   and WordPress will eventually crash when reaching the max memory limit.When that
   happens it’s not even possible to edit the product without disabling the plugin.
   I believe there should be a check to make sure we’re not trying to add the current
   product as one of the “components” of the bundle.

Viewing 1 replies (of 1 total)

 *  Plugin Support [Janilyn T](https://wordpress.org/support/users/janilyn409/)
 * (@janilyn409)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/infinite-loop-23/#post-18102760)
 * Hi [@t4k4](https://wordpress.org/support/users/t4k4/) ,
 * Actually, our plugin does have a product type restriction for each version. The
   free version on this forum only allows simple products and simple subscription
   products to be searched for and added to the smart bundles from the Bundled products
   tab.
 * There’s no way customers can enter a smart bundle for any other product type 
   into the bundle. You can see my image here for more info: [https://app.screencast.com/uZi2TbDsvPo44](https://app.screencast.com/uZi2TbDsvPo44).
   All the unsupported product types will be disabled though users can search for
   them there.
 * Best regards.

Viewing 1 replies (of 1 total)

The topic ‘Infinite loop’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [Janilyn T](https://wordpress.org/support/users/janilyn409/)
 * Last activity: [1 year, 5 months ago](https://wordpress.org/support/topic/infinite-loop-23/#post-18102760)
 * Status: not resolved