alfreshco Posted October 30, 2014 Share Posted October 30, 2014 Hi everyone. I've just installed PS in my local machine (OS X), everything went smoothly but when I try to log in to the admin panel it get's a loop redirecting to the same page (login page) all the time without an error message (it only shows the error message when I type a wrong pw on purpose). It is the first time I use PS, I've already seen in the forum that it is a common problem (or at least it used to be) and I've tried what I've found here and in Google, but usually are related to servers, browsers... not in local machine, so I'm still blocked. I'd appreciate a lot if someone had a solution. Many thanks Link to comment Share on other sites More sharing options...
El Patron Posted October 30, 2014 Share Posted October 30, 2014 ok..try cookies..I know this sounds like basic I don't care answer....but we must start somewhere yes? Link to comment Share on other sites More sharing options...
alfreshco Posted October 30, 2014 Author Share Posted October 30, 2014 Tried but nothing. And it happens in all browsers btw (safari, chrome, opera, firefox) :S Thanks anyway. Link to comment Share on other sites More sharing options...
El Patron Posted October 30, 2014 Share Posted October 30, 2014 this is most likely because you have bad shop url... i.e. in remote host this issue can be from shop url having (www) and access back office with non-www as you are on localhost..then of course this would not be the case... you can check shop url (phpmyadmin you db | find table yourprefix_shop_url) you may be better served by using remote hosting...then at least we can look at issue easier... 2 Link to comment Share on other sites More sharing options...
alfreshco Posted October 30, 2014 Author Share Posted October 30, 2014 I haven't found that table (yourprefix_shop_url) in the db. I will intall PS in my hosting tomorrow to check it. Thanks 1 Link to comment Share on other sites More sharing options...
El Patron Posted October 30, 2014 Share Posted October 30, 2014 I haven't found that table (yourprefix_shop_url) in the db. I will intall PS in my hosting tomorrow to check it. Thanks note: yourpfefix will probably be ps, so ps_shop_url table...let us know how it go on remote. Link to comment Share on other sites More sharing options...
alfreshco Posted October 30, 2014 Author Share Posted October 30, 2014 Yep sorry I meant that, I didn't find any shop_url Link to comment Share on other sites More sharing options...
El Patron Posted October 30, 2014 Share Posted October 30, 2014 for 1609, if you don't have..then that is issue http://screencast.com/t/YQfZSxCBTm0 Link to comment Share on other sites More sharing options...
alfreshco Posted October 31, 2014 Author Share Posted October 31, 2014 Sorry that was right, it is in the db. My current hosting is quite simple and just allow 1 database, so I'm not able to test it in remote right now. Once I login the url is: http://localhost:8888/spices&tea/administrador/index.php?controller=AdminLogin&token=f839679b089d23ba85bf84bf5bf5cf22&redirect=AdminDashboard I see "redirect=AdminDashboard" so I guess that it should take to the dashboard but it takes to the login again. Everything I've found so far is about cookies and IP, don't see the relation when i'm in local. Thanks Link to comment Share on other sites More sharing options...
El Patron Posted October 31, 2014 Share Posted October 31, 2014 Sorry that was right, it is in the db. My current hosting is quite simple and just allow 1 database, so I'm not able to test it in remote right now. Once I login the url is: http://localhost:8888/spices&tea/administrador/index.php?controller=AdminLogin&token=f839679b089d23ba85bf84bf5bf5cf22&redirect=AdminDashboard I see "redirect=AdminDashboard" so I guess that it should take to the dashboard but it takes to the login again. Everything I've found so far is about cookies and IP, don't see the relation when i'm in local. Thanks bring your localhost to Kansas City, we fix you right up, bring jacket...today cooled off... I don't use osx...pretty old school here...for example my localhost there is no 8888... advice, get more expansive remote hosting....even goddaddy basic has unlimited db/domains. Link to comment Share on other sites More sharing options...
alfreshco Posted October 31, 2014 Author Share Posted October 31, 2014 hahaha. A bit far from London. I'm just about to contract a new server (I needed anyway to host new projects) so I will update you as soon as I can. 1 Link to comment Share on other sites More sharing options...
El Patron Posted October 31, 2014 Share Posted October 31, 2014 hahaha. A bit far from London. I'm just about to contract a new server (I needed anyway to host new projects) so I will update you as soon as I can. ok, let us know how you sort it..else I be in Spain early Jan...we can meet up there.. Link to comment Share on other sites More sharing options...
alfreshco Posted October 31, 2014 Author Share Posted October 31, 2014 Hi. Already intalled PS in a Ubuntu server and everything works so must be some kind of problem with my local machine. I'm going to Spain for Christmas but I'm back in London in Jan. Are you from Sp? Thanks for the help. Link to comment Share on other sites More sharing options...
safa Posted November 4, 2014 Share Posted November 4, 2014 i using mac to and almost 20 diffrent prestashop installed on my computer. but never see like this error. i using xampp https://www.apachefriends.org what you using for local ?? 1 Link to comment Share on other sites More sharing options...
alfreshco Posted November 4, 2014 Author Share Posted November 4, 2014 I'm using MAMP Link to comment Share on other sites More sharing options...
safa Posted November 4, 2014 Share Posted November 4, 2014 I'm using MAMP try the xampp i think your problem will be solve. i tryed lastweek MAMP on my other mac. it's not good .. Link to comment Share on other sites More sharing options...
alfreshco Posted November 4, 2014 Author Share Posted November 4, 2014 I'll do it once i find some time this week. Thanks. Link to comment Share on other sites More sharing options...
Fabrizio r Posted November 6, 2014 Share Posted November 6, 2014 Hello all,I am at my first experience with prestashop version 1.6.0.9, in localhost with xampp v3.2.1. After I have completed the installation of ps and entering the data to create the account admin, I was able at first to regularly use the admin panel. On the next day, however, I am denied login, as if the account does not exist (but in the table ps_employee is present).I then created another user account that runs regularly.If I try the admin password recovery, it says that there is no account registered with the email address indicated, even though as I said it is in the table ps_employee I also tried to reset the admin password in the database, using SQL, like this: UPDATE `prestashop`.`ps_employee` SET `passwd` = MD5('3rgmSsdf4jdgzR6Vx1GHuoHd05Q0TXrwJHcrghQrU9jpCa3Oko6Bs78zpassword') WHERE `ps_employee`.`id_employee` = 1 I tried reinstalling again ps and creating another database, and also to migrate the database to another computer, but I had the same problem several times.I guess the problem is due to cookies, but unfortunately I did not find useful solutions on the net.Any help is welcome.thanks Link to comment Share on other sites More sharing options...
safa Posted November 6, 2014 Share Posted November 6, 2014 Hello all, I am at my first experience with prestashop version 1.6.0.9, in localhost with xampp v3.2.1. After I have completed the installation of ps and entering the data to create the account admin, I was able at first to regularly use the admin panel. On the next day, however, I am denied login, as if the account does not exist (but in the table ps_employee is present). I then created another user account that runs regularly. If I try the admin password recovery, it says that there is no account registered with the email address indicated, even though as I said it is in the table ps_employee I also tried to reset the admin password in the database, using SQL, like this: UPDATE `prestashop`.`ps_employee` SET `passwd` = MD5('3rgmSsdf4jdgzR6Vx1GHuoHd05Q0TXrwJHcrghQrU9jpCa3Oko6Bs78zpassword') WHERE `ps_employee`.`id_employee` = 1 I tried reinstalling again ps and creating another database, and also to migrate the database to another computer, but I had the same problem several times. I guess the problem is due to cookies, but unfortunately I did not find useful solutions on the net. Any help is welcome. thanks hello; try the admin password reset like this http://www.prestashop.com/forums/topic/233195-new-better-way-to-reset-admin-password-prestashop-15-too/ Link to comment Share on other sites More sharing options...
Fabrizio r Posted November 6, 2014 Share Posted November 6, 2014 hello; try the admin password reset like this http://www.prestasho...stashop-15-too/ hello, I tried to reset the password but it does not work ... I do not think it's a problem of password correct or wrong, I think there is a problem with the admin account, probably related to cookies, but I do not know how to fix it Link to comment Share on other sites More sharing options...
safa Posted November 7, 2014 Share Posted November 7, 2014 i don't think your problem with cookie. but i using sometimes firefox extensions "view cookies" http://www.bitstorm.org/extensions/view-cookies/ after install right click target page and go to cookies tab . and clear cookie on only target page. http://prntscr.com/53sjg8 if you have a cookie problem this extensions will be solve. if you can not access your admin reset function must be wrong. Link to comment Share on other sites More sharing options...
Fabrizio r Posted November 9, 2014 Share Posted November 9, 2014 I solved it: I realized that the admin login must be done by a panel other than that for users on the homepage. This step was not mentioned in the guides I consulted. Link to comment Share on other sites More sharing options...
shacker Posted November 10, 2014 Share Posted November 10, 2014 have the same issue to loop in login from BO, but is not related with cookies, browser, etc. so i think is from a change in the server configuration (maybe a php or mysql update) side. If i found the solution i post here. 1 Link to comment Share on other sites More sharing options...
shacker Posted November 12, 2014 Share Posted November 12, 2014 ok, my solution was, in mysql, open the configuration table, and set the PS_COOKIE_LIFETIME_BO to 480 and PS_COOKIE_CHECKIP to 0 3 Link to comment Share on other sites More sharing options...
alfreshco Posted January 17, 2015 Author Share Posted January 17, 2015 It seems that with the latest version of Prestashop this problemas has been resolved or at least I didn´t have it anymore. Link to comment Share on other sites More sharing options...
shacker Posted January 18, 2015 Share Posted January 18, 2015 ok, thats perfect Link to comment Share on other sites More sharing options...
amerigeau Posted August 14, 2015 Share Posted August 14, 2015 ok, my solution was, in mysql, open the configuration table, and set the PS_COOKIE_LIFETIME_BO to 480 and PS_COOKIE_CHECKIP to 0 I have the bug too and this works for me Link to comment Share on other sites More sharing options...
shacker Posted August 15, 2015 Share Posted August 15, 2015 yep. looks like is the most simple solution 1 Link to comment Share on other sites More sharing options...
gomindstorm Posted March 18, 2016 Share Posted March 18, 2016 ok, my solution was, in mysql, open the configuration table, and set the PS_COOKIE_LIFETIME_BO to 480 and PS_COOKIE_CHECKIP to 0 I don't see the COOKIE_LIFETIME nor the COOKIEIP in mysql configuration table? Link to comment Share on other sites More sharing options...
safa Posted March 18, 2016 Share Posted March 18, 2016 I don't see the COOKIE_LIFETIME nor the COOKIEIP in mysql configuration table? there is theree table PS_COOKIE_CHECKIP PS_COOKIE_LIFETIME_FO PS_COOKIE_LIFETIME_BO Link to comment Share on other sites More sharing options...
itsthexypat Posted May 11, 2016 Share Posted May 11, 2016 I do not have those tables either. Link to comment Share on other sites More sharing options...
szinuhe90 Posted October 24, 2016 Share Posted October 24, 2016 Hi all. I installed a new prestasop on my localhost. Yesterday I workink well on admin page. Today when I want to login, after adding admin login details, not happening enythig. The admin page gone blank, just showing the presta logo. Can help me somebody? Thanks Link to comment Share on other sites More sharing options...
szinuhe90 Posted October 27, 2016 Share Posted October 27, 2016 Ok. I find the solution, the new installed hungaryan language file was the problem. Link to comment Share on other sites More sharing options...
snuE Posted November 25, 2016 Share Posted November 25, 2016 I have the same problem, when I turn off English lang, still trying to fight this. Link to comment Share on other sites More sharing options...
kotpepe Posted December 11, 2016 Share Posted December 11, 2016 I don't see the COOKIE_LIFETIME nor the COOKIEIP in mysql configuration table? ok, my solution was, in mysql, open the configuration table, and set the PS_COOKIE_LIFETIME_BO to 480 and PS_COOKIE_CHECKIP to 0 I tried that, but I it didn't solve the problem. Link to comment Share on other sites More sharing options...
prateektambi Posted February 5, 2017 Share Posted February 5, 2017 I also tried setting PS_COOKIE_LIFETIME_BO to 480 and PS_COOKIE_CHECKIP to 0 it does't work. My problem is occouring only in Google chrome. I logged-in via IE and it is working fine. Link to comment Share on other sites More sharing options...
fazzou2010 Posted February 7, 2017 Share Posted February 7, 2017 Hi every body, i'am using prestashop 1.7 installed at distant server using appache "www.lws.fr". yesterday i was working on my web site after one or two hour working when i try to access to prestashop dashbord can't ! i have blank page and error "HTTP ERROR 500". the URL used to access is : www.palission.com/adminlws . this url i use to login to prestashop dashbord. when i call LWS company they tell me that is not their problem and i must ask prestashop. i connect to LWS control panel to see the appache/php log error and i have this : [Tue Feb 07 18:42:09 2017] [error] [client 188.116.37.21] FastCGI: server "/var/www/palission.com/cgi-bin/php5.6.external" stderr: PHP message: PHP Fatal error: Cannot redeclare class Symfony\\Component\\DependencyInjection\\ContainerAwareInterface in /htdocs/app/cache/prod/classes.php on line 7240. if any body can help me to solve this problem? Best regard's. Link to comment Share on other sites More sharing options...
transferim Posted February 8, 2017 Share Posted February 8, 2017 On the next day, however, I am denied login, as if the account does not exist (but in the table ps_employee is present). Link to comment Share on other sites More sharing options...
falez Posted February 9, 2017 Share Posted February 9, 2017 I solved it: I realized that the admin login must be done by a panel other than that for users on the homepage. Link to comment Share on other sites More sharing options...
AmirRzd Posted November 10, 2022 Share Posted November 10, 2022 I installed PS 1.7.8.7 on subdirectory demo.mydomain.com/ps1787 and SSL was enabled on my domain demo.mydomain.com. I chose "Not to enabled SSL" in the installation process. Then I had the "Admin Login Loop" problem in Google Chrome (V. 107.0.5304.106) but not on FireFox (V. 106.0.3). I needed to solve this problem so I tried several suggestions in different topics: 1. Renaming gamification module folder 2. Disabling the IP check in classes/Cookie.php (this can causes many issues with dynamics IP) : in isLoggedBack(), remove or comment the fourth condition: && (!isset($this->_content['remote_addr']) OR $this->_content['remote_addr'] == ip2long(Tools::getRemoteAddr()) OR !Configuration::get('PS_COOKIE_CHECKIP')) 3. Making the expire time shorter for cookies (IE can have issues with longest time cookies) : in classes/Cookie.php constructor, setting: $this->_expire = isset($expire) ? (int)($expire) : (time() + 3600); instead of $this->_expire = isset($expire) ? (int)($expire) : (time() + 1728000); 4. Setting PS_COOKIE_LIFETIME_BO to 480 and PS_COOKIE_CHECKIP to 0 None of them worked for me and I reverted all the changes. None of them were tested simultaneously! The solution that worked for me: In the 'ps_configuration' table (via phpMyAdmin), I changed the 'value' of 'PS_SSL_ENABLED' and 'PS_SSL_ENABLED_EVERYWHERE' from 0 to 1. I have no idea why this worked for me. I would appreciate if anyone explains this. Link to comment Share on other sites More sharing options...
oktu.it Posted March 31, 2023 Share Posted March 31, 2023 On 10/30/2014 at 10:24 PM, alfreshco said: Hi everyone. I've just installed PS in my local machine (OS X), everything went smoothly but when I try to log in to the admin panel it get's a loop redirecting to the same page (login page) all the time without an error message (it only shows the error message when I type a wrong pw on purpose). It is the first time I use PS, I've already seen in the forum that it is a common problem (or at least it used to be) and I've tried what I've found here and in Google, but usually are related to servers, browsers... not in local machine, so I'm still blocked. I'd appreciate a lot if someone had a solution. Many thanks Same error, someone should post instructions in download page Link to comment Share on other sites More sharing options...
oktu.it Posted March 31, 2023 Share Posted March 31, 2023 any suggestions for me ? https://rebeccamilano.com/ loop to logout. Link to comment Share on other sites More sharing options...
AmirRzd Posted March 31, 2023 Share Posted March 31, 2023 Hello @oktu.it Did you try the solution that worked for me? In the 'ps_configuration' table (via phpMyAdmin), I changed the 'value' of 'PS_SSL_ENABLED' and 'PS_SSL_ENABLED_EVERYWHERE' from 0 to 1. 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