magento后台登陆之后自动返回登陆见面 没有任何提示(火狐能正常登陆)
查资料发现了N种可能性
数据库中设置问题、域名问题
http://www.yireo.com/tutorials/magento/magento-administration/651-unable-to-login-into-the-magento-backend
Unable to login into the Magento backend
When you migrate your Magento website from location to another, or you change the domain-name under which it is running, you might run into the problem that you can't login anymore to the Magento Admin Panel. Here are various solutions to this problem.
Localhost
One reason why the Magento login fails, might be that you're accessing the Magento website through the hostname localhost. Magento checks whether the hostname is a real domainname, and if it isn't, it fails to create the right cookies.
The only workaround is to fool Magento into thinking a real domainname is used. Under Linux or MacOS you could try using localhost.localdomain, but under Windows you will need to modify your hosts-file for this. Easier is just to use the IP-address 127.0.0.1 to access Magento.
If you are using a remote webserver, it's unlikely that this problem occurs.
Cookie domain
Another reason why you fail to login, could be some setting within the Magento configuration. To alter this, you will need to open up the MySQL database - for instance by using phpMyAdmin. Navigate within your Magento database to the MySQL table core_config_data and look for a row with the field path set to the value web/cookie/cookie_domain. There might be multiple entries, but the one with the scope_id set to 0 should be matching the domainname you're using to access Magento.
If the database table core_config_data doesn't contain any row with path set to web/cookie/cookie_domain, don't add it because you don't need it. If you find multiple entries, be careful with what to change because you might break your Magento site completely.
If you use a database table prefix, the table core_config_data might actually be uii44_core_config_data or something alike. This makes it harder for hacker to attack your Magento site (SQL injection attacks).
Secure or unsecure URLs
Another problem could be that the so-called Secure URLs and/or Unsecure URLs do not match the current hostname. In this circumstance, Magento tries to redirect to the original hostname anyway. So watch the hostname in the browsers addressbar closely.
In the same MySQL table core_config_data you might find various entries with path starting with web/secure/base or web/unsecure/base. These also need to point to the right hostname. Note that the number of occurances could range from 0 (nothing configured) to 10 (everything configured).
Deleting and reconfiguring
Instead of trying to set the values above correctly, which could be a lot of work, you can also delete these entries and have a fresh start. You can use the following SQL-queries for this:
DELETE * FROM `core_config_data` WHERE `path` = "web/cookie/cookie_domain"DELETE * FROM `core_config_data` WHERE `path` LIKE "web/secure/base%"DELETE * FROM `core_config_data` WHERE `path` LIKE "web/unsecure/base%"Check your file permissions
It's also worth taking a look at the permissions of your hosting environment. The folder var/cache within your Magento installation needs to be writable to the webserver, so new session-files can be created. If the folder is not writable, nobody is able to login.
Save sessions in the database
Instead of fixing the file permissions, you can also store the sessions in the database instead. You can accomplish this by editing the file app/etc/local.xml. Make sure you have a good backup of this file, and follow the exact syntax as below.
Locate the line starting with <session_save> and change the word files into db. So the following:
<session_save><![CDATA[files]]></session_save>should become:
<session_save><![CDATA[db]]></session_save>Save the file and sessions will be saved in the database instead. Please note that this change could have consequences regarding performance as well.
http://stackoverflow.com/questions/2004357/magentocommerce-development-environment-domain-issue/2005096#2005096
I'm running Magento on a Production server and a number of development and test domains.
The domain isn't hardcoded in any file - the domain is all in the database.
You have to change the secure base url and the unsecure base url when you move from server to server. Both of these are stored in the database and can be changed in the web based administration screens. When moving the database from one host to another, I use a script that does little but update these values. Here's the SQL you need to update these values:
update core_config_data set value='http://whatever.com/' where path='web/unsecure/base_url'; update core_config_data set value='https://whatever.com/' where path='web/secure/base_url'; You may also want to pay attention to the local.xml file where the database connection is configured. I'm sure that you'll want to have the different instances using different databases. In my configuration, I leave this file out of source control, and configure it just once for each instance.
https://technologygurusinc.com/blog/?p=5
Can’t log in to Magento admin
Yesterday evening, after doing damage to brain trying to figure out how to override individual actions on Magento core controllers, I suddenly found myself unable to log in to my Magento admin.
It didn’t give me an ‘Invalid Password’ message and it seemed to post the form well enough (it was successfully generating a session key every time), but it always rerouted me back to the admin login screen. On every browser (except Firefox), the login process was equally ineffective.
I was mystified. I tried changing the controller back to the way it was, disabled all my custom modules, deleted all my cookies. Still nothing. I SSH’d into the server and checked for errors in the var/log directory, but found nothing. I manually cleared the Magento cache by deleting everything from the var/cache and var/session directories. I ran a tail on the access.log file in our home directory, and on the Apache2 server installation, scouring for PHP errors. Nothing.
We finally figured out what was happening. When you submit the admin login form, the IndexController in app/code/core/Mage/Adminhtml/controllers calls the isLoggedIn() method on the admin session scope. It can’t find your session, so it assumes the session is timed out and redirects you to the login screen.
This means that the session is not being instantiated properly. Except in Firefox. In every browser but Firefox, if the server time doesn’t match the client time, the browser will often fail to instantiate cookies properly. So we SSH’d into the server and checked the date and time.
Sure enough, a reboot had reset our server’s time. Our server thinks that is 10:52, whereas the client knows the truth–it is actually 11:56. So we use the command line to change to the correct time:
sudo ntpdate stdtime.gov.hk
sudo hwclock -w
sudo dpkg-reconfigure tzdata
And then I try to log in once more, and it’s fixed! I can log in again. And I only wasted about three or four hours. Awesome. Now back to work.
If you are unable to log into Magento’s admin, try doing this. I can’t guarantee it will work for you, since any Magento problem could potentially be traced to a number of different root causes. But it’s worth a shot.
我的解决方法一直试到最后才行
系统时间导致……还真让人费解
分享到:
相关推荐
这篇博客“Magento:后台添加预览按钮 View product in frontend from Magento admin”主要探讨了如何通过自定义开发来实现这一功能,让管理员能够快速检查商品在网站前台的显示状态。 在Magento中,通常管理员需要...
Magento是一款强大的开源电子商务平台,它提供了丰富的功能和高度的可扩展性。Facebook快捷登录插件是Magento商城系统中的一种常见扩展,旨在为用户提供更便捷的购物体验。通过这个插件,用户可以使用他们的Facebook...
1. **更新或更换浏览器**:首先,尝试更新IE到最新版本,或者切换到更现代的浏览器,如Chrome、Firefox或Edge。这些浏览器对Web标准的支持更好,可以更顺畅地运行Magento。 2. **禁用浏览器增强安全配置**:在企业...
本篇文章将详细解析如何在Magento的Admin中实现自定义动态菜单。 首先,我们需要理解Magento的菜单结构。Magento的后台菜单主要由` Mage_Adminhtml_Block_Menu`类控制,它通过遍历系统配置中的`adminhtml/menu`节点...
确保操作系统为Linux,因为Magento对Windows的支持并不理想。Apache或Nginx作为Web服务器,MySQL作为数据库系统,PHP版本至少为7.2,但最新稳定版通常更好。 2. **PHP扩展**:Magento需要一些特定的PHP扩展来正常...
标题:“Magento数据结构分析” 描述:“Magento数据字典”提供了对Magento系统中各种数据库表的深入理解,这对于理解和优化Magento的性能至关重要。 一、Magento数据结构解析 Magento是一款功能强大的电子商务...
因此,这个插件提供了一个无Flash的替代方案,确保用户在不使用Flash的情况下也能顺畅地上传产品图片和其他文件。 该插件的核心功能包括: 1. **HTML5技术支持**:利用HTML5的File API,实现跨浏览器的文件上传...
在电商领域,经常会有需求将一个已经建立并运行良好的Magento站点快速复制到另一个服务器,用于测试、备份或者创建一个新的独立站点。这个过程涉及到数据库的备份与还原、文件系统的复制以及配置的调整等多个步骤。 ...
标题提到的"我终于实现了把FirePHP集成进Magento了,终于能监测SQL了",这是一个关于将FirePHP日志框架与Magento电子商务平台整合的成就,使得开发者能够更方便地追踪和分析系统中的SQL查询。下面将详细阐述这一集成...
Magento是一款开源的电子商务平台,专为在线商家设计,提供强大的购物车系统和丰富的功能。"Magik Shoes Magento 模板"是专为Magento 1.7版本设计的商店主题,旨在提升在线鞋类销售商店的用户体验和视觉吸引力。在这...
### Magento产品不改变缺货状态的原因分析及解决办法 #### 一、问题概述 Magento是一款功能强大的电子商务平台,被广泛应用于各种规模的企业中。但在实际使用过程中,有时会出现产品的库存状态无法正确显示的问题,...
在Magento 1.7.x,1.8.x,1.9.x上安装使用安装: $ cd /path/to/magento$ modgit init$ modgit clone admin-theme https://github.com/jreinke/magento-admin-theme.git或手动下载软件包: 下载最新版本从管理员注销...
3. 核心概念理解:详细介绍Magento中的核心概念,如实体属性(EAV)模型、事件/观察者模式、依赖注入等,这些都是开发Magento模块不可或缺的基础知识。 4. 模块开发:深入探讨如何创建和开发Magento模块,模块是...
Protect Magento instance admin from unexpected intrusions Set up newsletter and transactional emails so that communication from your website corresponds to the website’s look and feel Make the store ...
"Magento 1.6 示例数据包"是专门为Magento 1.6版本设计的,它为用户和开发者提供了一套预填充的数据,以便在安装后能快速体验到Magento的功能和界面展示。 这个数据包的主要目的是帮助新用户或开发者了解Magento的...
根据给定文件信息,以下为《Magento 2 Developer's Cookbook》一书中的知识点介绍。 首先,《Magento 2 Developer's Cookbook》是一本针对Magento 2开发的指导手册,它向开发者提供了实用的食谱来解决在Magento 2...
在 Magento Admin 中将任何 SQL 查询结果显示为网格和图表 在 Magento 1.9.x 上安装 使用安装: $ cd /path/to/magento $ modgit init $ modgit clone querygrid ...
这个“magento-java-master.zip_magento”压缩包可能是为了提供一个Java连接Magento源码的示例或者库,帮助开发者实现Java与Magento系统的交互。 在Java中与Magento进行交互通常涉及到以下几个关键知识点: 1. **...
关于插件,Magento 1.x中的“重写”机制和Magento 2.x中的“插件(Interceptors)”允许开发者在不修改核心代码的情况下改变系统行为。例如,如果你想要改变默认的结账流程,你可以创建一个新的控制器或服务合同插件...