Upgrade to Magento 1.9.x and find your custom registration forms not working?
We’ve come across this a couple of times recently wherein an upgrade to Magento results in registration forms not working as they should be. The symptoms this time around were as follows:
- Visitor fills out registration form and clicks submit
- Visitor is brought back to the registration form as if nothing has happened
- And nothing has happened — the registration details were never actually successfully sent to the server
Unfortunately, you’ll find no logging in the server error logs about this. I couldn’t find magento logs indicating a problem either.
The solution, as found on the Magento Forums, is to find your registration form template file. In my case it was here (the clarion folder because this particular site is using the Clarion Customer Attributes plugin):
{webroot}/app/design/frontend/{template_name}/default/template/clarion/customerattribute/form/register.phtml
Edit the file, and directly underneath the opening <form […]> tag, enter:
<input type="hidden" name="form_key" value="<?php echo Mage::getSingleton('core/session')->getFormKey() ?>" />
You may need to clear your cache in the Magento admin, though in my case it took effect immediately. After making that change I was able to successfully submit the registration form.
Posted in Code, Tips and Tricks
About Websavers
Websavers provides web services like Canadian WordPress Hosting and VPS Hosting to customers all over the globe, from hometown Halifax, CA to Auckland, NZ.
If this article helped you, our web services surely will as well! We might just be the perfect fit for you.
Yes Same Problem …@@@
I have Magento 1.9.x and the Clarion plugin installed but there is no /app/design/frontend/{template_name}/default/template/clarion/customerattribute/form/register.phtml file in my tree.
Obvioiusly I changed {template_name} with the name of my template.
Try /app/design/frontend/default/default/template/clarion/customerattribute/form/register.phtml