'Sorry You Are Not Allowed To Access This Page' /wp-admin

I have no problem with the admin account I use to log in to WP on a daily basis. But I cannot create another account with admin privileges. When logged with any secondary account with role ‘administrator’ I only get the error ‘Sorry you are not allowed to access this page’ when trying to access the wp-admin page.

I have only a few plugins installed and the only one that should have any access/role interest is this one so I don’t know what to do. When I searched the forums the only thing resembling my problem is when someone tried to uninstall S2Member.

Please advise.

Hi Shannon.

s2Member doesn’t control access in the admin area, so it’d be something else…

You could try the User Roles Editor to make sure that your new admin account has all the capabilities that the original does. https://wordpress.org/plugins/user-role-editor/

If you google that message you may find something too. Here is an article that tells you how to add an admin account from the database, which you could use to verify that your new admin account has the right permissions (check out the comments too): https://www.wpwhitesecurity.com/manually-add-wordpress-user-administrator-role-wordpress-database/

I hope that helps. :slight_smile:

Thank you. I did google first. Overwhelmingly the answer is ‘turn off plugins’ … which really isn’t an option.

Prior to S2 there were no problem with user roles (admin, editor, subscriber). Now, only subscriber and the custom S2 Member custom roles work. This is a basic function of WP.

Yeah, plugin deactivation is a common troubleshooting action. And I know it’s not fun when having a live site.

I understand that s2Member being to control access, and that not happening before, you’d suspect s2. s2Member really never manages access to the admin area.

I see it’s not an uncommon problem: https://www.google.com/search?q=‘Sorry+You+Are+Not+Allowed+To+Access+This+Page’+%2Fwp-admin

One of them mentions having restored access by creating a second admin account from the database. https://www.wpbeginner.com/wp-tutorials/how-to-add-an-admin-user-to-the-wordpress-database-via-mysql/

From the database you could also verify that your original adimin account has the right role and capabilities.

Let me know how it goes. :slight_smile:

I’ve had this issue for a couple of years. This has only happened with two sites, and both of them have s2member and I can’t seem to correct it. I create a new admin, and the same thing happens. There is a workaround, the client has to remove the /wp-admin/ from the addressbar, which takes him to the home page and can access the page toolbar from there, and from there he can go to the dashboard, but it’s not ideal. Has anyone else fixed this issue? I’ve disabled plugins etc. and none of that has worked. I’ve removed that user and recreated them, that hasn’t worked either.
thanks.

Add the following plugin and take a look at the permissions for the “new” administrator.

Can you tell us if the problematic site is multi-site or single site?