I can't login to wp admin
-
Every time I login, I get the error, “You do not have sufficient permissions to access this page.” I have tried all the possible solutions in http://codex.wordpress.org/Login_Trouble, to no avail.
How it happened: I was writing a new post, and kept getting popups saying that I needed to login again. It was happening so frequently that I got annoyed, and decided to bypass the popup by clicking the grayed-out background. This worked for quite a while, but I guess I did it one too many times. Now I can’t login at all.
In addition to trying WP’s suggestions, I also tried replacing many of my files with fresh ones from my original wordpress-3.9.1 folder. I don’t understand what could possibly be wrong. I have several other WP blogs that are working fine, and they are using these same files.
I have no trouble at all with the visitor section of the blog, but now I can’t make any changes at all – it’s static! I suppose I could add a new post by fiddling with the database, but I’m sure there would be numerous unforeseen difficulties.
blog url: http://clothing17.tropicalhouseplants.net
mySQL version: 5.5.37-35.1
PHP version: 5.2.17
OS: Windows 7
browsers: Firefox 28.0 and IE 11.0
WP version: 3.9.1
-
You might have a corrupt login cookie.
Try clearing your browser’s cookies and cache, then try logging in again. That should work.
Thanks for the help, MacManX. But I’ve already done that – I tried everything in http://codex.wordpress.org/Login_Trouble. I also restarted both the browsers and my computer.
Hm, and are you sure you cleared your cookies? Sorry to ask again, but that’s usually the fix for things like this, and simply restarting the browser or your computer won’t do that.
If you did clear your cookies and still have the same problem, it could be a plugin or theme conflict.
Try manually resetting your plugins. If that resolves the issue, reactivate each one individually until you find the cause.
If that does not resolve the issue, access your server via FTP or SFTP, navigate to
/wp-content/themes/and rename the directory of your currently active theme. This will force the default theme to activate and hopefully rule-out a theme-specific issue.Thanks again, MacManX.
Even though I had already done everything you suggested, I did it all again, just to be sure. Same result: “You do not have sufficient permissions to access this page.”
Hm, ok, one more thing to try. Access your database via phpMyAdmin (most hosting providers offer this in their control panel), go to the
wp_userstable and find the row for youruser_login. Note theIDof this row. Now, go to thewp_usermetatable and find thewp_capabilitiesrow for youruser_id. Set the value of this row toa:1:{s:13:"administrator";b:1;}OK. I tried to do what you just suggested, but it had already been done.
Ok, running out of ideas here, perhaps a browser extension is blocking the login cookie.
Try logging in one more time, but do it from a browser with all add-ons temporarily disabled and the cookies cleared. Yes, that includes Ad Block, Ghostery, No Script, and other related extensions.
Just a wild guess but could this be related to http://wordpress.org/support/topic/cookies-are-blocked-or-not-supported-since-update-to-371/page/3#post-4900877
When you logged into your database, where you able to access the wp_usermeta table? I ran into the same issue as you described above and when I went to my database, wp_usermeta said it was in use and not accessible. I had to repair that table and once I did I was able to regain access to the admin area.
Thank you all for the suggestions.
MaxManX: Tried your suggestion using IE. Same error.
perrij3: I was able to access all tables in the database.
esmi: I looked at your link, but couldn’t make head nor tail of it – I’m not a guru. I don’t have Varnish (?). The only thing I could see to try was to remove <input type=”hidden” name=”testcookie” value=”1″ />, which didn’t change anything. The only other idea that came to me was to try reverting to an earlier version of WordPress. However, I didn’t do it because I have many other blogs that use the latest version, and they’re all working fine.
I think the key to what caused this whole thing is that I bypassed the popup that requested me to login again. That’s the only thing that I did that I didn’t do with my other blogs. Does anybody have any ideas on what this mistake on my part might cause?
Since nobody seemed to have any more suggestions, I took time off from this problem for a few days. As sometimes happens, when I decided to try again, I happened by chance to hit on a solution. It’s not an elegant solution, because I still have NO IDEA what went wrong or how. But I can now login to the blog again.
All I did was to completely change out my wp-admin and wp-includes folders with brand new ones from the latest WordPress ver 3.9.1 !!!
The topic ‘I can't login to wp admin’ is closed to new replies.