A little while ago we had a customer contact us saying that he was unable to complete the checkout and got the error "customer email already exists". Worryingly, he tried a few times and on each attempt his card was charged.
After trying to find a reason for this we discovered that he had somehow managed to create four customer accounts. The accounts were created a week or so before his first purchase so weren't created during the checkout process and, looking in the admin, all four accounts were created within a minute of each other - 09:10:39, 09:11:02, 09:11:23 and 09:11:21
Now, I imagine there are safeguards built into Magento to stop more than one account being created with the same email, so what could have caused these to fail? Where should we be looking first?
I've checked the _exception.log in var/log and there are 3 entries like this:
2015-11-04T09:14:32+00:00 DEBUG (7): Exception message: This customer email already exists
Trace: #0 /route/to/site/app/code/core/Mage/Customer/Model/Resource/Customer.php(99): Mage::exception('Mage_Customer', 'This customer e...', 3)
#1 /route/to/site/app/code/core/Mage/Eav/Model/Entity/Abstract.php(1122): Mage_Customer_Model_Resource_Customer->_beforeSave(Object(Mage_Customer_Model_Customer))
#2 /route/to/site/app/code/core/Mage/Core/Model/Abstract.php(318): Mage_Eav_Model_Entity_Abstract->save(Object(Mage_Customer_Model_Customer))
#3 /route/to/site/app/code/core/Mage/Customer/Model/Resource/Address.php(70): Mage_Core_Model_Abstract->save()
#4 /route/to/site/app/code/core/Mage/Eav/Model/Entity/Abstract.php(1124): Mage_Customer_Model_Resource_Address->_afterSave(Object(Mage_Customer_Model_Address))
#5 /route/to/site/app/code/core/Mage/Core/Model/Abstract.php(318): Mage_Eav_Model_Entity_Abstract->save(Object(Mage_Customer_Model_Address))
#6 /route/to/site/app/code/core/Mage/Customer/controllers/AddressController.php(142): Mage_Core_Model_Abstract->save()
#7 /route/to/site/app/code/local/Mage/Core/Controller/Varien/Action.php(417): Mage_Customer_AddressController->formPostAction()
#8 /route/to/site/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('formPost')
#9 /route/to/site/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#10 /route/to/site/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#11 /route/to/site/app/Mage.php(685): Mage_Core_Model_App->run(Array)
#12 /route/to/site/index.php(100): Mage::run('base', 'website')
#13 {main}
I know it's an odd one but has anyone ever encountered anything similar? Are there any likely causes? Any pointers much appreciated.
Thanks