Customers complaining that they can’t reset their passwords?
Getting an error that looks a little something like this?
Fatal error: Call to a member function setCustomerId() on a non-object in /home/user/public_html/app/code/core/Mage/Customer/controllers/AccountController.php on line 587
I’ve sifted through the layers of the outdated forum threads over on the Magento forums so that you don’t have to.
Here’s The Solution
Open the customer.xml found here:
app/design/frontend/default/[your_theme_folder]/layout/customer.xml
Add the following code just before the closing < / layout > tag:
<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>
Thanks to these folks for the solution.
Written For Magento Version
This tutorial was written for Magento Version 1.6.1.0.

