Viewing 11 replies - 1 through 11 (of 11 total)
  • Moderator James Huff

    (@macmanx)

    You might have a corrupt login cookie.

    Try clearing your browser’s cookies and cache, then try logging in again. That should work.

    Thread Starter prof611

    (@prof611)

    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.

    Moderator James Huff

    (@macmanx)

    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.

    Thread Starter prof611

    (@prof611)

    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.”

    Moderator James Huff

    (@macmanx)

    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_users table and find the row for your user_login . Note the ID of this row. Now, go to the wp_usermeta table and find the wp_capabilities row for your user_id . Set the value of this row to a:1:{s:13:"administrator";b:1;}

    Thread Starter prof611

    (@prof611)

    OK. I tried to do what you just suggested, but it had already been done.

    Moderator James Huff

    (@macmanx)

    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.

    esmi

    (@esmi)

    perrij3

    (@perrij3)

    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.

    Thread Starter prof611

    (@prof611)

    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?

    Thread Starter prof611

    (@prof611)

    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 !!!

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘I can't login to wp admin’ is closed to new replies.