Reset password blank page – Magento 1.9.2.2

Reset password blank page – Magento 1.9.2.2

After upgrading an older Magento shop to version 1.9.2.2 I noticed that the reset password page was blank. Everything else was working fine: I could fill in my email address to request a new password, I received the email with the reset password link, but clicking on the link only resulted in a blank page. I checked my log files, but no errors were thrown.

The cause

It turns out that a change was made to the customer.xml file. The block customer_account_resetpassword was renamed to customer_account_changeforgotten. Since my custom theme included it’s own customer.xml file, the original customer.xml file included in the Magento core was ignored. As it turns out, this problem can also be caused by installing security patch SUPEE-6788.

The solution

Simply update the customer.xml used by your theme. The following block:

<customer_account_resetpassword translate="label">
    <label>Reset a Password</label>
    <remove name="right"/>
    <remove name="left"/>

    <reference name="head">
        <action method="setTitle" translate="title" module="customer">
            <title>Reset a Password</title>
        </action>
    </reference>
    <reference name="root">
        <action method="setTemplate">
            <template>page/1column.phtml</template>
        </action>
        <action method="setHeaderTitle" translate="title" module="customer">
            <title>Reset a Password</title>
        </action>
    </reference>
    <reference name="content">
        <block type="customer/account_resetpassword" name="resetPassword" template="customer/form/resetforgottenpassword.phtml"/>
    </reference>
</customer_account_resetpassword>

has to be updated to

<customer_account_changeforgotten translate="label">
    <label>Reset a Password</label>
    <remove name="right"/>
    <remove name="left"/>

    <reference name="head">
        <action method="setTitle" translate="title" module="customer">
            <title>Reset a Password</title>
        </action>
    </reference>
    <reference name="root">
        <action method="setTemplate">
            <template>page/1column.phtml</template>
        </action>
        <action method="setHeaderTitle" translate="title" module="customer">
            <title>Reset a Password</title>
        </action>
    </reference>
    <reference name="content">
        <block type="customer/account_changeforgotten" name="changeForgottenPassword" template="customer/form/resetforgottenpassword.phtml"/>
    </reference>
</customer_account_changeforgotten>

Leave a comment