Magento Forum

   
Page 1 of 3
Forgotten Pword returns Blank Browser Page
 
abosiger
Jr. Member
 
Total Posts:  27
Joined:  2011-11-17
 

Hi, I really hope someone here can help out with this.

Magento 1.6.1.0 new install

If a customer clicks the forgotten password link on the frontend, they are sent an email with a link to click. When they click the link in the email, a blank white page is shown in the browser (no prompt to reset pword). The path when the email link is launched looks like this:

www.mystore.com/customer/account/resetpassword/?id=4 token=26f8abcc1efd5559ce81ced2706586db

The “error_log” said:

[30-Nov-2011 07:42:50] PHP Fatal errorCall to a member function setCustomerId() on a non-object in /home3/bestcara/public_html/app/code/core/Mage/Customer/controllers/AccountContr‌​oller.php on line 587

And the code block from AccountController.php

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) <---------------------------------------------Line 587
                
->setResetPasswordLinkToken($resetPasswordLinkToken);
            
$this->renderLayout();
        
catch (Exception $exception{
            $this
->_getSession()->addError(Mage::helper('customer')->__('Your password reset link has expired.'));
            
$this->_redirect('*/*/');
        
}
    }

I really need to fix this as soon as possible. Any help is much appreciated

 
Magento Community Magento Community
Magento Community
Magento Community
 
icesh
Member
 
Total Posts:  34
Joined:  2011-04-15
 

fresh install?

did you use custom theme?

 
Magento Community Magento Community
Magento Community
Magento Community
 
abosiger
Jr. Member
 
Total Posts:  27
Joined:  2011-11-17
 

Yes, fresh install means the first time I have used Magento and installed it. Yes, using a custom template. Thanks for you reply!

 
Magento Community Magento Community
Magento Community
Magento Community
 
icesh
Member
 
Total Posts:  34
Joined:  2011-04-15
 

oh ok, it looks like your theme is not support for magento 1.6.1.0

go to:
app/design/frontend/default/[your_custom_theme_folder]/layout/customer.xml

add these codes:

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

 
Magento Community Magento Community
Magento Community
Magento Community
 
abosiger
Jr. Member
 
Total Posts:  27
Joined:  2011-11-17
 

Ok, I’ll try that right now. Thank you so much.

 
Magento Community Magento Community
Magento Community
Magento Community
 
abosiger
Jr. Member
 
Total Posts:  27
Joined:  2011-11-17
 

YES! That did it! Many many thanks to you!

 
Magento Community Magento Community
Magento Community
Magento Community
 
icesh
Member
 
Total Posts:  34
Joined:  2011-04-15
 

Glad I was able to help you smile

 
Magento Community Magento Community
Magento Community
Magento Community
 
shadowice222
Jr. Member
 
Total Posts:  3
Joined:  2011-12-10
 

I also am having this issue. I did the fix and I don\’t get a fatal error anymore, but it just redirects to a blank page and doesn\’t actually reset the password. Any idea what the core version of magento is supposed to do? I noticed the file \"customer/form/resetforgottenpassword.phtml\" doesn\’t actually exist. Am I supposed to create it? How do I populate it with the relevant info?

 
Magento Community Magento Community
Magento Community
Magento Community
 
donny6
Jr. Member
 
Total Posts:  2
Joined:  2011-11-28
 

Fix worked for me, at first it still gave error, flushed the cache, logged out and in the admin, cleaned the browser too.

Configuring this system is a bit of a journey.
Every corner something new.

Thanks for that.

 
Magento Community Magento Community
Magento Community
Magento Community
 
wjohan
Member
 
Avatar
Total Posts:  46
Joined:  2011-03-08
Monnickendam
 

Didn’t fix it for me though.. I still get the error and on my homepage the “my account” and “log in” in the top links are missing. Anyone suggestions?

 
Magento Community Magento Community
Magento Community
Magento Community
 
fixxi1
Jr. Member
 
Total Posts:  13
Joined:  2011-12-16
 

amazing icesh , works THANK YOU !

Once passowrd is reset , is the system supposed to send a second email confirming the new password ? ( the first email being sent is the one with the reset link). For me it is not sending a second email with the new resetted password , but that may be how it is.

 
Magento Community Magento Community
Magento Community
Magento Community
 
myxml777
Jr. Member
 
Total Posts:  8
Joined:  2011-10-12
 

Had the same issue when upgrading form 1.6.0 to 1.6.2 using a custom theme.

The fix posted worked flawlessly for me. Thank you!!!

 
Magento Community Magento Community
Magento Community
Magento Community
 
galalala
Jr. Member
 
Total Posts:  15
Joined:  2009-07-15
 

I am not using a custom customer.xml, but just in case I checked mine and that code is in it.  I get the error and I don’t know what I should do at this point, this is the only solution anyone seems to have.

 
Magento Community Magento Community
Magento Community
Magento Community
 
gari marcos
Jr. Member
 
Avatar
Total Posts:  21
Joined:  2008-10-24
 

Didnt work for me on Magento 1.6.2.o :(

 
Magento Community Magento Community
Magento Community
Magento Community
 
gari marcos
Jr. Member
 
Avatar
Total Posts:  21
Joined:  2008-10-24
 
wjohan - 03 February 2012 02:28 AM

Didn’t fix it for me though.. I still get the error and on my homepage the “my account” and “log in” in the top links are missing. Anyone suggestions?

Tha same here…

 
Magento Community Magento Community
Magento Community
Magento Community
 
MPS_ONLINE
Jr. Member
 
Total Posts:  6
Joined:  2011-01-08
 

This worked for 1.6.2

make sure you post BEFORE the closing layout tag

</layout>

also you must clear your magento cache.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
Page 1 of 3