Magento 管理面板无法访问且没有错误(服务器挂起后) [英] Magento admin panel inaccessible with no error (after server hang)
问题描述
magento 安装所在的服务器崩溃了(目前原因未知),现在后端无法访问.我要么没有错误,要么访问被拒绝.我可以执行密码重置.
the server that a magento install was on crashed for (currently reason unknown) and now the backend is inaccessible. I either get no error or I get access denied. I am able to preform the password reset.
我试过了:
- 清除浏览器 cookie 和缓存
- 清除 magento 中的 session、tmp 和缓存文件夹
- 使用 magento 数据库修复工具 - 未发现错误
- 在 admin_users 表中手动创建新用户(这会导致访问被拒绝)
- 再次重新启动服务器(最后的手段,但仍然没有)
主管理员用户获得重定向循环.
The main admin user gets a redirect loop.
欢迎任何想法,我现在很难过.
Any ideas are welcome, I am now stumped.
我真的想通过任何方式恢复 magento 管理员登录吗?或以任何方式无法导出数据(不导出错误部分)
I am really after any way to recover a magento admin login? or failing this any way to export the data (without exporting the bugged section)
推荐答案
我在此处详述的核心 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.
这篇关于Magento 管理面板无法访问且没有错误(服务器挂起后)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!