无法登录 Magento 管理员 [英] Can't log in to Magento Admin

查看:46
本文介绍了无法登录 Magento 管理员的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我们的一个登台站点上登录 Magento 的管理面板时遇到问题(它在我们的 webdev 服务器上 100% 工作,不久前在登台服务器上也工作得很好).

I'm having troubles logging into Magento's admin panel on one of our staging sites (it works 100% on our webdev servers and was working just fine not too long ago on the staging server as well).

我做了一些研究,大多数人认为这与在本地主机上运行 Magento 和浏览器不为域名中没有点的域保存 cookie 有关.然而,问题在于我们从 http://staging.sitename... 等运行它.

I've done some research, and most people suggest that it's got to do with running Magento on a localhost and browsers not saving cookies for domains with no dots in the domain name. The problem with that, however is that we're running it from http://staging.sitename... etc.

建议的另外几件事是有人更改了配置中访问管理员的默认名称,但我们没有更改它.

Another few things that were suggested are where someone changed the default name for accessing the admin in the config, but we haven't changed it.

有没有人有任何可能有帮助的想法?

Does anyone have any ideas that might help?

感谢您花时间帮助我!

亲切的问候,
雷米

Kind Regards,
Rémy

推荐答案

我设法修复了它!我在这里找到了这个解决方案:http://blog.chapagain.com.np/magento-admin-login-problem/.

I managed to fix it! I found this solution here: http://blog.chapagain.com.np/magento-admin-login-problem/.

我想知道为什么会修复它,并且 var_dump 了我注释掉的项目,并意识到 cookie 域被设置为/",而我们在/shop/"下设置了 magento.于是我到配置部分(把文章中提到的3行注释掉后成功登录),将Cookie Domain和Cookie Path更改为空白并保存.然后我取消注释这些行并再次尝试,一切正常!

I wanted to know why that fixed it though and var_dumped the items I commented out and realized that the cookie domain was being set to just '/' and we have magento set up under '/shop/'. So I went to the configuration section (having managed to log in after commenting out the 3 lines mentioned in the article), changed the Cookie Domain and Cookie Path to be blank and saved. I then uncommented those lines and tried again and all's working well!

这篇关于无法登录 Magento 管理员的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