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?
Go to
template/customer/form/login.phtml
andtemplate/persistent/customer/form/login.phtml
and underAdd the following code in the login form
OR, if you are using the login form in several places with different template files
Copy
app/code/core/Mage/Customer/controllers/AccountController.php
toapp/code/local/Mage/Customer/controllers/AccountController.php
Open the AccountController.php that you have copied to local and add the following code to line 139 just after the opening of loginPostAction()
http://www.blueclawsearch.co.uk/blog/2013/12/12/fix-customer-cannot-login-to-magento-1-8-1/
Step 1:
Web_Customer.xml
- Enabling custom module:Step 2:
config.xml
– Configuration for our module:Step 3: Add the following code to line 139 just after the opening of
loginPostAction()
inAccountController.php
After completing, don’t forget to clear Magento cache.
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