Magento Admin login problem

September 8, 2010 at 7:28 PM 2 comments

(Please Note :  This article is based on the magento’s latest release Magento ver. 1.4.1.0 at the time of this article written)

You may be irritated because of Magento just denying your access and not getting login to magento admin panel when running in localhost, though you provided the right username and password.

magento admin not loginMagento Admin Not Login

Ok How to fix Magento‘s Admin Login Problem . The fix is Pretty simple

1. Just copy your base url …. Eg : http://127.0.0.1/magento/
2. Find the table named core_config_data and update the following values of these two paths

a. web/unsecure/base_url  as http://127.0.0.1/magento/
b. web/unsecure/base_url  as http://127.0.0.1/magento/

(Kindly note : In this table there are 5 fields, what you need to do is find the fields named path and value. And replace the default value for the corresponding path fields mentioned above with your baseurl Http://127.0.0.1/magento/   ) You can also use any IP address instead of 127.0.0.1…

After this Just Locate the file varien.php found in

app\code\core\Mage\Core\Model\Session\Abstract\Varien.php

and copy the file inside the local folder

app\code\local\Mage\Core\Model\Session\Abstract\Varien.php

Create the same folder structure inside app / code / local before you copy varien.php

And find these lines

if (isset($cookieParams['domain'])) {  $cookieParams['domain'] = $cookie->getDomain();  } 

And replace with

if (isset($cookieParams['domain']) && !in_array("127.0.0.1", self::getValidatorData())) {  $cookieParams['domain'] = $cookie->getDomain();  } 

thatz all now you can login as an admin…

But don’t get satisfy with this fix just read the below lines why magento denied your admin access while you’re running in localhost….

Because Magento doesn’t create any cookie when you’re trying to login in your localhost, since its not a real domain….

Don’t forget to clear the cache (Its better to disable it for development environment)


Share

Entry filed under: magento. Tags: .

First PHP Program Magento Email Templates

2 Comments Add your own

  • 1. IP Camera  |  December 10, 2010 at 6:24 PM

    First of all, great looking site you have here and great post too. I would like to keep up with your posts but having problem subscribing to your rss.

    Reply
  • 2. Herman  |  May 9, 2013 at 9:14 AM

    I like the helpful information you provide on your articles. I will bookmark your weblog and check again here regularly. I am somewhat sure I will be informed lots of new stuff right right here! Best of luck for the next!

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


Most Searched Keywords

magento PHP

Categories

Recent Posts

Blog Stats

  • 90,822 hits