In that location are few situations more alarming than existence locked out of your own WordPress admin dashboard. If you've encountered a message reading "Sorry, you are not immune to admission this folio" when trying to log in, you lot know the feeling starting time paw.

Fortunately, there are several solutions at your disposal for troubleshooting this error. With a little patience, you lot tin can clear up the mistake and get dorsum to managing your WordPress site in no time.

In this post, we'll dig into the "Deplorable, you lot are not allowed to admission this page" fault and what causes it to occur. And then we'll walk you through the many potential solutions to help y'all find the one that addresses your specific state of affairs.

Allow'due south jump right in!

Understanding the "Sorry, You Are Not Allowed to Access This Page" Error

Although we're referring to it equally an "error" for the purposes of this post, the "Sorry, you are not allowed to access this page" message in WordPress is meant to be a helpful security measure.

Ultimately, seeing this notification simply means in that location's a permissions setting that'due south blocking y'all from a certain area.

This becomes a problem when you lot're locked out of a office of your site that you should have permission to enter which, equally an Administrator, is anywhere on the backend. When this state of affairs arises, information technology is ofttimes post-obit a recent update to a theme, plugin, or WordPress cadre.

Y'all may see the "Sorry, you are not immune to access this folio" bulletin for a multifariousness of reasons. It might exist that WordPress doesn't recognize you lot as an Administrator. In other situations, the data contained in your site'due south core code or in a theme or plugin may not match what's in your database.

Additional causes include incorrect information in your wp-config.php file or a site that's running an outdated version of PHP. Whatever the source, this mistake may forestall you from accessing the unabridged admin area or but a portion of information technology.

Since it's likely that you lot will not be able to admission key settings via the dashboard, you'll need to utilize File Transfer Protocol (FTP) or phpMyAdmin to resolve this issue. Make sure to back up your site and brush upward on using these platforms before you dive into the troubleshooting process.

The nigh frustrating thing almost encountering the "Sorry, yous are not allowed to access this page" notification is that it tin be difficult to pin downward which of its causes are at play. Fortunately, there are many solutions you can exam out to find the root of the problem.

How to Fix the "Lamentable, You Are Non Allowed to Admission This Page" Error in WordPress (11 Potential Solutions)

Due to its many possible causes, the "Lamentable, you are not immune to admission this page" fault takes quite a scrap of patience to resolve. This long listing of solutions may be intimidating but information technology besides covers a variety of situations to help you find the right i for your site.

1. Restore a Previous Version of Your Site

The simplest and often the fastest mode to get dorsum into your WordPress dashboard is to restore your site to an earlier version. A recent alter, such as an update, might be the cause of the error you're seeing. Undoing your latest modification should enable y'all to admission your site again.

Kinsta clients have it easy in this regard. You can restore a WordPress backup in your hosting account with a single click:

Restoring a backup in MyKinsta
Restoring a backup in MyKinsta

The drawback to this solution is that you may lose your contempo changes and will accept to find a fashion to attain your goals without causing the same error once again.

For this reason, you may want to restore your backup to a staging site instead. You can so test different modifications to make up one's mind what caused the problem. Later uncovering the root of the outcome, you can disengage the troublesome change to regain access to your site.

2. Disable All of Your Plugins

A specific alter that may exist causing the "Sorry, you are not allowed to access this page" bulletin on your site is the recent addition or upgrade of a plugin. If y'all suspect that this is the case, your best course of action is to disable your plugins i by i.

In the event that you disable a plugin and the message goes away, you lot've constitute the source of the problem. You tin then troubleshoot the event with that plugin (or practise without it, if it's not crucial to your site's functionality).

Of course, if yous're locked out of your dashboard entirely, this process gets a little tricky. You'll need to access your site using SFTP via a client such as FileZilla. Once you've done so, navigate to wp-content and find the sub-directory labeled plugins:

Disable all plugins by renaming the folder
Disable all plugins past renaming the folder

Enter this folder, and then rename your nigh recently-added plugin to something like "plugin-name_old". Become back to your site and check to see if the error is resolved. If not, modify the plugin's proper name dorsum and repeat the process with the next i.

3. Activate a Default Theme

Yet another potential crusade of this mistake is that you've recently updated or installed a theme. Your best bet for resolving this problem is to actuate a default WordPress theme such as 20 20 or Xx Nineteen.

To exercise so without access to your admin area, you'll demand to use FTP again. Connect to your server with FileZilla then navigate to wp-content > themes:

Disable your current theme by renaming the folder
Disable your electric current theme by renaming the binder

