I have Magento 1.9. When I try to add around 150 items to a bundled product, I'm getting the following error message:
SQLSTATE: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (
FK_CAT_PRD_BNDL_SELECTION_PRD_ID_CAT_PRD_ENTT_ENTT_IDFOREIGN KEY (
The funny thing is, when I just add a few at a time, this works.
Is there some memory limit or some PHP variable I am hitting that may be causing this error?
These are all just simple products I am adding to the bundle with an attribute type = "default".
I'm also getting this error in the error log:
ERR (3): Notice: Undefined index: delete in /home/rockfordjchhh/public_html/app/code/core/Mage/Bundle/Model/Product/Type.php on line 320