• Hi,

    I installed your plugin and activated it. I was logged in as the administrator. The admin user is disabled so I have me own admin user. However once logged out I cannot log into wp-admin it says you do not have necessary permissions.

    How can I remove this plugin and get back into my site as administrator? I am currently locked out!!!

    Many thanks
    Tony

    https://ww.wp.xz.cn/plugins/admin-menu-editor/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Janis Elsts

    (@whiteshadow)

    You can delete the plugin via FTP.

    Did you change any plugin settings, or did this happen immediately after installing the plugin, with the default configuration? As far as I know, the only way to get “locked out” would be to hide the “Dashboard -> Home” menu item from your own role and/or user account.

    Thread Starter antonical

    (@antonical)

    Thank you for the prompt response. The only change made was as a test. Changed the dashboard capability required to author. I can login as my test author and see the relevant options. I cannot however login as an administrator.

    When you say delete the plugin via ftp. I presume this will leave DB entries orphaned. What entries need to be delete from the DB to completely remove this plugin and any user controls etc.

    This is a single site.

    Many thanks
    Tony

    Plugin Author Janis Elsts

    (@whiteshadow)

    Ah, so the dashboard did get hidden. If you set the required capability to a role name, it will only allow that specific role. Since your role is administrator and not author, you can’t view the dashboard.

    However, you can still login – it just looks like login failed because WordPress automatically redirects you to the now-inaccessible “Dashboard -> Home” page. You can still access other admin pages by manually entering the URL. For example, you could type in example.com/wp-admin/plugins.php (replace “example.com” with your domain name) to open the “Plugins” page and deactivate Admin Menu Editor normally, without using FTP or deleting anything from the DB. Or you could go to /wp-admin/options-general.php?page=menu-editor and reset the required capability.

    Thread Starter antonical

    (@antonical)

    OK many thanks. I managed to get in and remove the plugin. I am a bit confused about the use.

    I wanted to hide the dashboard and admin menu for all but authors, editors and admins.

    Can I do that with this plugin? If so how?

    Many thanks
    Tony

    Plugin Author Janis Elsts

    (@whiteshadow)

    To do that, you would need to set the required capability to something that all of those roles have. Looking at the list of built-in roles and capabilities, it appears that “edit_published_posts” might be a good option.

    Note that this will cause any other roles to receive an error message when they try to log in (since the Dashboard will be hidden). To prevent that, you could redirect them to a different page upon logging in.

    Thank you for this helpful answer Janis.

    I’m loving this plugin so far, but just locked myself out for 2 hours because I set the dashboard access to moderator (thinking this was the minimum access level)… and I’d already blocked moderators from having access to Admin Menu Editor 🙁

    When I created a new admin user in MySql and still couldn’t get in, I was getting worried… thank goodness it was something simple!

    Thank you again for a brilliant plugin and for your very clear, informative and up to date support page!

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

The topic ‘Cannot log into wp-admin after installing – logging in as admin’ is closed to new replies.