cancel
Showing results for 
Search instead for 
Did you mean: 

Registration suddenly not working properly

SOLVED

Registration suddenly not working properly

Hey guys,

 

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!

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Registration suddenly not working properly

I was able to fix it.

 

In these files

 

app/design/frontend/<package>/<theme>/template/checkout/cart/shipping.phtml

app/design/frontend/<package>/<theme>/template/checkout/multishipping/billing.phtml

 

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:

 

/skin/frontend/base/default/js/opcheckout.js

 

Turns out it was a bad patch, that broke the onepage checkout. But the custom theme had to be updated also.

 

For reference see:

 

https://magento.stackexchange.com/questions/176871/security-patch-supee-9767-possible-issues?noredir...

https://magento.stackexchange.com/questions/177035/supee-9767-patch-ce-1-9-3-3-one-page-checkout-cus...

View solution in original post

1 REPLY 1

Re: Registration suddenly not working properly

I was able to fix it.

 

In these files

 

app/design/frontend/<package>/<theme>/template/checkout/cart/shipping.phtml

app/design/frontend/<package>/<theme>/template/checkout/multishipping/billing.phtml

 

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:

 

/skin/frontend/base/default/js/opcheckout.js

 

Turns out it was a bad patch, that broke the onepage checkout. But the custom theme had to be updated also.

 

For reference see:

 

https://magento.stackexchange.com/questions/176871/security-patch-supee-9767-possible-issues?noredir...

https://magento.stackexchange.com/questions/177035/supee-9767-patch-ce-1-9-3-3-one-page-checkout-cus...