I can't log into my local copy of Magento — how to use lost password with local copy of software?

前端 未结 2 1974
走了就别回头了
走了就别回头了 2021-01-25 02:35

I have a local install of Magento on my Mac using MAMP. I need to retrieve my password, but the lost password is obviously not working out of the box.

Is there a way wi

2条回答
  •  被撕碎了的回忆
    2021-01-25 02:59

    Here's a dirty fix courtesy of Rick Torres which worked for me...

    Open file... /app/code/core/Mage/Core/Model/Session/Abstract/Varien.php

    Around line 100 you will find...

    call_user_func_array('session_set_cookie_params', $cookieParams);
    

    Comment it out like this...

    //call_user_func_array('session_set_cookie_params', $cookieParams);
    

    And you're done.

    Bear in mind that hacking core files like this is not ideal as when you update to a newer version of Magento this file may be overwritten. Also remember to uncomment the line when you move the site to a live server ;)

提交回复
热议问题