Troy Posted January 24, 2011 Share Posted January 24, 2011 Hello. I am using v1.3.4.0. When I login in toget into my admin side, all is fine. The moment I changed something and "save" it, it takes me back to the original "Login" Screen. This has happened many times over the last few hours. I do not know whether its a bug.Im uploading v1.3.2 and see whether its a bug or something with my computer. Keep you posted.Ok it did not work at all.Sometimes I get back to the Login Screen 3-4 times before I can get to my BO. Any help is appreciated I was searching the forum and found the below mentioned but did not work for me but worked for others.In the file “prestashop/classes/Cookie.php” go down to line 50 where you see:$this->_expire = isset($expire) ? intval($expire) : (time() + 1728000);and change it too:$this->_expire = isset($expire) ? intval($expire) : (time() + 3600);This is because (some versions of) Internet Explorer seem to reject cookies that have large expiry Back to more searches =======================================================================I managed to stay way way way longer ON BO now without being directed to Login Screen again.Since I am using google, I did the following steps :-Tools -> Options - Privacy -> Clear all individual cookies.I managed to see my website folder there. Thus is redirecting. I hope this help. Link to comment Share on other sites More sharing options...
Troy Posted January 25, 2011 Author Share Posted January 25, 2011 Still having the same problem. Any help is appreciated. . Link to comment Share on other sites More sharing options...
Troy Posted January 27, 2011 Author Share Posted January 27, 2011 This is what I have done so far but to no avail. I am now using v1.3.61. Deleting the files in tools>smarty>compile apart from index.php2. Deleted all the cookies from my browser. (Nothing to do with the browser)3. Also tried to change the inti.php and login.php listed belowinit.php$cookie = new Cookie(‘psAdmin’, substr($_SERVER[‘SCRIPT_NAME’], strlen(PS_BASE_URI), -strlen($currentFileName[‘0’])));login.php$cookie = new Cookie(‘psAdmin’, substr($_SERVER[‘PHP_SELF’], strlen(PS_BASE_URI), -10));Thoses lines are not sending a correct path to the browser. Maybe that’s because I use sites other than the main site as virtuals home pages. To fast correct the problem I put explicity the path by my self. So, the lines were just as:login.php$cookie = new Cookie(‘psAdmin’, “admin445” );init.php$cookie = new Cookie(‘psAdmin’, “admin445”);If anyone could help. Much appreciated. I have searched through the whole of prestashop to find recommended solutions but they dont work for me. Link to comment Share on other sites More sharing options...
Troy Posted January 28, 2011 Author Share Posted January 28, 2011 This is what I have done so far but to no avail. I am now using v1.3.61. Deleting the files in tools>smarty>compile apart from index.php2. Deleted all the cookies from my browser. (Nothing to do with the browser)3. Also tried to change the inti.php and login.php listed belowinit.php$cookie = new Cookie(‘psAdmin’, substr($_SERVER[‘SCRIPT_NAME’], strlen(PS_BASE_URI), -strlen($currentFileName[‘0’])));login.php$cookie = new Cookie(‘psAdmin’, substr($_SERVER[‘PHP_SELF’], strlen(PS_BASE_URI), -10));Thoses lines are not sending a correct path to the browser. Maybe that’s because I use sites other than the main site as virtuals home pages. To fast correct the problem I put explicity the path by my self. So, the lines were just as:login.php$cookie = new Cookie(‘psAdmin’, “admin445” );init.php$cookie = new Cookie(‘psAdmin’, “admin445”);If anyone could help. Much appreciated. I have searched through the whole of prestashop to find recommended solutions but they dont work for me. Still looking for help Link to comment Share on other sites More sharing options...
Troy Posted January 28, 2011 Author Share Posted January 28, 2011 I contacted my webhosting company BlueHost and they were not helpful at all. They stated that it is Prestashop's script and nothing to do with them even when I told them I am running another domain name on a different hosting company with the same version Prestashop and I had no problems with it.I even followed what was stated in this old thread -> http://www.prestashop.com/forums/viewthread/2808/P0/installing_prestashop/admin_login_loopNo luck and Still trying to figure it out. Link to comment Share on other sites More sharing options...
danosa Posted January 29, 2011 Share Posted January 29, 2011 i have the same problem.. thinks it's silly that a program is dowloaded and just able to install and that's it Used a lot of cms software untill now never happens on the start ..Hope someone can also help me out here thxxx Link to comment Share on other sites More sharing options...
amrie Posted January 29, 2011 Share Posted January 29, 2011 I'm having the same problems too, keep going back to login page even though I made changes in cookie.php, anyone can help? ( Link to comment Share on other sites More sharing options...
danosa Posted January 31, 2011 Share Posted January 31, 2011 neither of the solutions untill now worked ;( can a die hard prestashop prof can take a peek in my admin to see what is wrong, im no developer just a designer Thanks in advancedDanielle Link to comment Share on other sites More sharing options...
danosa Posted January 31, 2011 Share Posted January 31, 2011 My problem is that i installed on a sub domain. On a main domain i don't ave any problems..( i tested) now is the question how to solve this on a subdomain thxxx Link to comment Share on other sites More sharing options...
guyhuau Posted February 2, 2011 Share Posted February 2, 2011 same problem, tried different browers (Firefox 4.0B, Chrome and Safari) all browsers redirect me to the login -screenI made changes that are proposed above without success.What is wrong, can someone give me advise?ThanksGuy Link to comment Share on other sites More sharing options...
Kelvin Koh Posted February 3, 2011 Share Posted February 3, 2011 I'm having the same problem too. It just started suddenly overnight without me making any changes or any codes to Prestashop at all, except modifying the HTML and text scripts to files in root/mails. And I've been using the same version of Prestashop for close to 1.5 months on the same host on the same domain without any problems until this.This has been very frustrating for me for the past 2 weeks as it seriously impedes the pace which I can launch my site for business. It keeps redirecting me to login page randomly and very frequently (like every minute or less!).I've e-mailed my webhost's technical staff and spoke to them about this but they're stumped on where's the root of the problem. The only explanation they gave (which I suspect is not the actual reason) is my ISP's cache server is having a rare issue of caching.I've tried almost every possible solution - different browsers, different computers, cleared cache, cleared cookies, fresh installation of Prestashop on a new clean database. Only left with modifying codes and calling up my ISP to check with them if it's to do with their cache servers or dynamic IP. Link to comment Share on other sites More sharing options...
Troy Posted February 3, 2011 Author Share Posted February 3, 2011 I changed the cookie expire time to 1200. It is still redirecting back to login but it isn't as bad. Link to comment Share on other sites More sharing options...
guyhuau Posted February 4, 2011 Share Posted February 4, 2011 I changed the cookie expire time to different values as proposed but it doesn't make a difference.I contacted my ISP "godady.com" and their answer is:In order for us to determine if your application will function with our hosting, we will need you to provide us with a detailed list of the server requirements for this application. As for installing a third party application, we cannot provide direct support or instructions for this process, as it would depend on the application. However, if you encounter a server error or have questions about using one of our interfaces, please provide us with details and we would be happy to assist you.who can provide me a detailed list of server requirements that I can send to godady.comIf I move prestashop and database to another ISP (networksolutions) than everything works fine.Who has suggestions or can help me solving this problem?Thanks a lotGuy Link to comment Share on other sites More sharing options...
Kelvin Koh Posted February 4, 2011 Share Posted February 4, 2011 I changed the cookie expire time to 1200. It is still redirecting back to login but it isn't as bad. Tried the same solution - changing to different cookie expire times - but it's still the same. Now I get redirected back to login (or logged out) ALMOST EVERY TIME I click on any link in the BO Link to comment Share on other sites More sharing options...
amarmo Posted February 5, 2011 Share Posted February 5, 2011 I am using Presta 1.3.1. I have the same issue in Chrome, IE and not in FF. That's really silly to have such problems at such level. I never had such connectivity problem with other shopping carts Link to comment Share on other sites More sharing options...
Troy Posted February 11, 2011 Author Share Posted February 11, 2011 Please refer to this other thread for other solutions. Its by bettyboy.http://www.prestashop.com/forums/viewthread/90790/installing_prestashop/admin_login_problem/ 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