안녕하세요. 고객이 '비밀번호 분실'을 클릭하면 재설정 할 수있는 링크가있는 이메일이 전송됩니다. 이것을 클릭하면받는 오류입니다. 치명적인 오류 : /home/ishieldz/public_html/store/app/code/core/Mage/Customer/controllers/AccountController.php 750에있는 객체가 아닌 setCustomerId() 멤버 함수를 호출하십시오. 도움을 받으실 수 있습니다. . 고맙습니다!비밀번호를 잊어 버리면 magento 1.9.0.1에서 작동하지 않습니다.
/** * 표시 리셋 잊어 버린 암호 양식 * * 그가 암호 재설정 확인 이메일에서 해당 링크를 * / 공공 기능 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 (예외 $ 예외) { $ this -> _ getSession() -> addError ($ this -> _ getHelper ('고객') -> __ ('비밀번호 재설정 링크가 만료되었습니다.')); $ this -> _ redirect ('/*/forgotpassword'); } }
위의 코드를 파일에서 추가했습니다. Magento 1.9.0.1 default – user3653702