Expertwebadvisor

  • Magento 2
  • PHP
  • WordPress
  • MySQL
  • SEO
  • Java Script
  • Others
  • Top 10’s

Customer Can Not Login After Magento Upgrade

By Expertwebadvisor | Last Updated: March 13, 2014 | In: Magento


Yesterday, I have done a Magento upgrade from Magento version 1.7+ to Magento version 1.8+ for one of our client, Everything was fine and working well in the admin panel but there was some problem on the frontend user login form. I was trying to login from my user name and password but it did not logged in and did not show any message on the frontend. After digging on the Google I got a solution which was useful for me. Here in this post I am sharing the solution may be it helps to many people.
Customer Can Not Login After Magento Upgrade

The main reason behind it there was no form_key for the login form and there is a form key validation taking place in loginPostAction of Magento. For solving such kind of problem use the steps below:

Step 1. Open the login.phtml in your favourite file editor, for this navigate to the app/design/frontend/base/default/template/customer/form/login.phtml and app/design/frontend/base/default/template/persistent/customer/form/login.phtml or find it if you are using the custom template app/design/frontend/default/your_custom_theme/template/customer/form/login.phtml and app/design/frontend/default/your_custom_theme/template/persistent/customer/form/login.phtml

Step 2. Search for

<ul class="form-list">

Step 3. Add the below code under

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

The code will look like as the below:

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

Save the file and run the code, problem has been gone

Note : Use same code for the other custom login form if you are using.

Hope it helps, Thanks for reading.

Tags:can not login problem,Magento,Magento upgrade


Related Posts

  • Change Admin URL of the Existing Magento Store Change Admin URL of the Existing Magento Store
  • Search only by the product name in Mini Search In Magento Search only by the product name in Mini Search In Magento
  • The PDO extension is required for this adapter but the extension is not loaded in Magento Error The PDO extension is required for this adapter but the extension is not loaded in Magento Error
  • Paypal shipping address errors in Magento Paypal shipping address errors in Magento
  • Be Social, Share Us Here !!

  • Looking For Something !!

  • Popular Categories !!

    • Magento 2 Guide and Tutorials
    • Home Loan EMI Calculator
    • Car Loan EMI Calculator
    • Personal Loan EMI Calculator
    • Magento Guide & Tutorials
    • PHP Tutorials
    • WordPress Tutorials
    • SEO Tutorials
    • MySQL Guide
    • Opencart Tutorials
    • Linux/Ubuntu Guide
  • About Us
  • Contact Us
  • Disclaimer
  • Privacy Policy
  • Facebook
  • Twitter
  • DMCA.com Protection Status

Recent Posts

  • PHP array_​diff_​key Function
  • PHP array_​diff_​assoc Function
  • PHP array_​diff Function
  • PHP array_​count_​values Function
  • PHP array_​combine Function

Welcome to my Blog

Thanks for visiting my Blog, I have started this blog before 8 years ago and sharing my own experience, problem and solutions while working on the different type of projects. Enjoy the reading and don't forget to Facebook likes, Tweets or G+. You can also write me expertwebadvisor@gmail.com
© 2013 - 2025 Powered By
Top