• Resolved etellewyn

    (@etellewyn)


    I recently noticed that admin users (I tried two different accounts) are locked out of wp-admin. If I click one of the admin-specific links in the admin bar, such as Menus or Themes, that works fine and it gets me in so that I can do everything else back there. But if I click on the “dashboard” link from the front end, or if I type /wp-admin directly, it tells me “you do not have sufficient privileges to access this page.”

    If I am in the admin already (such as by clicking one of the direct links mentioned above), and I click on the “dashboard” link, it redirects me to the wp-updates page.

    It seems that something has become corrupted. Any idea which table and/or how to fix it?

    https://wordpress.org/plugins/user-role-editor/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Vladimir Garagulya

    (@shinephp)

    Try to deactivate URE plugin and re-check. I almost sure that the reason is some other plugin or theme, custom code in the current theme’s functions.php file if you added some code there.

    To find the reason try to deactivate all plugins. If problem was gone then activate plugins back one by one with checking if problem appears again in order to find the problematic plugin.
    Try to switch to standard WP theme e.g. 2014.

    Thread Starter etellewyn

    (@etellewyn)

    No that does not resolve it, still happens with all plugins disabled and twentyfourteen activated. HOWEVER, I just noticed that when all plugins are disabled, the dashboard link in admin disappears entirely! So I re-activated plugins one by one, and BBPress, when activated, makes dashboard link re-appear. When disabled, it disappears. So I’m willing to bet that plugin is the culprit. I will see if they have any suggestions for a fix.

    Thanks for your time! 🙂

    I created two or three new capabilities, logged as administrator and tried to log in as a test contributor. I have no access to the contributor login page using the link emailed to me when I created that new user/contributor. I then tried to log in as administrator via wp-admin link and that does not work either. I lost access to my Admin panel completely. I have access via cpanel and can delete the plugin completely, but I noticed an uninstall file. Is it important to deactivate and delete this plugin via the Admin plugin page or is it okay to completely delete it via the Cpanel.

    Thank you.

    Plugin Author Vladimir Garagulya

    (@shinephp)

    URE uninstall.php file just delete URE added data from wp_options DB table. So you may just delete user-role-editor plugin do deactivate it.

    I suppose that a problem may be wider. If you still can not login as the administrator after URE folder deletion, check the user roles data at WordPress database:
    https://www.role-editor.com/how-to-restore-deleted-wordpress-user-roles/
    3rd variant from this post may help you.

    Thank you. I deleted the plugin from the cpanel and it resolved everything. Thank you.

    Turns out I cannot login in via the /wp-admin page. In addition, I am having trouble with intermittent database outages on my other site that is on the same server. I have a dedicated server.

    The only thing I did was to delete the plugin. I didn’t understand your other instructions as it seemed to be missing some words. I assume English is not your first language.

    Meanwhile, any help would be appreciated.

    Thanks1

    All resolved. I had my hosting company replace the User database with a backed up version.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Admins unable to access wp-admin directly’ is closed to new replies.