Magento :Password reset link is not working
Asked Answered
T

6

13

i am trying to reset my test customer account password for my store, when i click on forgot password link it is asking me for a email address when i enter a valid email address it says the password reset link is sent to your mail & it is forwarding me a link in email when i click on the link it is displaying an error Fatal error: Call to a member function setCustomerId() on a non-object in /var/www/websites/jivity/app/code/core/Mage/Customer/controllers/AccountController.php on line 587 , How can i fix this error?? & Thanx in advance.

Transact answered 27/10, 2011 at 11:57 Comment(3)
What method is that in? My line 587 in a 1.5.1.0 distro doesn't call setCustomerId()Savdeep
What version of Magento are you using?Galvanic
I'm using a latest version of magento i,e. magento-1.6Transact
S
20

Just fixed the same problem on an upgraded 1.6.1.0 site - You are using an out of date customers.xml, diff your copy and app/design/frontend/base/default/layout/customer.xml to find the changes that need doing

Splenectomy answered 27/10, 2011 at 14:55 Comment(1)
Used the same fix on a 1.7.0.2 site. Thanks!Internuncial
L
14

If anyone is wondering, in the new version (1.6++) of the customer.xml file the following bit has been added:

<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>
Lunneta answered 16/3, 2012 at 17:15 Comment(2)
Thanks, this fixed the problem for me on Magento 1.6.2Saldivar
Fixed mine on Mangento 1.9.1 (from 1.5)Penitent
N
3

If you are in Magento 1.9.1 Here is a solution which worked for me.

If your theme doesn’t include any specific custom config or layout settings you can safely delete your customer.xml (or just rename to customer1.xml) file located at /app/design/frontend/default/<your_theme_package>/<your_theme_name>/layout/customer.xml

If you delete this file magento will load the default config options (with the updates) from the factory default magento theme. /app/design/frontend/base/default/layout/customer.xml

Remember to flush / refresh your magento config via administration area, this will force the customer.xml file to be reloaded.

Nerland answered 22/1, 2015 at 12:46 Comment(1)
The same is valid for Magento 1.7 after a critic patch update (6788) started giving this problem in certain installations.Klee
S
1

please add below code in your costomer.xml[app/design/frontend///layout/customer.xml] file.

<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>

It's Working

Sigrid answered 30/1, 2014 at 6:52 Comment(0)
M
0

I tried the above, but didn't work. From another tip I saw, I added the same code above to the 'mageb2bextensionscustomer.xml' in the same layout folder, cleared all the cache and it works now. :-)

Monocyte answered 1/4, 2013 at 17:16 Comment(1)
It is because your extension is overriding the default customer xml.Cue
B
0

Always back up your files!

I found a fast way to solve the issue: I replaced the custom customer.xml used by my theme in app/design/frontend/your_theme_package/your_theme_name/layout/ with the file in app/design/frontend/base/default/layout/customer.xml.

Now it works just fine.

Begonia answered 11/1, 2016 at 19:10 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.