The rest of the procedure is fairly like to the one described above for disabling your plugins.

Rename the folder for your active theme, and then return to your site and log in. Yous should run into a notification telling y'all that the active theme is broken, and a default theme has been reactivated.

Then yous can troubleshoot the theme. Your site should at least be accessible, albeit with the incorrect theme activated.

4. Make Sure You lot're an Ambassador

Another possibility is that your user role has been inadvertently inverse and you are no longer listed as an Ambassador. This is a common problem with multisite installations. To make up one's mind if this is the case, you'll demand to access phpMyAdmin and expect for the wp_users table:

The WP users table
The wp_users table in phpMyAdmin

Find your username and notation your ID. Then, navigate to the wp_usermeta table and notice the wp_capabilties row:

The wp_usermeta table in phpMyAdmin
The wp_usermeta table in phpMyAdmin

If you take Administrator privileges, the meta_value in this row will read:

a:1:{s:13:"ambassador";s:1:"one";}

If your wp_usermeta table says something else, you can click on the Edit link and change it. Alternatively, you lot can too create an entirely new Administrator account from phpMyAdmin. To have this road, return to the wp_users tabular array and click on the Insert tab at the summit of the table:

Change user information in wp_users table
Change user information in wp_users tabular array

So, fill in the fields with your new user data. In one case you're washed, click on the Go button and your new user should appear in the tabular array. Next, yous'll need to make a note of the ID for this account and head back to the wp_usermeta tabular array.

Click on Insert once more, and fill in the resulting fields with the following data:

  • Unmeta_id: Leave this field blank; it will be filled in automatically for yous.
  • User_id: Apply the ID from the WP Users table.
  • Meta_key: Set this value as "wp_capabilities".
  • Meta_value: Add the line mentioned above.

You lot should now be able to use your new credentials to log in to your WordPress admin area. Delete your former business relationship or modify its user part back to Administrator from the dashboard and delete the new ane instead.

Subscribe Now

5. Check Your Fault Log to Pinpoint the Cause

A smart manner to streamline troubleshooting whatever trouble on your site is to cheque your server's error log. This may indicate plugin or theme compatibility issues, database errors, or issues with your site's files that are causing the "Sorry, you are not immune to access this page" message to announced.

How y'all view your server's error log volition vary depending on who your hosting provider is. For Kinsta customers, this process is as simple as logging into your MyKinsta dashboard. There, select the site that's experiencing problems and navigate to Logs:

MyKinsta logs tab
MyKinsta logs tab

Choose error.log from the drop-downward bill of fare. If you run into one of the causes of the warning in your log, then you can go virtually fixing it. Otherwise, you'll need to try another solution on this list.

six. Ensure That Your Database Prefix Is Correct

Every MySQL database has a prefix. If this one listed in your website'south files doesn't friction match the one listed in phpMyAdmin, then yous may see the "Sorry, you are not allowed to access this folio" message.

This can occur when migrating your site, including if you've used a local staging site for evolution and are now moving to a live server. To cheque for discrepancies, you'll demand to admission your wp-config.php file.

Yous can do this via SFTP as we've described in previous solutions. Once you're in your wp-config.php file, you lot should look for your database's prefix (the default is "wp_"):

Database prefix
Database prefix

Then, log in to phpMyAdmin and await at the prefixes for your database'due south tables. They should match the ones listed in your wp-config.php file, like in the prototype below:

Prefixes should match those in your wp-config.php file
Prefixes should lucifer those in your wp-config.php file

If they don't lucifer the prefix in your wp-config.php file, and then you'll need to edit it then that they do.

7. Look for Changes in Your wp-config.php File

On a like note, you lot should also expect for any changes to your WordPress configuration file. This is particularly true if yous were editing this file shortly earlier you received the "Sorry, yous are not allowed to access this page" bulletin or if yous suspect that your WordPress site has been hacked.

Y'all can access your wp-config.php file using SFTP and wait for anything that seems awry. However, this procedure is much easier if you have some kind of file integrity monitoring or change detection characteristic in place.

eight. Upgrade to the Latest Version of PHP

If your WordPress site is running an outdated version of PHP, this could be the source of your troubles. With that said, fifty-fifty if upgrading PHP doesn't solve this upshot for you, it should improve your site's overall security and performance.

Before you start the upgrade process, create a backup of your site. You can do this manually or from your MyKinsta dashboard, even if you lot're locked out of your admin surface area. Once you've saved your backup, you'll want to exam to meet whether your account is uniform with the latest version of PHP. One way to practise this is with a WordPress staging site.

