WordPress: "Sorry, You Are Not Allowed to Access This Page"

You log in to WordPress and get "Sorry, you are not allowed to access this page" instead of your dashboard or a settings screen. WordPress is saying your account lacks permission, and the reason is usually fixable.

Common signs of this issue

Safe checks you can do yourself

None of these require sharing passwords with anyone.

What this usually means

WordPress shows this message when it knows who you are but does not think your account has permission for the page you asked for. In the simplest case the page no longer exists: you deactivated a plugin, and your bookmark or browser history still points to that plugin's settings screen. WordPress cannot tell a missing page from a forbidden one, so it shows the same message. That version is harmless.

The more serious version is when the whole dashboard refuses you. That usually means your administrator role has gone missing from the database. After a migration, the most common reason is a table prefix mismatch: the configuration file says one prefix, but the stored user roles and permissions were saved under the old one, so WordPress cannot find anyone's permissions. A badly completed restore, a plugin that edits user roles, or a manual database change can have the same effect.

Sometimes the cause is security-related. A hacker who gets in may demote or remove your admin account so you cannot undo their changes, and some security plugins lock administrators out if they are set too tightly. In those cases, getting back in is only step one — you also need to find out how the change happened. If there is any sign of an intruder, treat it as a hacked site, not just a login problem.

What not to do

When to get help

If the error covers the whole dashboard and your host cannot restore your administrator role, this needs someone comfortable working directly in the WordPress database. Fixing a table prefix mismatch or restoring a lost admin role is quick for an experienced developer, but a wrong edit can make things worse, so it is worth having it done carefully with a backup taken first. Bring in help immediately if you see unfamiliar admin users or your account was changed without your knowledge — someone should check for a break-in, not just restore access.

Not sure what to do next?

Answer a few short questions and we'll point you to the safest next step — DIY, a freelancer, or a direct review. No passwords required.

Is this a business website? If this issue may be costing you leads, sales, or trust, you may want a direct review instead of trial and error.

Frequently asked questions

What does "Sorry, you are not allowed to access this page" mean in WordPress?

WordPress recognizes your login but believes your account does not have permission for the page you requested. It can mean the page no longer exists, or that your account has lost its administrator role.

Why do I get this error after deactivating a plugin?

You are probably still on that plugin's settings page, or following a bookmark to it. Once the plugin is off, the page no longer exists and WordPress shows this message. Go to the main dashboard address and it should load normally.

Why did this error appear after moving my WordPress site?

The most common cause is a table prefix mismatch. The configuration file uses one prefix, but user roles in the database are stored under another, so WordPress cannot find anyone's admin permissions. Fixing the prefix, or the database entries, restores access.

Can a hacker cause this error?

Yes. Attackers sometimes demote or delete the owner's administrator account after creating their own. If you see admin users you do not recognize, treat the site as hacked and get it checked, not just unlocked.

Will resetting my password fix it?

Usually not. This error means WordPress knows who you are but thinks you lack permission. A password reset proves your identity again but does not restore a missing administrator role.

Can my web host fix this for me?

Often, yes. Many hosts can check your user role in the database or create a new administrator account from their control panel. It is a reasonable first request to make.

Related free guides

WordPress site down?

Seeing “There has been a critical error on this website”?

Our guided repair tool logs in over secure FTPS and fixes the most common WordPress failures — safely, with every change backed up and reversible. Start with a free scan, no password needed.

Fix My WordPress Site → Free scan · No download of your site · Reversible