[英]Why is magento sometime shows a blank page and sometime redirects to same admin login page after admin login?
I am using magento 1.8.1.0. 我使用的是magento 1.8.1.0。 While transferring magento from local server to live server, I could not log-in to admin dashboard.
在将magento从本地服务器转移到实时服务器时,我无法登录管理仪表板。 Sometime it shows blank page and sometime it redirects to same admin log-in page.
有时它显示空白页面,有时它会重定向到相同的管理员登录页面。
I googled a lot about this issue and tried all possible solution i found like following: 我搜索了很多关于这个问题并尝试了所有可能的解决方案,我发现如下:
After applying all these errors, the problem is still not resolved. 应用所有这些错误后,问题仍未解决。 Log-in to admin still shows blank page or redirects to same page.
登录管理员仍会显示空白页面或重定向到同一页面。 I think it's the issue of session cookie.
我认为这是会话cookie的问题。 I desperately need help in this.
我迫切需要帮助。 Please i beg someone to solve this issue.
请求我帮忙解决这个问题。 Thank you in advance.
先感谢您。
I solved the issue. 我解决了这个问题。 However, i saw many magento beginners struggle in their first attempt of moving magento from localhost to live server and there is no one place solution for this.
然而,我看到许多magento初学者在他们第一次尝试将magento从localhost移动到live服务器时遇到了困难,并且没有一个地方解决方案。 Here, i tried to make this post a one place solution for this issue with a useful links that i referred and some other steps so that you guys don't have to google much.
在这里,我尝试使这个帖子成为这个问题的一个地方解决方案,我提到了一些有用的链接以及其他一些步骤,这样你们就不必去谷歌了。
Apart from the steps mentioned in this blog, you must do some more steps in order to make it work. 除了本博客中提到的步骤之外,您还必须执行一些其他步骤才能使其正常工作。
comment out some line of code in "app/code/core/Mage/Core/Model/Session/Abstract/Varien.php" shown as below 在“app / code / core / Mage / Core / Model / Session / Abstract / Varien.php”中注释掉一些代码,如下所示
In magento 1.8.1.0, it is in line 88 to 94. 在magento 1.8.1.0中,它在第88到94行。
$cookieParams = array( 'lifetime' => $cookie->getLifetime(), 'path' => $cookie->getPath()/*, 'domain' => $cookie->getConfigDomain(), 'secure' => $cookie->isSecure(), 'httponly' => $cookie->getHttponly() */ );
This should solve the issues in moving magento from localhost to live server. 这应解决将magento从localhost迁移到live server的问题。 But, if you are still having problem to log-in as admin like i had then check your log file.
但是,如果您仍然有像我一样的管理员登录问题,那么请检查您的日志文件。 In my case, i had to install "PHP curl library".
在我的情况下,我不得不安装“PHP curl库”。
I hope this will help others. 我希望这会有助于其他人。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.