WP-admin insufficient permissions
-
I appear to have been locked out of my admin page as when I attempt to go to the site, http://anitagoodesignonline.com/wp-admin I get a response that says “you do not have sufficient permissions to view this page”. I feel I have exhausted most options. I tried deactivating my plug-ins from my blue host cpanel, I changed the theme, I updated the wp-login.php file, but nothing is letting me get beyond that particular error message. Is there something in a coding file that I must change or anything I could possibly do to get into my wordpress dashboard?
-
It sounds like your account may have lost admin privileges for some reason.
If you are not using Multisite, 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 to:a:1:{s:13:"administrator";b:1;}Thank you James, I did as you instructed through my phpadmin (it’s blue host) and unfortunately nothing changed. Is there another thing I could try?
Hm, I wonder if a function might be conflicting.
Try manually resetting your plugins (no Dashboard access required). 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 SFTP or FTP, or a file manager in your hosting account’s control panel, 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 (theme functions can interfere like plugins).I tried all of those steps already with no resolve, but I went through and tried each method again that you just suggested and again, nothing. When I disable the plug-ins I receive the same error message and when I change the theme directory I still get the same message, plus the website appears blank and does not substitute anything with a default theme. The other method I tried was going through the myphpadmin and manually changing the theme name to twentyfourteen which resulted in the theme being changed on the website, however the wp-admin still directed me to a page that says I have insufficient permissions to access the page.
Try downloading WordPress again, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel, and delete then replace your copies of everything on the server except the
wp-config.phpfile and the/wp-content/directory with fresh copies from the download. This will effectively replace all of your core files without damaging your content and settings.Some uploaders tend to be unreliable when overwriting files, so don’t forget to delete the original files before replacing them.
YES!!! Thank you, that fixed everything! <3 <3 <3
You’re welcome!
The topic ‘WP-admin insufficient permissions’ is closed to new replies.