tidak bisa login admin di magento 1.4.0.1 mengunakan XAMPP 1.7.3

ketika mencoba menginstall magento versi 1.4.0.1 mengunakan XAMPP ada beberapa masalah yang muncul
diantaranya waktu pembuatan database magento, sering timeout, hal ini bisa diakali dengan merefresh halamannya, jika masih gagal, coba hapus databasenya kemudian coba lagi mengulang instalasi dari baru

kemudian setelah masalah tersebut dapat diatasi, ternyata ndak bisa login di backendnya.. ketika memasukkan username dan login dengan benar, masih belum bisa masuk
ternyata ada masalah dengan cookies nya

hal ini bisa di atasi dengan menedit file app/code/core/Mage/Core/Model/Session/Abstract/Varien.php

dengan menganti code berikut ini

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

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();
}

dengan berikut ini

// session cookie params
$cookieParams = array(
‘lifetime’ => $cookie->getLifetime(),
‘path’ => $cookie->getPath(),
// ‘domain’ => $cookie->getConfigDomain(),
// ‘secure’ => $cookie->isSecure(),
// ‘httponly’ => $cookie->getHttponly()
);
/*
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();
}
*/

5 thoughts on “tidak bisa login admin di magento 1.4.0.1 mengunakan XAMPP 1.7.3

  1. Kristal

    I don’t even know how I finished up right here, but I thought this publish used to be good. I don’t recognise who you’re but certainly you’re going to a famous blogger if you aren’t already. Cheers!

    Balas
  2. Blaine

    Heya i am for the first time here. I came across this board and I find It really useful & it helped me out much. I hope to give something back and help others like you aided me.

    Balas
  3. QRHWani56305

    I used to be recommended this website by way of my cousin. I am not sure whether this post is written by way of him as nobody else realize such exact approximately my difficulty. You’re amazing! Thank you!

    Balas

Tinggalkan komentar