Published: February 1, 2016
Last updated:

Magento registration form does not work after SUPEE-6788

Problem description

After SUPEE-6788 patch budnle or after upgrade to Magento 1.9.2.2 customer registration form does not work correctly. Submitting the form have no any results just like page is simply refreshed, new customer accounts are not created.

Cause

SUPEE-6788 patch bundle introduced new form key requirement for customer registration form and included a special patch for base, default and rwd themes (for all themes that are shipped with Magento distribution). Custom themes however are not patched by default and should be updated separately.

Solution

Update app/design/frontend/your_package/your_theme/persistent/customer/form/registration.phtml or app/design/frontend/your_package/your_theme/customer/form/registration.phtml with adding form_key field as shown in the diff below (replace your_package/your_theme to match your theme):
@@ -42,6 +42,7 @@
         <div class="fieldset">
             <input type="hidden" name="success_url" value="<?php echo $this->getSuccessUrl() ?>" />
             <input type="hidden" name="error_url" value="<?php echo $this->getErrorUrl() ?>" />
+            <input type="hidden" name="form_key" value="<?php echo Mage::getSingleton('core/session')->getFormKey() ?>" />
             <h2 class="legend"><?php echo $this->__('Personal Information') ?></h2>

Or simply delete this file, so Magento can re-use own default up-to-date files instead.

Posted in: Fatal errors

59 votes, 4.33 avg. rating (86% score)