How to Fix 'Sorry, You Are Not Allowed to Access This Page' in Admin Menu Editor
Content
One of the most common issues users encounter with the Admin Menu Editor plugin is the frustrating “Sorry, you are not allowed to access this page” error. This problem can lock you out of the plugin's settings, preventing you from managing your admin menus. This guide will explain why this happens and walk you through the most reliable solutions to regain access.
Why This Error Occurs
Based on common support threads, this error is almost always caused by a specific plugin setting. The Admin Menu Editor includes an option to restrict access to its own settings page. This is typically found under “Settings > who can access this plugin”.
The most likely scenario is that another administrator or a developer working on the site changed this setting to “Only the current user”. This means that once they log out, no other user—not even those with an Administrator role—can access the plugin's menu. This is a security feature that can accidentally lock out other legitimate admins.
How to Regain Access to Admin Menu Editor
If you find yourself locked out, here are the most effective solutions, starting with the simplest.
Solution 1: Rename the Plugin Folder (Most Effective)
This method forces WordPress to deactivate the plugin, which will reset all its settings to default. Once you reactivate it, the access restrictions will be cleared.
- Access your website's files using an FTP client or your web hosting provider's file manager.
- Navigate to the
/wp-content/plugins/directory. - Find the folder named
admin-menu-editor. - Rename this folder to something else, like
admin-menu-editor-deactivated. - Log into your WordPress admin dashboard. You should now have access to the Plugins page.
- On the Plugins page, deactivate and then delete the now-missing “Admin Menu Editor” plugin. Don't worry; this will not delete your menu settings.
- Reinstall and activate the Admin Menu Editor plugin from the WordPress repository. Your custom menu settings will be preserved, but the access permission will be reset to the default, allowing all admins in.
Solution 2: Manually Edit the Database (Advanced)
For advanced users comfortable with database management, you can directly change the setting. This method is more complex but avoids reinstalling the plugin.
- Access your website's database through a tool like phpMyAdmin, usually provided by your web host.
- Find the
wp_optionstable (the prefixwp_may be different on your site). - Look for the option named
ws_menu_editor_access. - Edit this option's value and change it to
super_adminto allow all admins, or simply delete the row to revert to the default setting.
Warning: Always back up your database before making any direct changes.
How to Prevent This Issue in the Future
To avoid accidentally locking yourself or other admins out again, be cautious when changing the “who can access this plugin” setting. It is generally recommended to keep it set to the default (“Super Admin” on multisite networks or “Anyone with the ‘manage_options’ capability” on single sites) unless you have a specific reason to restrict access to a single user.
Conclusion
Being locked out of the Admin Menu Editor can be a stressful experience, but it's usually easy to fix. The most straightforward solution is to rename the plugin folder to trigger a reset. By understanding how the access control setting works, you can prevent this issue from happening again and continue customizing your WordPress admin experience without interruption.
Related Support Threads Support
-
Pre-sale questionhttps://wordpress.org/support/topic/pre-sale-question-118/
-
Can’t acces productshttps://wordpress.org/support/topic/cant-acces-products/
-
Show One Plugin Onlyhttps://wordpress.org/support/topic/show-one-plugin-only/
-
Prohibition of editing the site by another administratorhttps://wordpress.org/support/topic/prohibition-of-editing-the-site-by-another-administrator/
-
HTML block elementor error “You do not have access.”https://wordpress.org/support/topic/html-block-elementor-error-you-do-not-have-access/
-
Download Report CSV Permissionshttps://wordpress.org/support/topic/download-report-csv-permissions-2/
-
Cant acess settings pagehttps://wordpress.org/support/topic/cant-acess-settings-page/
-
Role Store Managerhttps://wordpress.org/support/topic/role-store-manager/
-
I can’t access the pluginhttps://wordpress.org/support/topic/i-cant-access-the-plugin/
-
WooCommerce Permissions without Add Post permissionshttps://wordpress.org/support/topic/woocommerce-permissions-without-add-post-permissions/
-
edit_others_shop_ordershttps://wordpress.org/support/topic/edit_others_shop_orders/
-
Presale question about rolehttps://wordpress.org/support/topic/presale-question-about-role/
-
Giving access to one personhttps://wordpress.org/support/topic/giving-access-to-one-person/
-
user permission to pluginhttps://wordpress.org/support/topic/user-permission-to-plugin/
-
Same user role can’t access pluginhttps://wordpress.org/support/topic/same-user-role-cant-access-plugin/
-
Unable to publish an E-Commerce producthttps://wordpress.org/support/topic/unable-to-publish-an-e-commerce-product/