deanot Posted February 1, 2014 Share Posted February 1, 2014 When I login to the back office, I get in but when I click one of the links I get booted back out to the login screen repeatedly. Things I have done to make this happen. Upgraded to a newer version on the 21st. no editing or anything else, did not test it since as I have been away. Things I have done to try to resolve this. cleared cookie, cleared cache, tried 3 different browsers with the same problem. My site is live and I have orders pending.. can anyone shed some light on what the issue is? Link to comment Share on other sites More sharing options...
deanot Posted February 1, 2014 Author Share Posted February 1, 2014 Went into the DB and disabled the store, disabled the SSL login and everywhere options. Still the same... Link to comment Share on other sites More sharing options...
deanot Posted February 1, 2014 Author Share Posted February 1, 2014 Think I found the issue, found in the configuration of the database "PS_COOKIE_CHECKIP" disabled and I am now able to work within the back office. Rolling back a version until I figure out what is going on with this. Link to comment Share on other sites More sharing options...
El Patron Posted February 1, 2014 Share Posted February 1, 2014 please see if this helps, change setting as seen in screencast http://screencast.com/t/ktjCvpwt Link to comment Share on other sites More sharing options...
deanot Posted February 1, 2014 Author Share Posted February 1, 2014 That is the main problem, I could not at the time get to that point and if I could it would not save anything. I was using a program to do the upgrades and backups for me, I ran it to bring in an older backup and it deleted nearly every file including all my backups off of the server. Right now I am in panic mode, that stupid module just hosed my entire website but the DB is still on it, I guess it is time to recover the DB backup and see if my host has a backup for me. Should have backed up and downloaded..... jezzz am I stupid. Link to comment Share on other sites More sharing options...
deanot Posted February 1, 2014 Author Share Posted February 1, 2014 Wow, I did have a backup, uploading now. 1 Link to comment Share on other sites More sharing options...
El Patron Posted February 1, 2014 Share Posted February 1, 2014 That is the main problem, I could not at the time get to that point and if I could it would not save anything. I was using a program to do the upgrades and backups for me, I ran it to bring in an older backup and it deleted nearly every file including all my backups off of the server. Right now I am in panic mode, that stupid module just hosed my entire website but the DB is still on it, I guess it is time to recover the DB backup and see if my host has a backup for me. Should have backed up and downloaded..... jezzz am I stupid. ave maria pues!... Good luck!...let us know how it goes. Link to comment Share on other sites More sharing options...
deanot Posted February 1, 2014 Author Share Posted February 1, 2014 Time to move hosts, the reason for the failure is because my host has a "logs" folder on my drive, when the auto upgrade module is attempting to back the drive up it fails because of this folder. I called 1and1.com, was presented with someone that knows nothing about anything, 1and1.com are a bunch of idiots and just lost a customer. Apart from all this, I did manage to get a working version (one before the upgrade) of which works, looking into the code of the newer version, it looks like they made a change to the way it looks at cookies and IP's while logged in, of which is not working for me. Link to comment Share on other sites More sharing options...
Syfer Posted February 1, 2014 Share Posted February 1, 2014 (edited) PrestaShop 1.5.6.2. There is a file classes/Cookie.php, line 274: $checksum = crc32($this->_salt.substr($content, 0, strrpos($content, '¤') + 2)); must be: $checksum = crc32($this->_salt.substr($content, 0, strrpos($content, 'checksum'))); Edited February 1, 2014 by Syfer (see edit history) Link to comment Share on other sites More sharing options...
deanot Posted February 3, 2014 Author Share Posted February 3, 2014 Ok, I changed host, sorry for the delay. I installed a previous backup and updated over it, seems to be working fine now. Thank you all.... Dean Link to comment Share on other sites More sharing options...
Recommended Posts