We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Login loop problem: one solution

How Do I?

wildrock's avatar
wildrock
262 posts
11 years ago
wildrock's avatar wildrock

Had an issue today with the network that my server (with EE 2.7.2 installed) sits on go haywire, and it crashed the server. Had to do a hard reboot. When it came up, I couldn’t login to the control panel, it would just loop right back to the login screen. The frontend of the site was fine.

Poked around for a while to see if anyone had encountered this sort of situation, and couldn’t find anything that would work, so I followed this process:

1) turned on debugging in the admin.php file (switch $debug = 0; to $debug = 1); and uploaded the file

2) went to /admin.php, and saw the error 1062, duplicate entry in ‘exp_security_hashes’

3) I guess this indicated that somehow the entry increment was out of sync with the actual table, so when it tried to assign a new security hash, there was already one there

4) accessed the database via phpMyAdmin

5) backed up the database

6) tried to delete the problematic entry but got another error that suggested repairing the table

7) repaired the table

8) error went away and I was able to login.

9) turned off the debugging

Just thought this might help someone down the road… it ate my lunch today.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.