Jonathan Day
Jonathan Day

Reputation: 18702

Why would Magento fail to save a customer after generating an ID?

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:

Thoughts:

Does anyone have any suggestions on how to track this down?

Version is Enterprise 1.9.

Upvotes: 50

Views: 4157

Answers (1)

Arafangion
Arafangion

Reputation: 11940

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.

Upvotes: 2

Related Questions