Forum
Updating order status with deleting products causes error
Hi,
If an order status is updated from within the orders app after a product has been deleted it will error with a blank page. The logs identify the problem as:
[22-Nov-2016 10:33:44 UTC] PHP Fatal error: Call to a member function to_array() on boolean in /xxx/xxx/public_html/admin/addons/apps/perch_shop/lib/PerchShop_Order.class.php on line 525
The line given is:
$item = array_merge($item, $Product->to_array());
When you say the product has been deleted, do you mean through the control panel?
Yes, sorry - using the delete button on the list, not set to inactive or anything like that.
Strange! Ok, thanks, we'll look into it.
Is this Shop 1.0.10?
No problems, its a bit of an edge case. Yes using the latest version - though it may be that the order was made pre-update, I can't remember - as you know site launches can be a bit busy!