Local installation issue on Magento 1.4 – Cookie Issue

Ok, so it was tough installing Magento locally on a MAMP server. The problem is on Configuration section, I can’t seem to go further into next step when I clicked on Continue. I was able to solve this by following the instruction on this blog.

http://azgtech.wordpress.com/2010/02/27/magento-1-4-local-installation-admin-login-cookie-issue-fixed/

This works in 1.4 version, latest and current version of Magento.

search for “// session cookie params” line in app\code\core\Mage\Core\Model\Session\Abstract\Varien.php

change

$cookieParams = array(
‘lifetime’ => $cookie->getLifetime(),
‘path’ => $cookie->getPath(),
‘domain’ => $cookie->getConfigDomain(),
‘cookieParams’ => $cookie->isSecure(),
‘httponly’ => $cookie->getHttponly()
);

to

$cookieParams = array(
‘lifetime’ => $cookie->getLifetime(),
‘path’ => $cookie->getPath()
);

and comment the below mentioned code
line number 86, in my file

/* if (!$cookieParams['httponly']) {
unset($cookieParams['httponly']);
if (!$cookieParams['secure']) {
unset($cookieParams['secure']);
if (!$cookieParams['domain']) {
unset($cookieParams['domain']);
}
}
}

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

now refresh your browser and continue installation, then log in unto the backend, it will work

About Reina Lyn Ben
I Stay Shy

2 Responses to Local installation issue on Magento 1.4 – Cookie Issue

  1. Pingback: How can you tell whether something is hard or soft news? | Uncategorized | A Useful Blog Which Have a Wealth of Information about Cancer !

  2. Pingback: Local installation issue on Magento 1.4 – Cookie Issue « Official … | Magento News

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>