且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Magento 管理面板无法访问且没有错误(服务器挂起后)

更新时间:2023-11-29 22:02:16

我在此处详述的核心 magento 文件之一中使用了 hack:http://blog.chapagain.com.np/magento-admin-login-problem/

I have employed a hack in one of the core magento files detailed here: http://blog.chapagain.com.np/magento-admin-login-problem/

我不得不注释掉app/code/core/Mage/Core/Model/Session/Abstract/Varien.php"中的行:(请注意,这是针对 1.6 的 - 检查发布的关于 1.4 的建议的链接)

I have had to comment out lines in "app/code/core/Mage/Core/Model/Session/Abstract/Varien.php": (please note this is for 1.6 - check link posted for advice on 1.4)

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

第 104 行也注释掉:

also line 104 comment out :

//call_user_func_array('session_set_cookie_params', $cookieParams);

似乎是当服务器关闭时,会话发生了一些事情,因为新安装也失败了.

It seems to be when the server went down something happened to the session, as the new install also failed.