I got a huge problem on my hands. The following error occurs on three versions (1 live, 2 dev) of the same magento shop.
I am not logged in. I put a product in the cart and go to onepage checkout. Then I click on register and register (it doesn't notice that the e-mail address is already taken, but it should). I continue the checkout process and buy the item. When I now try to login, the login doesn't work. When I look in the backend the new customer is not saved. In the database is no new entry.
But when I do the same process after buying a free downloadable product the new customer is saved but the password is wrong. I can reset the password though and it will work.
The normal registration process (not during checkout) is working fine though.
This is suddenly happening on all three instances. I have no clue where to look or what to do. The only thing that I can think of is that we had a mysqladmin error yesterday where we couldn't login but our provider fixed it. Could this be connected?
The fact that it's happening for all three sites tells me it cannot be a bad form or some backend mess. It must be something more global, but this is all I can think of right now.
Thank you for any help or hint!
Solved! Go to Solution.
I was able to fix it.
In these files
I inserted this code in the form tag:
<?php echo $this->getBlockHtml('formkey') ?>
This alone didn’t work, but then I also added form_key:formKey to the methods in this file:
Turns out it was a bad patch, that broke the onepage checkout. But the custom theme had to be updated also.
For reference see: