Prestashop无法登录管理员 [英] Prestashop cant login in admin
问题描述
几天前,我无法基于prestashop平台访问我网站上的管理面板. 输入登录名和密码后,我又被重定向到登录页面,并且一切重复.
Several days ago I couldn't access the admin panel on my site based on prestashop platform. After entering login and password, I was redirected to login page again and everything repeated.
该站点托管在专用服务器上,我正在开发的其他一些prestashop站点也托管在该服务器上.在尝试访问这些网站上的管理面板后,我遇到了同样的错误".
The site is hosted on a dedicated server, where some other prestashop sites I am developing are hosted too. After trying to access the admin panel on these sites I get the same "error".
您怎么看,这是什么问题?
What do you think, what is problem?
Prestashop版本:1.4.7.3和1.4.8.2
Prestashop ver.: 1.4.7.3 and 1.4.8.2
服务器:CentOs,PHP
Server: CentOs, PHP
推荐答案
您可以尝试以下操作:
1/清除浏览器缓存和cookie
2/尝试使用Firefox代替Chrome (似乎有一些意外问题)
2/ Try using Firefox instead of Chrome (which seems have some unexpected problems)
3/在ps_configuration
表中检查PS_SHOP_DOMAIN
和PS_SHOP_DOMAIN_SSL
3/ Check PS_SHOP_DOMAIN
and PS_SHOP_DOMAIN_SSL
in ps_configuration
table
4/手动清除Smarty缓存:删除tools/smarty/compile
和tools/smarty/cache
5/禁用classes/Cookie.php
中的IP检查(这可能会导致动态IP出现许多问题):
在isLoggedBack()
中,删除或注释第四个条件:
5/ Disable the IP check in classes/Cookie.php
(this can causes many issues with dynamics IP) :
in isLoggedBack()
, remove or comment the fourth condition :
AND (!isset($this->_content['remote_addr']) OR $this->_content['remote_addr'] == ip2long(Tools::getRemoteAddr()) OR !Configuration::get('PS_COOKIE_CHECKIP'))
6/缩短cookie的过期时间(IE可能会出现时间最长的cookie):在classes/Cookie.php
构造函数中,
6/ Make the expire time shorter for cookies (IE can have issues with longest time cookies) : in classes/Cookie.php
constructor,
set:$this->_expire = isset($expire) ? (int)($expire) : (time() + 3600);
而不是$this->_expire = isset($expire) ? (int)($expire) : (time() + 1728000);
这篇关于Prestashop无法登录管理员的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!