Magento:密码重置链接无效

Imr*_*sha 13 magento magento-1.5

我正在尝试为我的商店重置我的测试客户帐户密码,当我点击忘记密码链接时,当我输入有效的电子邮件地址时它要求我输入电子邮件地址它说密码重置链接发送到您的邮件并且它是转发我在电子邮件中的链接当我点击它显示错误的链接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 ,我该如何解决这个错误?&Thanx提前.

小智 20

刚刚在升级的1.6.1.0站点上修复了同样的问题 - 您正在使用过时的customers.xml,对您的副本app/design/frontend/base/default/layout/customer.xml进行区分并查找需要执行的更改


42d*_*Ltd 14

如果有人想知道,在customer.xml文件的新版本(1.6 ++)中添加了以下位:

<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>
Run Code Online (Sandbox Code Playgroud)