There are few situations more than alarming than existence locked out of your ain WordPress admin dashboard. If you've encountered a message reading "Sorry, y'all are not allowed to access this page" when trying to log in, you lot know the feeling offset hand.

Fortunately, at that place are several solutions at your disposal for troubleshooting this error. With a niggling patience, you can articulate up the error and get back to managing your WordPress site in no time.

In this mail, nosotros'll dig into the "Distressing, you lot are not allowed to admission this page" fault and what causes it to occur. Then nosotros'll walk yous through the many potential solutions to help y'all discover the one that addresses your specific situation.

Allow's jump right in!

Understanding the "Lamentable, Yous Are Not Immune to Access This Folio" Mistake

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

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

This becomes a trouble when you're locked out of a part of your site that you should accept permission to enter which, as an Administrator, is anywhere on the backend. When this situation arises, it is often post-obit a recent update to a theme, plugin, or WordPress core.

You may come across the "Deplorable, you are not immune to access this folio" message for a variety of reasons. It might be that WordPress doesn't recognize you as an Administrator. In other situations, the information contained in your site's core lawmaking or in a theme or plugin may not match what'due south 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. Whatsoever the source, this error may prevent you from accessing the unabridged admin area or just a portion of it.

Since it'due south likely that you will not be able to access key settings via the dashboard, yous'll demand to use File Transfer Protocol (FTP) or phpMyAdmin to resolve this issue. Brand sure to back up your site and brush upwards on using these platforms earlier you dive into the troubleshooting process.

The nigh frustrating affair about encountering the "Sorry, you are non immune to access this page" notification is that it can exist hard to pin downwardly which of its causes are at play. Fortunately, in that location are many solutions you can test out to find the root of the problem.

How to Fix the "Pitiful, Yous Are Not Immune to Access This Folio" Error in WordPress (11 Potential Solutions)

Due to its many possible causes, the "Sorry, yous are non allowed to access this page" error takes quite a scrap of patience to resolve. This long listing of solutions may be intimidating merely it likewise covers a diverseness of situations to assist y'all discover the right one for your site.

ane. Restore a Previous Version of Your Site

The simplest and often the fastest manner to get dorsum into your WordPress dashboard is to restore your site to an before version. A recent change, such as an update, might exist the cause of the error you're seeing. Undoing your latest modification should enable you lot to access your site again.

Kinsta clients have it easy in this regard. Y'all 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 recent changes and will have to find a style to accomplish your goals without causing the same error once more.

For this reason, you may desire to restore your backup to a staging site instead. Yous tin can then test different modifications to decide what caused the trouble. Afterward uncovering the root of the issue, you lot can undo the troublesome change to regain access to your site.

2. Disable All of Your Plugins

A specific change that may be causing the "Deplorable, yous are non allowed to admission this page" message on your site is the recent addition or upgrade of a plugin. If you suspect that this is the example, your all-time course of activity is to disable your plugins 1 by one.

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

Of course, if you lot're locked out of your dashboard entirely, this process gets a trivial tricky. Y'all'll need to access your site using SFTP via a client such equally FileZilla. Once y'all've done so, navigate to wp-content and notice the sub-directory labeled plugins:

Disable all plugins by renaming the folder
Disable all plugins by renaming the binder

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

3. Activate a Default Theme

Even so another potential cause of this error is that you've recently updated or installed a theme. Your best bet for resolving this problem is to activate a default WordPress theme such every bit Xx Twenty or Twenty Nineteen.

To do so without access to your admin area, you'll need to utilize FTP over again. Connect to your server with FileZilla and then navigate to wp-content > themes:

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

The rest of the procedure is fairly like to the i described in a higher place for disabling your plugins.

Rename the folder for your agile theme, and and so render to your site and log in. You should see a notification telling yous that the active theme is broken, and a default theme has been reactivated.

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

iv. Make Sure You lot're an Ambassador

Another possibility is that your user function has been inadvertently inverse and you are no longer listed as an Administrator. This is a common problem with multisite installations. To determine if this is the case, yous'll need to access phpMyAdmin and expect for the wp_users tabular array:

The WP users table
The wp_users table in phpMyAdmin

Find your username and annotation your ID. So, 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 have Administrator privileges, the meta_value in this row volition read:

a:i:{s:13:"administrator";s:1:"1";}

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

Change user information in wp_users table
Alter user data in wp_users table

And then, fill in the fields with your new user information. One time you lot're done, click on the Go push and your new user should appear in the table. Side by side, you'll need to make a annotation of the ID for this account and head back to the wp_usermeta table.

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

  • Unmeta_id: Leave this field blank; it will be filled in automatically for you.
  • User_id: Utilize the ID from the WP Users table.
  • Meta_key: Set up this value every bit "wp_capabilities".
  • Meta_value: Add together the line mentioned above.

