Even stranger. I was able to get into the admin area via the admin bar once the Hide Admin Bar plugin was disabled, BUT I still cannot login to the dashboard directly to /wp-admin. I have to choose New Page or New Post to access the admin area. If I try going to the main dashboard page, it gives me the same insufficient permissions error.
Hello bcpdale,
I don’t think the plugin has something to do with this. Anyway… activate wp_debug and investigate.
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
All php notices/warnings/errors will be saved into /wp-content/debug.log. After you find the problem… is recommended to turn WP_DEBUG_LOG to false:
define('WP_DEBUG_LOG', false);
Also read this (maybe it’s a wp_capabilities issue): http://www.codefetti.com/fix-wordpress-you-do-not-have-sufficient-permissions-to-access-this-page/
Thanks.
Hi,
I cannot login since today.
Yesterday I was working on the site and today nobody can login.
I did rename plugin folder to deactivate it but the problem remains.
What could be wrong ?
Thanks
Hello jairo.ochoa,
1. do you have any cache plugins ? if yes, delete cache
2. do you have any plugin that change the login url ? if yes, disable that plugin
Hello George,
No cache, standard login url.
Thanks
Hello,
Your hosting is doing some sort of caching (page caching, object caching) ? I’m asking you because this kind of problem appears when there is cache.
Hi,
It works again!
I did what you suggested to set on WP_DEBUG and I could find the error.
Last day I had activated a new theme and your plugin at the same time.
I could browse the Admin and I did not notice any error, but when I tried to login at another computed I always were redirected to wp-login.php
The bug was on a shortcode.php file included at functions.php
This file had a blank line at the bottom.
I did deleted this line and everything goes fine.
Many thanks for your time.
Hello,
Glad it worked. Thanks! 🙂