Prestashop cant login in admin

前端 未结 12 2695
余生分开走
余生分开走 2020-12-15 12:27

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 ever

12条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-15 13:01

    Here is some things you can try :

    1/ Clear your browser cache and your cookies

    2/ Try using Firefox instead of Chrome (which seems have some unexpected problems)

    3/ Check PS_SHOP_DOMAIN and PS_SHOP_DOMAIN_SSL in ps_configuration table

    4/ Manually clear smarty cache : remove all files from tools/smarty/compile and tools/smarty/cache

    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/ 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);

    instead of $this->_expire = isset($expire) ? (int)($expire) : (time() + 1728000);

提交回复
热议问题