2

update to 1.9.2.2 users are unable to register on the site.

How can I solve this issue?

Thanks

3 Answers 3

5

When you upgraded magento if you have the following files that your have overridden in your theme you will need to add the following for customer registration to work: <input type="hidden" name="form_key" value="<?php echo Mage::getSingleton('core/session')->getFormKey() ?>" />

Files:

app/design/frontend/{your_theme}/{your_package}/template/customer/form/register.phtml

app/design/frontend/{your_theme}/{your_package}/template/persistent/customer/form/register.phtml

13
  • Hi Rob, in my theme haven't the file in first row that you write but I have only the second file in persistent folder.
    – Joso
    Oct 31, 2015 at 5:20
  • Have you other Suggest?
    – Joso
    Oct 31, 2015 at 7:49
  • so you have the app/design/frontend/{your_theme}/{your_package}/template/persistent/customer/form/register.phtml file in your theme? Have you added the line here github.com/OpenMage/magento-mirror/blob/1.9.2.2/app/design/…
    – rob3000
    Oct 31, 2015 at 7:57
  • I browse and in my theme there is only register.phtml under persistent/customer/form. I followed the instruction how shows the link to github, but not work. Every time I check and register on site, after filled all date and submit the form, the page reload with empty form.
    – Joso
    Oct 31, 2015 at 8:24
  • On the live site can you inspect the page and see if the following key exists on the page <input type="hidden" name="form_key">
    – rob3000
    Oct 31, 2015 at 8:26
1

Just to add to this, there may be more extensions overriding your register.phtml file other than your custom themes. Turn on your path hints (system>config>advanced>developer) and check to see if any extensions are overriding it.

0

If your page is using OPC, add form_key in register.phtml on opc files. Works fine.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.