This tutorial shows how to resolve the Magento admin panel login issue.
It’s a common issue: you are trying to login to the Magento admin panel, typed your username and password, clicked Login button and nothing happens. The page refreshes and that’s all. No error or any other messages.
This is caused by the cookies issue. In some cases Magento can’t store them. Let’s see how the issue can be resolved.
Using localhost (WAMP, XAMP, AppServ etc)
If you are running Magento on local server using the specific server applications (listed above) try to replace ‘localhost’ in the website URL with ‘127.0.0.1’. In other words link to the Magento admin panel login page will be ‘127.0.0.1/magento/admin’
If this doesn’t help please proceed to other solutions
Edit Varien.php file
Open Magento installation directory and go to the ‘app\code\core\Mage\Core\Model\Session\Abstract’ folder. There open ‘Varien.php’ file with your editor (Adobe Dreamweaver, Notepad ++ etc).
Depending on your version of Magento the code can be different so I’ll show you several cases.
Magento 1.4.x
In the Varien.php file locate the code:
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(); }
And comment it. Type /* before the code and */ after. Or just replace it with the code below:
/*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(); }*/
Magento 1.5.x and Magento 1.6.x
In the Varien.php file locate the code:
$cookieParams = array( 'lifetime' => $cookie->getLifetime(), 'path' => $cookie->getPath(), 'domain' => $cookie->getConfigDomain(), 'secure' => $cookie->isSecure(), 'httponly' => $cookie->getHttponly() );
and replace with
$cookieParams = array( 'lifetime' => $cookie->getLifetime(), 'path' => $cookie->getPath(), //'domain' => $cookie->getConfigDomain(), //'secure' => $cookie->isSecure(), //'httponly' => $cookie->getHttponly() );
Then comment the code:
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(); }
the same way as for the Magento 1.4.x (please check above)
Magento. Can't login to admin panel,
原文:http://www.templatemonster.com/help/magento-cant-login-to-admin-panel.html
转自: Magento: 无法登录后台 Can't login to admin panel
相关推荐
NULL 博文链接:https://justcoding.iteye.com/blog/2100394
Magento:registered:2的强制登录模块 Magento:registered:2的“强制登录”模块允许您限制访问者可以看到哪些页面。 如果访问者页面未标记为可访问,则将其重定向到登录页面。 Magento:registered:2的强制登录模块...
Apress.The.Definitive.Guide.to.Magento.Dec.2009.pdf Apress于2009重磅推出的Magento上手书籍,原书地址:http://www.apress.com/book/view/9781430272298
MagentoBeginner's Guide.pdf [Packt]出品,最早的Magento精品书之一,原书地址:http://www.amazon.com/Magento-Beginners-Guide-William-Rice/dp/1847195946
magento2-force-login, Magento 2强制登录模块 如果页面没有标记为 visitable,访问者会被重定向到登录页面。 插件功能:在允许访客访问你的网页和目录之前,强制你的访客先登录( 或者 register )管理:管理区域中的...
5. Flush cache php bin/magento cache:flush,...To activate the module log into the Magento admin panel and navigate to Stores -> Configuration -> BelVG Extensions -> Product Tabs. General settings will...
magento:magento-ce 2.4.0
可能很多朋友有同样的经历,magento在服务器中配置域名是可以正常的访问了,但是在本地配置后却无法登录后台,账号密码登录的时候发现出现空白,无法跳转到后台,本文章向大家介绍两种解决本地magento后台无法登录的...
Magento 后台管理插件示例! 注:USDP为命令空间
magento判断用户是否登录和怎么获取登录者名称:
Magento:registered:2数据集成借助Datatric Connect扩展程序,可以轻松地将Magento:registered:2商店与Datatrics平台连接起来。安装在开始安装过程之前,我们建议您对webshop文件以及数据库进行备份。 有两种安装...
通过SFTP或SSH导航到Magento [Magento]/app/code/ 。 上载带有扩展名的Dropday/OrderAutomation目录。 打开终端并导航到Magento根目录。 运行以下命令以启用Dropday扩展: php bin/magento module:enable Dropday_...
magento的关于自定义后台配置的简单示例 把Exercise_Avatar.xml放到magento/app/etc/modules/下面 文件夹Avatar放到magento/app/code/local/Exercise/下面就可以到后台看到相应配置信息
magento1.7后台香港繁体中文汉化,免费下载使用,现在magento1.7版本都没有汉化的,我来贡献吧。
magento:Magento CE 1.x源代码
此文当是magento 后台操作文档,希望可以帮助大家更好使用电子商务的利器magento
如果你正在创建一个Magento的管理模块(学习创造Magento管理模块),那么你一定会被要求创建一个管理列表既Grid。创建列表,Magento新手程序员有点困难,但在本教程中,我们将创建一个网格在管理模块中最简单的方式...
NULL 博文链接:https://justcoding.iteye.com/blog/1886183
fresh-magento:新鲜的magento
magento用户中文操作手册,学习magento后台管理