您好,当客户点击“忘记密码”时,他们会收到包含重置链接的电子邮件。单击时,这是他们收到的错误。致命错误:在第 750 行的 /home/ishieldz/public_html/store/app/code/core/Mage/Customer/controllers/AccountController.php 中的非对象上调用成员函数 setCustomerId() 任何帮助将不胜感激。谢谢!
/** * 显示重置忘记密码表单 ** 当用户点击密码重置确认电子邮件中的相应链接时,将重定向到此操作 * / public function resetPasswordAction() { $resetPasswordLinkToken = (string) $this->getRequest()->getQuery('token'); $customerId = (int) $this->getRequest()->getQuery('id'); 试试 { $this->_validateResetPasswordLinkToken($customerId, $resetPasswordLinkToken); $this->loadLayout(); // 将接收到的参数传递给重置忘记密码表单 $this->getLayout()->getBlock('resetPassword') ->setCustomerId($customerId) ->setResetPasswordLinkToken($resetPasswordLinkToken); $this->renderLayout(); } catch (Exception $exception) { $this->_getSession()->addError( $this->_getHelper('customer')->__('您的密码重置链接已过期。')); $this->_redirect('/*/忘记密码'); } }