Submitted an order with both products via the frontend
Deleted one of the test products in the backend
Re-indexed all the indices (just to make sure)
Now when I click on Cancel to cancel the order in the backend, it says: The order has not been cancelled.
In the exception log there is the following error:
exception 'PDOException' with message 'SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (db-1.bubble_stock_movement, CONSTRAINTFK_STOCK_MOVEMENT_ITEMFOREIGN KEY (item_id) REFERENCEScataloginventory_stock_item(item_id) ON DELETE CASCADE ON UPDATE CASCADE)' in /var/www/share/htdocs/lib/Zend/Db/Statement/Pdo.php:228
So I think what's happening is that the extension is trying to update the stock movement log for a product that doesn't exist anymore. Am I doing something wrong or could this be an issue with the extension?
Cancel
to cancel the order in the backend, it says:The order has not been cancelled.
exception 'PDOException' with message 'SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (
db-1.
bubble_stock_movement, CONSTRAINT
FK_STOCK_MOVEMENT_ITEMFOREIGN KEY (
item_id) REFERENCES
cataloginventory_stock_item(
item_id) ON DELETE CASCADE ON UPDATE CASCADE)' in /var/www/share/htdocs/lib/Zend/Db/Statement/Pdo.php:228
So I think what's happening is that the extension is trying to update the stock movement log for a product that doesn't exist anymore. Am I doing something wrong or could this be an issue with the extension?