I'm attempting to track down the cause of a rare bug (love those intermittent bugs) where a customer selects to Register at time of checkout, but when the order is completed, Magento somehow fails to save the customer record. This results in an orphan order with no email address, a difficult customer service situation.
Here are the results of my investigations so far:
customer_is_guest
is false in sales_flat_order
sales_flat_order
entry links to a valid record in sales_flat_order_address
. sales_flat_order_address
record contains values for customer_id
and customer_address_id
however those linked records do not exist.Thoughts:
Does anyone have any suggestions on how to track this down?
Version is Enterprise 1.9.
I would add lots of extra logging, try to log it well enough to capture the bug - and to save those logs if the bug can be detected.
Once you have logs that show the bug, you can then isolate the problematic code more easily.
For this, you may need to log the database queries, which might, unfortunately, be tricky if the volume of data is high and/or subject to privacy concerns.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With