Magento customer can't log in

12,382

After upgrading to Magento 1.8.1 you need to edit your existing template files.

The files listed below need te be change in order to be compatible with Magento 1.8.1. If they exist in your custom theme, compare them to the original base/default/template files.

  • your_package/your_theme/template/customer/form/newsletter.phtml
  • your_package/your_theme/template/customer/form/login.phtml
  • your_package/your_theme/template/customer/form/edit.phtml
  • your_package/your_theme/template/customer/address/edit.phtml
  • your_package/your_theme/template/whishlist/view.phtml
  • your_package/your_theme/template/whishlist/sharing.phtml
  • your_package/your_theme/template/review/form.phtml
  • your_package/your_theme/template/persistent/customer/form/login.phtml
  • your_package/your_theme/template/persistent/checkout/onepage/login.phtml
  • your_package/your_theme/template/checkout/onepage/login.phtml
  • your_package/your_theme/template/checkout/multishipping/overview.phtml
  • your_package/your_theme/template/checkout/cart.phtml
  • your_package/your_theme/template/catalog/product/view.phtml
  • your_package/your_theme/template/sendfriend/send.phtml
  • your_package/your_theme/template/sales/reorder/sidebar.phtml

Edit these files and add <?php echo $this->getBlockHtml('formkey'); ?> after the <form ...> open tag

Share:
12,382
sobaaroi
Author by

sobaaroi

Updated on June 08, 2022

Comments

  • sobaaroi
    sobaaroi almost 2 years

    I just migrated my website. But I got a problem.

    My customers can't log in to their account. When click log in on log-in page. http://www.mywebsite.com/customer/account/login/ It should be log in on their account but it redirects the same page.

    Please Help me how to fix that?

  • Pradeep Sanku
    Pradeep Sanku over 10 years
    i too had same issue when upgrade to 1.8.1.0.so i tried this.its working for me.
  • sobaaroi
    sobaaroi over 10 years
    many thanks for the solution.I just found that this errors come with magento 1.8.1 version. So this is a solution for this problem check this out blueclawecommerce.co.uk/blog/…
  • deanpodgornik
    deanpodgornik over 10 years
    Man, you have just saved my day. Come to Slovenia and I will pay you a beer :)
  • Lemonade
    Lemonade about 10 years
    Exactly what I was looking for. TYFM !
  • seanbreeden
    seanbreeden about 8 years
    This is a bad idea. You will be defeating the purpose of having a form_key in the first place.