cyshield Posted February 20, 2019 Share Posted February 20, 2019 Hello, Since last week I am experiencing a very strange (and frustrating) issue with the backoffice of a shop. I enter the url as usual shop_name.com/adminpanel Then I get a login form, I enter my login credentials but it doesn't let me login Let's say the URL looks like that: https://shop_name.com/adminpanel/index.php?controller=AdminLogin&token=f4aaafb764045652590cabb900012245f&redirect=AdminDashboard Everytime I try to login, it just redirects me back to login form. I enter username, password, click "login" and again, back to login form, like a loop. If i change the url to just this: https://shop_name.com/adminpanel/index.php?controller=AdminDashboard then I am able to access dashboard without even the need of entering my credentials But if I click on the menu option "Dashboard", it will send me back to login form which the loop will take place again UNLESS I remove everything after controller= except the "AdminDashboard" I assume it means I was logged in anyway but for some strange reason, everytime I click on Dashboard it redirects me to login. Clearing cache work until the issue happens again. And it can happen to other menu options too. This time is on "AdminDashboard", sometimes it might be the "Orders". And it is the same thing, clicking on Orders => redirects back to login => trying to login redirects back to login again. If I add AdminOrders in the controller in the url then it will work until I click on Orders again I read almost all topics with similar issues, I tried setting Check the cookie's IP address to "NO" I removed cache, I changed shop_url removing www from url and other stuff but no luck. Can anyone please help me with this? Any help would be much appreciated I'm really stuck right now and don't know why this happen. I get no errors at all. Just a redirect loop. Thanks in advance Link to comment Share on other sites More sharing options...
cyshield Posted February 20, 2019 Author Share Posted February 20, 2019 any suggestions? anything could help. I don't know what else to try Link to comment Share on other sites More sharing options...
Bill Dalton Posted February 22, 2019 Share Posted February 22, 2019 I have had some problems with the .htaccess located in the admin/backoffice directory. Not the problem you describe, but redirect issues. Currently I have removed the .htaccess file from that dir. Long shot, but try temporarily removing that file from the admin directory, see if it helps. Link to comment Share on other sites More sharing options...
futurehousestore Posted February 22, 2019 Share Posted February 22, 2019 access your admin login page e.g. https://shop_name.com/adminpanel/index.php?controller=AdminLogin&token=f4aaafb764045652590cabb900012245f&redirect=AdminDashboard and clear browser cache just before login in. If it helps then you probably have a problem with Leverage Browser Caching. I need to clear cache every time just before logging in to my BO to be able to access the BO. Link to comment Share on other sites More sharing options...
cyshield Posted February 22, 2019 Author Share Posted February 22, 2019 If I clear browser cache then I can login @futurehousestore but it is frustrating to do this all the time. I was looking for a better solution. Will look into the "leverage browser caching". Thanks @Bill Dalton I haven't tried that but thanks for the suggestion. Just for anyone interested, I managed to fix it (at least for now it works fine) by changing the PHP version from 7.1 to 7.0 I haven't found out what was causing the issue but it seems to be working now. Link to comment Share on other sites More sharing options...
futurehousestore Posted February 22, 2019 Share Posted February 22, 2019 I have a PHP version: 7.0.33 and this problem exist for me when I switch on leverage browser caching but if I switch it off then it works fine but I rather keep it on as the shop works faster Link to comment Share on other sites More sharing options...
cyshield Posted February 22, 2019 Author Share Posted February 22, 2019 Just out of curiosity, if you try to change your PHP version to 7.1, would it work? If you have time and you can test it, it would be interesting to see whether it will work or not. I very much doubt that the issue has to do with PHP versions. But maybe by changing it, it triggers something or modify somehow the cache? I honestly don't know Link to comment Share on other sites More sharing options...
futurehousestore Posted February 22, 2019 Share Posted February 22, 2019 I had before PHP 5.5 PHP 7.1 and PHP 7.2 but due to issues I had to downgrade to PHP 7.0.33 and I don't remember if I had issues with logging in but I think I had them with those PHP versions as well. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now