Magento Admin Panel Login Problem
Magento! : ECOMMERCE PLATFORM FOR GROWTH …. recent days, Magento became most popular CMS for ecommerce.Recently when i started work with magento, fallen in problem regarding login to admin panel.
There are several issues to consider :
- Using 127.0.0.1 in place of localhost for your base url when going to setup in localhost.
- Best way is using IP, like your PC IP address or default 127.0.0.1.
- Use 127.0.0.1 instead of localhost while db configuration in installation (may fix the problem)
- For cookie related issue, please properly enable your browser cookie settings.
- Finally check out for both ‘mod rewrite option’ and ‘base url validation option’ during installation.
** Recently I got another useful solution during installation of magento in another PC. The solution is to modify the core Magento code.
> Open app/code/core/Mage/Core/Model/Session/Abstract/Varien.php.
> Comment out the lines 80 to 83. The line number may vary in different magento version. But these lines exist near to line 80. You need to comment the comma (,) in line:: $this->getCookie()->getPath()//,
For Magento 1.4 or greater than 1.4 :
you have to comment code from line 86 to 98 in app/code/core/Mage/Core/Model/Session/Abstract/Varien.php. Like this:-
This may be helpful for beginners who are gonna to start magento.
Cheers!
mazhar 8:26 am on April 6, 2011 Permalink |
thanks saif for the solution it is not woking in 1.5 so the i thing best you can get by going to below link you can remove the validtion
go to this to get solution
http://blog.ecommercesoftwaresolutionsonline.com/archives/1014/magento-please-enter-a-valid-url-protocol-is-required-http-https-or-ftp-issue-in-magento-installation.html
saif 10:05 am on April 6, 2011 Permalink |
Thanks mazhar for the url, but i solved by the code commenting way in 1.5, May be there was another issue regarding your problem.
And on your given url, the blogger came to the ‘code comment’ (in app/code/core/Mage/Core/Model/Session/Abstract/Varien.php) solution at the end 🙂
mazhar 10:22 am on April 6, 2011 Permalink
oh sorry saif brother you solution is perfect i got a mistake the solution i provided is of base url validation error while installing megento thanks again
foysal 2:22 am on April 7, 2011 Permalink |
Dear Saif vai
I got this solution before.
saif 6:47 am on April 7, 2011 Permalink |
Great! got your blog with some nice post … keep it up!
Emil 8:11 pm on April 13, 2011 Permalink |
Hi, I use 1.5.1 and I tried your solution. Still can’t log in.
saif 10:08 am on April 18, 2011 Permalink |
Hi Emil, I have checked in 1.5.0.1 by this way and it works fine … pls consider the options during installation and try all the way described here .. best of luck!
Rabby khan 8:33 am on December 1, 2011 Permalink |
Nice
Buiak 9:28 am on May 23, 2011 Permalink |
I’m in the same issue problem like emil. And I did the 127.0.0.1. insteed of localhost and comment the code listed in Varien.php ( /*,
‘domain’ => $cookie->getConfigDomain(),
‘secure’ => $cookie->isSecure(),
‘httponly’ => $cookie->getHttponly()*/ )
Buiak 9:29 am on May 23, 2011 Permalink |
like saif , scuse me 🙂
Buiak 9:30 am on May 23, 2011 Permalink
Emil sorry 🙂
saif 10:18 am on May 23, 2011 Permalink |
Buiak, please check your Magento version and follow relative solution for that, also browse your project like ‘127.0.0.1/MagentoProject’
William 3:20 pm on February 13, 2012 Permalink |
I found that deleting everything in app/var/cache allowed me to log in to admin. Before I did this, I also could not log in to the store as a customer either.
Angga 9:39 am on April 11, 2013 Permalink |
good article..
Thanks so much @saif.. it work for me…