Skip to content Skip to sidebar Skip to footer

Were Sorry You Are Prevented From Reaching This Number Please Try Again Later

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

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

In this post, we'll dig into the "Pitiful, you are not allowed to admission this page" error and what causes information technology to occur. And then we'll walk y'all through the many potential solutions to assistance y'all discover the one that addresses your specific situation.

Permit'south jump right in!

Agreement the "Sorry, You Are Non Immune to Access This Folio" Error

Although we're referring to it every bit an "error" for the purposes of this mail, the "Sorry, yous are not allowed to access this page" message in WordPress is meant to be a helpful security mensurate.

Ultimately, seeing this notification simply means in that location's a permissions setting that'due south blocking you from a sure expanse.

This becomes a trouble when y'all're locked out of a part of your site that you lot should have permission to enter which, as an Ambassador, is anywhere on the backend. When this situation arises, it is often following a recent update to a theme, plugin, or WordPress core.

You may see the "Distressing, yous are not allowed to admission this page" message for a diversity of reasons. Information technology might be that WordPress doesn't recognize you as an Ambassador. In other situations, the information contained in your site's core code or in a theme or plugin may not match what'southward in your database.

Additional causes include wrong information in your wp-config.php file or a site that's running an outdated version of PHP. Whatever the source, this error may forestall you from accessing the entire admin expanse or just a portion of it.

Since it'due south likely that yous volition not exist able to admission fundamental settings via the dashboard, you'll need to utilise File Transfer Protocol (FTP) or phpMyAdmin to resolve this issue. Make sure to back up your site and brush up on using these platforms before you dive into the troubleshooting process.

The nigh frustrating thing about encountering the "Pitiful, you lot are non immune to access this page" notification is that it tin can be hard to pin downward which of its causes are at play. Fortunately, at that place are many solutions you lot tin can test out to find the root of the problem.

How to Set the "Sorry, You lot Are Not Allowed to Access This Page" Fault in WordPress (xi Potential Solutions)

Due to its many possible causes, the "Lamentable, you are not allowed to access this page" error takes quite a bit of patience to resolve. This long list of solutions may be intimidating but it also covers a variety of situations to help you detect the right one for your site.

1. Restore a Previous Version of Your Site

The simplest and ofttimes the fastest way to get back into your WordPress dashboard is to restore your site to an earlier version. A contempo change, such as an update, might be the cause of the fault yous're seeing. Undoing your latest modification should enable you to access your site again.

Kinsta clients have it easy in this regard. You tin 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 lot may lose your recent changes and will have to find a way to accomplish your goals without causing the same error again.

For this reason, yous may desire to restore your fill-in to a staging site instead. Y'all tin can then test different modifications to determine what caused the problem. After 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 modify that may exist causing the "Deplorable, y'all are non allowed to admission this page" bulletin on your site is the recent addition or upgrade of a plugin. If you suspect that this is the case, your best course of action is to disable your plugins one by ane.

In the event that y'all disable a plugin and the bulletin goes away, you lot've found the source of the problem. Y'all can then troubleshoot the result with that plugin (or do without it, if information technology's not crucial to your site's functionality).

Of form, if yous're locked out of your dashboard entirely, this procedure gets a little tricky. You'll need to admission your site using SFTP via a customer such as FileZilla. In one case you lot'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 binder, and and then rename your most recently-added plugin to something similar "plugin-name_old". Go back to your site and bank check to run into if the mistake is resolved. If not, change the plugin's name back and repeat the process with the next one.

3. Activate a Default Theme

Notwithstanding another potential cause of this mistake 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 equally Twenty Twenty or Twenty 19.

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

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

The balance of the process is adequately similar to the one described above for disabling your plugins.

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

And so you can troubleshoot the theme. Your site should at least exist accessible, albeit with the incorrect theme activated.

iv. Make Sure Y'all're an Administrator

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

The WP users table
The wp_users tabular array in phpMyAdmin

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

The wp_usermeta table in phpMyAdmin
The wp_usermeta table in phpMyAdmin

If you have Ambassador privileges, the meta_value in this row volition read:

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

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

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

Then, make full in the fields with your new user data. Once you're done, click on the Become button and your new user should announced in the table. Side by side, you'll need to make a note of the ID for this business relationship and head back to the wp_usermeta table.

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

  • Unmeta_id: Leave this field blank; information technology will be filled in automatically for you.
  • User_id: Use the ID from the WP Users table.
  • Meta_key: Set this value as "wp_capabilities".
  • Meta_value: Add together the line mentioned in a higher place.

