dkl888 Posted August 3, 2011 Share Posted August 3, 2011 I just installed prestashop and the istallation went smoothly but I cant enter the back office. every time I login it redirects to the same login page. (it always directs to http://mysite.com/shop/admin/login.php?redirect=index.php). I've tried clearing my cookies/caches, checked my login.php file, and nothing seems to work. Hope someone can help me, its frustrating. I dont really know whats wrong. thanks! Link to comment Share on other sites More sharing options...
jhnstcks Posted August 3, 2011 Share Posted August 3, 2011 Are you using the www. prefix if not try using it, its a very old bug from v1 that could have resurfaced. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted August 3, 2011 Share Posted August 3, 2011 If it is a bug-related issue, check out this discussion to try to fix it. Link to comment Share on other sites More sharing options...
huntleybill Posted August 4, 2011 Share Posted August 4, 2011 I have the same issue. I tried both suggestions listed above and I still get the same thing. All it does is got to this link which is the login page with no errors. Any other advice would be helpfull. http://www.billrauscher.com/store3/prestashop/zues/login.php?redirect=index.php Please hurry, I can't login to my admin! Thank you Link to comment Share on other sites More sharing options...
dkl888 Posted August 4, 2011 Author Share Posted August 4, 2011 Thanks for the help guys but I tried both but doesn't seem to work Link to comment Share on other sites More sharing options...
blogsketch.com Posted August 19, 2011 Share Posted August 19, 2011 funny problem going on i must say .. i have two seperate prestashop 1.4.4.0 installations on different domains and one is no problems 'as is' and the other gave me the same issue as you state above.. a wild stab that it has something to to with some yummy cookies stuff. in the login.php file (around line 54 )at the top there is a cookie set that i changed from: $cookie = new Cookie('psAdmin', substr($_SERVER['PHP_SELF'], strlen(__PS_BASE_URI__), -10)); to: $cookie = new Cookie('psAdmin', substr($_SERVER['REQUEST_URI'], strlen(__PS_BASE_URI__), -10)); and it worked for me ... the file is located in your admin folder .. be sure to backup a copy of the original login.php file let us know how you go ... cheers 1 Link to comment Share on other sites More sharing options...
Mike Kranzler Posted August 19, 2011 Share Posted August 19, 2011 Hi everybody, Thanks to blogsketch for your latest fix suggestion. As the the login redirect as a whole, I have managed to get it escalated to a top priority with our developers, and you can keep track of their progress here. I hope we can have more news about this for you soon. -Mike Link to comment Share on other sites More sharing options...
bene43420 Posted August 22, 2011 Share Posted August 22, 2011 I had the same problem from time to time in a previous version of PS, now it happened again in 1.3.3 which I still run. My workaround is to regenerate the password which gets me into BO, then change it back. This time I had to attempt login with new password about 4 times, but it finally took. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted August 22, 2011 Share Posted August 22, 2011 Hi everybody, Happy Monday, I told you I would be back with more! Maxence, the developer assigned to this bug, has submitted his fix and closed the issue. You should no longer have any problems with this, but please let me know if it does persist on your end. -Mike Link to comment Share on other sites More sharing options...
huntleybill Posted August 23, 2011 Share Posted August 23, 2011 Hi everybody, Happy Monday, I told you I would be back with more! Maxence, the developer assigned to this bug, has submitted his fix and closed the issue. You should no longer have any problems with this, but please let me know if it does persist on your end. -Mike NOT RESOLVED...still an issue for me Link to comment Share on other sites More sharing options...
Mike Kranzler Posted August 24, 2011 Share Posted August 24, 2011 Bill, I will talk to our developers this morning and find out if there are any additional steps you may need to take to put this fix into effect on your system. -Mike Link to comment Share on other sites More sharing options...
jhonzz007 Posted February 13, 2012 Share Posted February 13, 2012 this issue is often occur in prestashop version 1.4.x so you must fix some code in cookie.php.. it's easy and you can do it by yourself. Here is the solution redirect to login page 1 Link to comment Share on other sites More sharing options...
solstices Posted April 13, 2012 Share Posted April 13, 2012 Always start clearing your cookies completely (if you have the FF Developer toolbar installed, clear both the session and path cookies). I had the same redirect issue, and it got fixed after clearing the cookies. It happened after changing the domain name of the online shop. Link to comment Share on other sites More sharing options...
thegto Posted April 21, 2012 Share Posted April 21, 2012 this issue is often occur in prestashop version 1.4.x so you must fix some code in cookie.php.. it's easy and you can do it by yourself. Here is the solution redirect to login page I also have problem of admin to login at the BO I installed PS 1.4.7.3 on subdomain "myshop" ex, myshop.mywebsite.com I can login to BO via subfolder if I go to www.mywebsite.com/myshop/admin1234 but I cannot login BO via subdomain myshop.mywebsite.com/admin1234 it will be the same problem. by following @jhonzz007 link now it's fixed the problem Thank you!! Link to comment Share on other sites More sharing options...
alia Posted April 28, 2012 Share Posted April 28, 2012 Hi everyone, I have the same problem. After I've installed Prestashop and the configuration went on smoothly, I couldn't login to the BO. Even after I delete the install folder and rename the admin folder, I still couldn't log in to the BO. Please help me fix the problem. Thank you Link to comment Share on other sites More sharing options...
solstices Posted April 28, 2012 Share Posted April 28, 2012 Hi Alia, what error are you getting? Obvious, but just to make sure, are you sure you're now targetting your new B.O URL, named after the new name of the admin folder? Link to comment Share on other sites More sharing options...
cyremia Posted December 13, 2012 Share Posted December 13, 2012 For me the solution suggested by BlogSketch.com worked (Post #6) did it thanks. I had tried a number of other solutions before but this one worked. Thanks Link to comment Share on other sites More sharing options...
itrends Posted December 15, 2012 Share Posted December 15, 2012 i got the same problem above solutions not worked i didnt change anything at my back office, but suddenly i cannot login today also tried clearing cookies and caches, still cant log in please help.. Link to comment Share on other sites More sharing options...
Rhobur Posted December 21, 2012 Share Posted December 21, 2012 i got the same problem above solutions not worked i didnt change anything at my back office, but suddenly i cannot login today also tried clearing cookies and caches, still cant log in please help.. just happened to me today too! None of the above solutions is working! Link to comment Share on other sites More sharing options...
Nicat Posted July 17, 2014 Share Posted July 17, 2014 Hello. Sorry for commenting on such an old thread but I have the same error on prestashop 1.6.0.8. I can't login to BO for 1 week already. I have written about this problem at forge.prestashop.com but no answers. I have cleared cookies, cache, smarty, did all of the solutions written on the forums but none of them worked. Please help. Prestashop is starting to get very annoying with these strange errors coming out from nowhere... 2 Link to comment Share on other sites More sharing options...
vekia Posted July 17, 2014 Share Posted July 17, 2014 Hello. Sorry for commenting on such an old thread but I have the same error on prestashop 1.6.0.8. I can't login to BO for 1 week already. I have written about this problem at forge.prestashop.com but no answers. I have cleared cookies, cache, smarty, did all of the solutions written on the forums but none of them worked. Please help. Prestashop is starting to get very annoying with these strange errors coming out from nowhere... hello when you type your login and password, and when you press log in what you see? some errors? or... or what? Link to comment Share on other sites More sharing options...
Nicat Posted July 18, 2014 Share Posted July 18, 2014 hello when you type your login and password, and when you press log in what you see? some errors? or... or what? Hi. Sorry for not answering as I didn't see your post. I get no errors, just in the url "redirect=AdminDashboard" is added. And it redirects to admin login page each time I press login. If I enter wrong login credentials it gives error as it should. I have downgraded to 1.6.0.6 now and everything works fine. I hope you will give some solution. Link to comment Share on other sites More sharing options...
conor Posted October 15, 2014 Share Posted October 15, 2014 Hi Folks, I have just had a similar issue. I was able to use a different browser to login just fine. This lead me to believe that it was a cookie problem on my machine. To fix the issue I went back to the browser I couldn't log in with. And deleted the cookie associated with my PS website. Hey presto. It works now. Hope it helps somebody else. P.S. I used the EditThisCookie for Chrome. Link to comment Share on other sites More sharing options...
vekia Posted October 16, 2014 Share Posted October 16, 2014 yess usually problems like that are related to cookies. especially when you're dealing with installation and login process, sometimes (i don't know why exactly) it generates problem. anyway, simple browser clear cache helps. Link to comment Share on other sites More sharing options...
marek.medved3 Posted March 5, 2015 Share Posted March 5, 2015 (edited) Hi, I am moving my prestashop installation to new hosting and I want to test it before I publish it. My new hosting provider let mi access to my prestashop by this URL: http://d.websupport.sk/jame-test.sk/ but when I want to access to my BO http://d.websupport.sk/jame-test.sk/adminXXX it redirect me to http://d.websupport.sk/jadminXXX. Please help because I cannot access to my BO. Edited March 5, 2015 by marek.medved3 (see edit history) Link to comment Share on other sites More sharing options...
heyho Posted May 24, 2016 Share Posted May 24, 2016 Same Problem here, after making a copy from my shop in a subdirectory... I solved the problem with changing the "physical_uri" directly in the database table "ps_shop_url". Link to comment Share on other sites More sharing options...
chinox Posted July 19, 2016 Share Posted July 19, 2016 Hello that blogsketch solution worked for me , many thanks Link to comment Share on other sites More sharing options...
elgaxton Posted November 13, 2016 Share Posted November 13, 2016 (edited) Hello everyone, I have tried all the options here but it seems not to be working for me. I am using prestashop 1.6.1.6 and anytime I login to the BO, once I make any change, it doesn't get saved but redirects me to the admin login page. My site is a subdomain of another site. For example: mynewsite.mymainsite.com I have set this for ssl and domain in SEO and URL and I set my BASE URI as "/" after moving from Localhost to this present server. Please I want to know if I'm wrong. Thank you Edited November 13, 2016 by elgaxton (see edit history) Link to comment Share on other sites More sharing options...
lordshop Posted April 14, 2017 Share Posted April 14, 2017 I have tried all the options here but it seems not to be working for me. I used iPhone: Safari and Chrome and from android: Chrome I am using prestashop 1.6.1.11 and anytime I login to the BO, once I press a menu selection it redirects me to the admin login page. My site has SSL I have clear cookies and history from all browsers and still have the same disconnection. Any ideas? Thank you Link to comment Share on other sites More sharing options...
manojbkbiet Posted June 24, 2017 Share Posted June 24, 2017 I am having a problem logging in to my back office. I have tried everything above and nothing works. Please help. I have using Prestashop_1.6. I am not getting an error message it just keep getting directed back the login page. Link to comment Share on other sites More sharing options...
bharath.acapecomrin Posted June 28, 2017 Share Posted June 28, 2017 Hi, whats error will show after click the backoffice login button? clear cache and regenerate htaccess or check htaccess file (#Domain RewriteRule), still the problem comes once these changes done... will check the AdminLoginController.php Link to comment Share on other sites More sharing options...
DanielRomanMartinez Posted July 26, 2017 Share Posted July 26, 2017 Hello,Check whhat is the path of the cookie. You can check it doing: echo "<pre>"; var_dump($cookie); echo "</pre>"; at the end of the file /config/config.inc.php Be sure that the path is correct, the domain is correct. 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