Prestashop cant login in admin

前端 未结 12 2697
余生分开走
余生分开走 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:02

    I use prestashop 1.4.8.2 I just debuged my back office login loop by changing admin/login.php Just remove seemingly useless conditions in following code.

    if ((empty($_SERVER['HTTPS']) OR strtolower($_SERVER['HTTPS']) == 'off')
         AND Configuration::get('PS_SSL_ENABLED'))
    

    Change with

     if (!Configuration::get('PS_SSL_ENABLED'))
    

    I also cleared cookie and bam it worked. I don't know if it will mess other stuff but I can AT LAST get in my back office. Peace!!

提交回复
热议问题