Friday, July 8, 2011

Can’t login into admin panel of Magento (Problem and Solution)

For magento-1.4.0.1 Version
Go to location
app\code\core\Mage\Core\Model\Session\Abstract\Varien.php

Go to line 96 or locate the code similar below:
view source
print?
96 if (isset($cookieParams['domain'])) {
97 $cookieParams['domain'] = $cookie->getDomain();
98 }

Replace the code found in line 96 with this one:
view source
print?
96 if (isset($cookieParams['domain']) && !in_array("127.0.0.1", self::getValidatorData())) {

The purpose of this code change is to disable the Magento’s domain checking only if it is accessed via localhost and run as usual if it is being accessed from a valid domain.

This Solution works Fine Guys
Please Do Check your Version

No comments:

Post a Comment

Thank you for your Comment....

Popular Posts