You should now exist able to employ your new credentials to log in to your WordPress admin expanse. Delete your old account or change its user role back to Ambassador from the dashboard and delete the new one instead.

Subscribe Now

v. Check Your Error Log to Pinpoint the Cause

A smart way to streamline troubleshooting any problem on your site is to cheque your server'southward mistake log. This may point plugin or theme compatibility issues, database errors, or problems with your site's files that are causing the "Lamentable, you are not allowed to access this page" bulletin to appear.

How you view your server's mistake log will vary depending on who your hosting provider is. For Kinsta customers, this procedure 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 mistake.log from the drop-downwards menu. If yous see one of the causes of the alert in your log, and so you can go near fixing it. Otherwise, y'all'll need to try another solution on this listing.

6. Ensure That Your Database Prefix Is Right

Every MySQL database has a prefix. If this one listed in your website's files doesn't match the one listed in phpMyAdmin, then you may run across the "Sorry, you are not immune to admission this folio" message.

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

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

Database prefix
Database prefix

So, log in to phpMyAdmin and look at the prefixes for your database's tables. They should match the ones listed in your wp-config.php file, similar in the paradigm 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, and then y'all'll need to edit it so that they do.

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

On a similar annotation, you should also look for any changes to your WordPress configuration file. This is especially true if you lot were editing this file shortly earlier you received the "Sorry, you are non allowed to admission this page" message or if you lot suspect that your WordPress site has been hacked.

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

viii. 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, even if upgrading PHP doesn't solve this issue 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 practise this manually or from your MyKinsta dashboard, even if you lot're locked out of your admin area. Once you've saved your fill-in, y'all'll want to test to meet whether your business relationship is compatible with the latest version of PHP. One way to do this is with a WordPress staging site.

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

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

If you're with another provider, you may exist able to follow a like process via your own control panel. It'southward recommended that y'all contact your web host for more information.

ix. Evaluate Your File Permissions

It'southward besides possible that your site'southward file permissions accept been tampered with. In this case, WordPress may consider y'all unauthorized to view sure areas of your site, fifty-fifty if you're still listed every bit an Ambassador.

To check your site's file permissions, you'll need 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 certain the following options are selected:

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

Click on OK when you're done. And so, highlight all the other files in public_html, right-click on them, and select File Permissions again:

Setting new file permissions
Setting new file permissions

This time, set the options in the permissions window to the following:

  • The Numeric Value should be 644.
  • Recurse into subdirectories should all the same be checked.
  • Use to files only should exist selected.

So, return to your site to encounter if this solves the problem and the "Deplorable, yous are not allowed to access this page" message is gone.

10. Create a New .htaccess File

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

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

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

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

Rename this file .htaccess and upload it to your server. If this file was the source of the "Sorry, you are not allowed to access this page" error, then it should at present exist stock-still.

11. Reset Your WordPress Site

In the worst-case scenario, in that location may be an installation effect. To fix it, you lot'll accept to reset your WordPress site. It's vital that you take a recent backup y'all tin can restore after this procedure is complete, as resetting your site will cause yous to lose all posts, pages, and user comments.

There 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 save this route as a last resort, then you don't risk losing your site's content.

Are you getting the awfully alarming *Sorry, Yous Are Not Immune to Admission This Page* message? Try one of these methods to become 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 "Sorry, you are not immune to admission this page" mistake is vital to both your site and your peace of mind.

In this post, we covered a broad range of possible causes and fixes for this issue. Permit's epitomize them quickly:

  1. Restore a previous version of your site.
  2. Disable all of your plugins.
  3. Actuate a default theme.
  4. Make sure you're an ambassador.
  5. Check your error 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 time, costs and maximize site performance with:

  • Instant help from WordPress hosting experts, 24/7.
  • Cloudflare Enterprise integration.
  • Global audience reach with 29 information centers worldwide.
  • Optimization with our built-in Awarding Functioning Monitoring.

All of that and much more, in i program with no long-term contracts, assisted migrations, and a 30-solar day-money-dorsum-guarantee. Cheque out our plans or talk to sales to observe the program that'due south right for you.

geigerrearldeen.blogspot.com

Source: https://kinsta.com/knowledgebase/sorry-you-are-not-allowed-to-access-this-page-error-in-wordpress/

Post a Comment for "Were Sorry You Are Prevented From Reaching This Number Please Try Again Later"