Magento – Passwort Reset / Renewal does not work after click in email transaction “… controllers / AccountController.php “

Should it at Magento (In our case it was version 1.6.1.0) come to the following error

Fatal error: Call to a member function setCustomerId() on a non-object in XYZ/public_html/app/code/core/Mage/Customer/controllers/AccountController.php on line 587

This was most likely the password reset process or. trying to get a new password. The new security feature, that the password will not be replaced directly, but first a email is sent, to click on a link in one, if the password should be changed (MANN, is already set long…), one arrives at the site, should actually set the new password.
Unfortunately, you end up but on a Fatal Error Page, not much more than spit out the above information.

In the above line in AccountController.php 587 get even the hint, that it has something to do with the reset of the password and the Customer.

The solution is the:

The customer.xml own templates of missing a particular location, which deals with the password reset is. And at this point is that part:

<!–
Customer password reset
–>

<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=”happy”>
<block type=”customer/account_resetpassword” name =”resetPassword” template =”customer/form/resetforgottenpassword.phtml”/>
</reference>
</customer_account_resetpassword>

So either you delete the template in your own customer.xml (app / design / frontend /[base or default]/[IhrTemplate]/layout / access so that subsequently default on the customer.xml or it is above the. Part inserted into the eigenene customer.xml.

I did this BEFORE the end of the closing </layout> made. Then save and load caches. Then you also get the new password again.

Used in Magento Version 1.6.1.0. Ask? Comments? Suggestions? Gladly!

Published by Covos

Since 2009 I have been working intensively with Magento. I started with the creation and operation of B2C stores. This was extended through my work in the logistics sector. This resulted first specialized B2E systems. Today I work day-a day with exciting B2C, B2B- and B2E projects and reports in this blog about challenges and give insider tips.

2 comments on “Magento – Passwort Reset / Renewal does not work after click in email transaction “… controllers / AccountController.php “”

  1. Thank you, this helped me a lot. I had the same problem with Magento 1.6.2. I'll just go out of it, that these lines have been added in the first version 1.6.x customer.xml, because my template is not created in the 1.5.x version.

Leave a Reply

Your email address will not be published. Required fields are marked *