Prestashop cant login in admin

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

    I had the same issue after adding a NGINX as reverse proxy in front of my Apache web server.

    The problem was from the « Check the IP address on the cookie » parameter set to « yes ». Since i was locked out from admin and could not change it, i did it directly in the database with this SQL request :

    UPDATE ps_configuration SET value = 0 WHERE name='PS_COOKIE_CHECKIP';
    

    PS : ps_ is my table prefix, you may adapt it to your settings.

    0 讨论(0)
  • 2020-12-15 12:49

    If you have a working site, where you can login. Maybe you can copy the user from the working to the non working, and se if that works.

    0 讨论(0)
  • 2020-12-15 12:52

    I know this is old but it may help someone, turn errors on by opening /config/config.inc.php.

    Look for the line:

    ini_set('display_errors', 'off');
    

    change it to:

    ini_set('display_errors', 'on');
    

    EDIT: changed a seemingly typo

    0 讨论(0)
  • 2020-12-15 12:53

    I had the same issue as everyone else.

    I was able to login via IE but not firefox.

    What I did to remedy the issue was go into cookie manager and delete all the cookies.

    I know it sounds cliche but nothing else worked.

    I searched for my site name and looked at the cookie, it was dated long but no longer active. My guess was I corrupted the cookie or maybe they do IP matching, because in the middle of using the admin panel, I switched to my phone browser to check something. Upon return, it would just loop the login page, no error.

    I think they need to fix the issue from the software standpoint.

    Regardless, after I deleted all the cookies associated with my site, I got right back in no problem. It also resolved an issue I was having with www.mysite.com and mysite.com. I was talking to tech support because sometimes it would work and other times it wouldn't. Maybe the cookie also stores which variant of www/non was used for dynamic linking. My DNS was allowed time to resolve and tech support blamed that but it wasn't that.

    Don't just clear cookies, go manually delete the ones for your site. When I used the clear cookies, it didn't delete a lot of cookies. I found that my site still had 9 cookies set AFTER the clear cookies. Whether that was my error or something else, I won't know.

    Good luck to all and thanks for the other suggestions. If it returns, I'll go into the other suggestions and report back.

    0 讨论(0)
  • 2020-12-15 12:54

    I spent a lot of time debugging this. Installed prestashop locallly on my computer. I my case the following, you should manually navigate to the following:

    < domain >/admin/index.php
    
    0 讨论(0)
  • 2020-12-15 12:54

    For solution try this:

    • Open; phpMyAdmin, ps_configuration table

    • Find, PS_COOKIE_CHECKIP and set it as 0

    • Clear all cache then try again, probably it will be solved.

    You can think that it is related to IP/network issue.

    0 讨论(0)
提交回复
热议问题