You lot should at present be able to utilise your new credentials to log in to your WordPress admin area. Delete your old business relationship or change its user role dorsum to Administrator from the dashboard and delete the new i instead.

Subscribe Now

v. Bank check Your Error Log to Pinpoint the Crusade

A smart mode to streamline troubleshooting any problem on your site is to check your server'due south error log. This may bespeak plugin or theme compatibility issues, database errors, or problems with your site'due south files that are causing the "Sorry, yous are not immune to access this page" message to appear.

How you view your server's mistake log will 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'southward experiencing problems and navigate to Logs:

MyKinsta logs tab
MyKinsta logs tab

Cull error.log from the drop-down carte. If you encounter one of the causes of the alert in your log, then you can become virtually fixing information technology. 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'due south files doesn't friction match the one listed in phpMyAdmin, so you may see the "Deplorable, y'all are non allowed to access this page" message.

This can occur when migrating your site, including if you lot've used a local staging site for development and are now moving to a live server. To check for discrepancies, you'll need to access your wp-config.php file.

You tin exercise this via SFTP equally we've described in previous solutions. Once you're in your wp-config.php file, you lot should wait for your database'south prefix (the default is "wp_"):

Database prefix
Database prefix

Then, log in to phpMyAdmin and look at the prefixes for your database's tables. They should lucifer the ones listed in your wp-config.php file, like in the image 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 match the prefix in your wp-config.php file, then you'll need to edit it and so that they do.

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

On a similar notation, you should too wait for any changes to your WordPress configuration file. This is particularly true if you were editing this file soon before y'all received the "Sorry, you are non allowed to access this page" message or if yous suspect that your WordPress site has been hacked.

Yous can admission your wp-config.php file using SFTP and look for anything that seems amiss. However, this process is much easier if you take some kind of file integrity monitoring or change detection feature in place.

8. Upgrade to the Latest Version of PHP

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

Before you commencement the upgrade process, create a fill-in of your site. You can do this manually or from your MyKinsta dashboard, even if yous're locked out of your admin area. Once y'all've saved your fill-in, yous'll want to test to meet whether your account is compatible with the latest version of PHP. One mode to practise this is with a WordPress staging site.

Assuming that all goes well, y'all can run the update. Kinsta customers tin easily do so past logging into the MyKinsta dashboard and navigating to the relevant site. So go to Tools > PHP Engine > Modify, and select the newest version from the drop-down bill of fare:

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

If y'all're with another provider, y'all may be able to follow a similar process via your own control panel. It'due south recommended that you contact your web host for more than data.

9. Evaluate Your File Permissions

It'due south likewise possible that your site'due south file permissions have been tampered with. In this example, WordPress may consider you unauthorized to view certain areas of your site, fifty-fifty if you're yet listed as an Administrator.

To cheque your site'southward file permissions, you'll demand to utilize SFTP to access your server. Once you lot're logged in, enter the public_html directory and bulk-select wp-admin, wp-content, and wp -includes. Right-click on these folders and cull File Permissions:

Checking file permissions
Checking file permissions

In the resulting window, brand sure the post-obit options are selected:

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

Click on OK when you lot're done. 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, fix the options in the permissions window to the following:

  • The Numeric Value should be 644.
  • Recurse into subdirectories should still be checked.
  • Apply to files only should be selected.

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

x. Create a New .htaccess File

If none of the above strategies have worked, you lot may demand to reset your .htaccess file. To practice and then, launch FTP and navigate to your public_html folder. You should meet your .htaccess file there, but if you don't, follow instructions for showing subconscious files in FileZilla.

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

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

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

Rename this file .htaccess and upload information technology to your server. If this file was the source of the "Deplorable, you lot are not allowed to access this folio" mistake, then information technology should at present be fixed.

11. Reset Your WordPress Site

In the worst-case scenario, there may be an installation consequence. To ready it, you lot'll accept to reset your WordPress site. It'south vital that you lot accept a contempo backup you lot can restore after this process is consummate, every bit resetting your site volition cause y'all 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's best to relieve this route as a last resort, so you don't risk losing your site's content.

Are you getting the awfully alarming *Pitiful, You Are Not Immune to Access This Page* message? Try one of these methods to get 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 right solution to the "Deplorable, you lot are not allowed to access this page" error is vital to both your site and your peace of heed.

In this post, nosotros covered a broad range of possible causes and fixes for this upshot. Let's recap them apace:

  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. Bank check your fault log to pinpoint the cause.
  6. Ensure that your database prefix is correct.
  7. Look 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!


Salve fourth dimension, costs and maximize site operation with:

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

All of that and much more than, in one program with no long-term contracts, assisted migrations, and a 30-mean solar day-money-back-guarantee. Check out our plans or talk to sales to find the plan that's correct for you lot.