Assuming that all goes well, you lot can run the update. Kinsta customers can easily do and so by logging into the MyKinsta dashboard and navigating to the relevant site. And then get to Tools > PHP Engine > Modify, and select the newest version from the drop-down menu:

How to upgrade PHP version in MyKinsta
How to upgrade PHP version in MyKinsta

If you're with another provider, you lot may be able to follow a similar procedure via your ain command panel. It's recommended that you lot contact your web host for more data.

ix. Evaluate Your File Permissions

It'southward as well possible that your site'south file permissions take been tampered with. In this case, WordPress may consider you unauthorized to view certain areas of your site, fifty-fifty if y'all're still listed as an Administrator.

To check your site'south file permissions, you lot'll demand to use SFTP to admission your server. Once you're logged in, enter the public_html directory and bulk-select wp-admin, wp-content, and wp -includes. Right-click on these folders and choose File Permissions:

Checking file permissions
Checking file permissions

In the resulting window, make sure the following options are selected:

  • The Numeric Value is set to 755.
  • Recurse into subdirectories is checked.
  • Apply to directories only is selected.

Click on OK when yous're washed. Then, highlight all the other files in public_html, correct-click on them, and select File Permissions again:

Setting new file permissions
Setting new file permissions

This fourth dimension, set the options in the permissions window to the following:

  • The Numeric Value should exist 644.
  • Recurse into subdirectories should even so exist checked.
  • Use to files only should exist selected.

Then, render to your site to see if this solves the problem and the "Sorry, you are non immune to access this page" message is gone.

ten. Create a New .htaccess File

If none of the above strategies accept worked, you may need to reset your .htaccess file. To do so, launch FTP and navigate to your public_html binder. You should see your .htaccess file there, but if yous don't, follow instructions for showing hidden files in FileZilla.

Next, you'll need to rename your existing .htaccess file, similar to how nosotros renamed plugin and theme files in earlier solutions. Something recognizable such as .htaccess_original or .htaccess_backup is ideal.

Then, right-click on the file and select Download. Open the file in a text editor and replace its contents with the post-obit:

          #BEGIN WordPress  RewriteEngine On  RewriteBase /  RewriteRule ^index\.php$ - [L]  RewriteCond %{REQUEST_FILENAME} !-f  RewriteCOnd %{REQUEST_FILENAME} !-d  RewriteRule . /index.php [L]  #END WordPress        

Rename this file .htaccess and upload it to your server. If this file was the source of the "Distressing, you are not allowed to access this page" error, and then information technology should now be fixed.

11. Reset Your WordPress Site

In the worst-case scenario, there may be an installation upshot. To set it, you'll have to reset your WordPress site. It's vital that yous have a recent backup yous tin restore afterwards this process is complete, as resetting your site will crusade you to lose all posts, pages, and user comments.

At that place are several methods for doing this, including via your MyKinsta dashboard, using a WordPress plugin, and by using WP-CLI (the WordPress command line). It'south all-time to relieve this road every bit a final resort, so y'all don't risk losing your site's content.

Are you lot getting the awfully alarming *Sorry, You Are Non Allowed to Access This Page* bulletin? Try i of these methods to go your access back! 🙅‍♂️🔑 Click to Tweet

Summary

Being locked out of your admin dashboard in WordPress is nervus-wracking, to say the least. Quickly finding the correct solution to the "Sorry, you are not allowed to admission this page" error is vital to both your site and your peace of mind.

In this post, nosotros covered a wide range of possible causes and fixes for this issue. Let'southward recap them quickly:

  1. Restore a previous version of your site.
  2. Disable all of your plugins.
  3. Activate a default theme.
  4. Brand sure you're an ambassador.
  5. Cheque your error log to pinpoint the crusade.
  6. Ensure that your database prefix is correct.
  7. Expect for changes in your wp-config.php file.
  8. Upgrade to the latest version of php.
  9. Evaluate your file permissions.
  10. Create a new .htaccess file.
  11. Reset your WordPress site.

Happy fixing!


Salvage time, costs and maximize site functioning with:

  • Instant assist from WordPress hosting experts, 24/7.
  • Cloudflare Enterprise integration.
  • Global audience reach with 32 data centers worldwide.
  • Optimization with our born Application Functioning Monitoring.

All of that and much more, in one plan with no long-term contracts, assisted migrations, and a xxx-twenty-four hours-money-back-guarantee. Check out our plans or talk to sales to find the plan that'due south right for you lot.