Hi when customers click on "forgot Password" they receive the email with a link to reset. When clicked this is the error that they are receiving. Fatal error: Call to a member function setCustomerId() on a non-object in /home/ishieldz/public_html/store/app/code/core/Mage/Customer/controllers/AccountController.php on line 750 Any help would be appreciated. Thank you!
/** * Display reset forgotten password form * * User is redirected on this action when he clicks on the corresponding link in password reset confirmation email * / public function resetPasswordAction() { $resetPasswordLinkToken = (string) $this->getRequest()->getQuery('token'); $customerId = (int) $this->getRequest()->getQuery('id'); try { $this->_validateResetPasswordLinkToken($customerId, $resetPasswordLinkToken); $this->loadLayout(); // Pass received parameters to the reset forgotten password form $this->getLayout()->getBlock('resetPassword') ->setCustomerId($customerId) ->setResetPasswordLinkToken($resetPasswordLinkToken); $this->renderLayout(); } catch (Exception $exception) { $this->_getSession()->addError( $this->_getHelper('customer')->__('Your password reset link has expired.')); $this->_redirect('/*/forgotpassword'); } }