Jump to content

Admin login broken


Recommended Posts

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

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

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

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

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 by Syfer (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...