2

I am running Magento CE 1.9.2.2, and today a customer notified us that they cannot login, or retrieve their password.

To test, I attempted to login with a customer account, it just refreshes the login page, and shows the same login/password space.

If I attempt to reset a password, it sends the email, but when you click on the link in the email the frame is blank that would load the reset form.

I have also edited app/code/core/Mage/Customer/controllers/AccountController.php and uncommented the Mage::logException($e); call and then checked the /var/log/exception.log file and it is blank.

Any advice would be appreciated.

asked Jul 2, 2016 at 18:17

2 Answers 2

5

I have had the same problem, the answer is that your theme does not supply a variable called form_key.

Just as stated above I have to add:

<input type="hidden" name="form_key" value="<?php echo Mage::getSingleton('core/session')->getFormKey(); ?>" />

to the following files:

/app/design/frontend/default/template-name/template/customer/form/login.phtml
/app/design/frontend/default/template-name/template/customer/form/register.phtml
/app/design/frontend/default/template-name/template/persistent/customer/form/login.phtml
/app/design/frontend/default/template-name/template/persistent/customer/form/register.phtml
answered Jul 3, 2016 at 0:56
0

Although the above information is correct and good to know, just wanted to add a little more information here as a follow up for anyone reading this in the future. To fix my issue I needed to do a little more as I had updated to 1.9.2.4 after I posted this question. I had further login and checkout issues that were caused by a problem with the checkout.xml file in my theme, as the theme was written based on a previous version of Magento, probably back somewhere in the 1.6 range. Fix that worked for me provided below.

The fix:

needed to change the line in checkout.xml in the theme from:

<block type="checkout/onepage_payment_methods" name="checkout.payment.methods" as="methods" template="checkout/onepage/payment/methods.phtml">

to:

<block type="checkout/onepage_payment_methods" name="checkout.payment.methods" as="methods" template="checkout/onepage/payment/info.phtml">
answered Sep 5, 2016 at 3:44

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.