7 Ways to Fix the ‘Sorry You Are Not Allowed to Access This Page’ Error
/ / 7 Ways to Fix the ‘Sorry You Are Not Allowed to Access This Page’ Error

7 Ways to Fix the ‘Sorry You Are Not Allowed to Access This Page’ Error

Some of the links in this post are affiliate links. This means if you click on the link and purchase the item, We will receive an affiliate commission at no extra cost to you. All opinions remain our own.

Many WordPress errors are warnings or notices that one thing is flawed together with your site. However, the Sorry You Are Not Allowed to Access This Page discover is really trying to assist you.

There are many causes of the error, and most require a few primary abilities to resolve. Once you’ve narrowed down the difficulty and resolved it, you’ll be again up and operating in no time.

This submit will offer seven methods to repair the Sorry You Are Not Allowed to Access This Page error. Before this, let's provide you with some extra data on what the error is.

How to Understand the Sorry You Are Not Allowed to Access This Page Error

Unlike many different WordPress errors, the Sorry You Are Not Allowed to Access This Page discover isn’t warning you of a difficulty together with your site.

In reality, for the tip user, they could not see any adjustments to their experience in any respect. However, you’ll don't have any entry to your site till it’s resolved.

The difficulty is associated with a configuration error of some kind. As you possibly can inform from the discovery, user permissions are typically the primary offender. Given this, you’ll often discover this error crops up after making adjustments to the again finish of your site. Updates can be at fault.

The Tools You’ll Need Before Tackling the Sorry You Are Not Allowed to Access This Page Error

Before you start to repair the Sorry You Are Not Allowed to Access This Page error, there are a few instruments and parts it's essential to have handy. Here’s a fast rundown of what you want:

  • Administrator entry to your server, at the very least to your root listing.
  • A Secure File Transfer Protocol (SFTP) consumer, akin to Cyberduck or FileZilla.
  • You might also have to resharpen your FTP abilities earlier than the beginning.
  • A textual content or code editor that will allow you to work together with your site’s recordsdata. Usually, your default textual content editor is nice, however, a code editor akin to Atom or Notepad++ is a higher choice.

Once you have these parts in place, it’s time to crack your knuckles and dive in!

7 Ways to Fix the Sorry You Are Not Allowed to Access This Page Error

In the following part, we’ll take a look at seven alternative ways to repair the Sorry You Are Not Allowed to Access This Page error. Here’s a fast breakdown of the strategies we’ll cowl:

  1. Check your WordPress error log.
  2. Ensure your file permissions are correct.
  3. Make sure your wp-config.php file hasn’t been changed.
  4. Disable your plugins to check whether they are at fault.
  5. Activate a default theme to check for issues.
  6. Create a new .htaccess file.
  7. Check over your user roles.

There’s a lot to get via, so let’s get began!

1. Check Your WordPress Error Log For Clues

The first step is to test your error log. Quite typically, you’ll discover a pointer that can assist you to select one of the opposite strategies beneath.

Some hosts provide you with entry to the WordPress error log via a dashboard. If not, there’s an easy resolution. First, enter your site via SFTP, utilizing the credentials discovered in your hosting management panel. Your site will often be throughout the public_html or www listing. However, it is also in a folder named after your site.

Once you’re in, you’ll see a checklist of your core WordPress recordsdata:

From right here, search for a debug.log file. It is also in the wp-content folder. Unfortunately, if it’s not there you will need to run via the opposite 9 steps beneath. While you possibly can enable debug mode and retest, you’ll use identical strategies to repair the difficulty regardless.

However, should you do discover it, open it up and take a look:

The WordPress error.log.

While you could not perceive a lot of the content, see if something is referring to the latest actions you’ve made. If so, you possibly can skip to at least one of the opposite related strategies we’ll discuss subsequent.

2. Ensure Your File Permissions Are Correct

While we’re utilizing SFTP, we will test other elements of your site underneath the hood. File permissions are going to be a key trigger of the Sorry You Are Not Allowed to Access This Page error, so it is sensible it test this primary.

Within your SFTP consumer, choose the wp-content, wp-includes, and wp-admin folder. Next, right-click and discover the File Permissions setting. FileZilla has a clear choice for this, however, Cyberduck hides the settings throughout the Info panel:

Changing folder permissions in Cyberduck.

In the dialog field, be sure the permissions the place doable are set as follows:

  • The Numeric Value is set to 755.
  • You’ve checked Apply to directories solely.
  • Recurse into subdirectories is checked.

Once you’ve carried out this, settle for your adjustments, choose all of the opposite recordsdata inside your site’s listing, and enter the File Permissions dialog once more:

Changing file permissions in Cyberduck.

This time, test the Apply to recordsdata solely and Recurse into subdirectories containers, and set the Numeric Value to 644.

The meanings behind these numbers and choices are past the scope of this text. However, it ensures that the best file permissions are set to permit entry to your site.

At this level, test whether or not the error has disappeared. If not, head to the following methodology.

3. Make Sure Your wp-config.php File Is Free From Errors

In a nutshell, your wp-config.php file comprises all of the configuration settings in your WordPress website. As such, you’ll wish to be sure it’s not been compromised or modified.

From inside your SFTP consumer, right-click the file and open it inside your textual content editor. Next, scan the file for something that stands out.

The wp-config.php file.

You could not know what you’re taking a look at, in which case, until you see one thing unusual, it’s seemingly nice. File integrity monitoring will be a good addition to your safety provision for the long run.

However, you’ll wish to be the aware one setting in this file for later. Scroll down the wp-config.php file till you discover the $table_prefix setting. Here, be aware of the worth – typically it’s wp_:

The table_prefix option in wp_config.php.

When we take a look at utilizing the phpMyAdmin software in a later part, we’ll wish to examine this worth to information contained there.

4. Check Whether Your Plugins Are At Fault

Given the error we’re coping with is based mostly on user permission points, it is sensible to additionally test over your plugins and themes. Recent updates may have modified your permissions.

Again, we’ll have to be inside your site’s listing utilizing SFTP. Once you’re in, head to the wp-content folder, and search for the plugins listing:

The plugins folder.

We can shortly test whether or not there’s a difficulty right here by renaming the folder to one thing apart from plugins:

Renaming the plugins folder.

Once you’ve carried out this, test your site for the error. If it’s gone, the fault lies with one plugin. To proceed, rename your plugins folder, and open it up. Inside are directories of all of your put in plugins:

The opened plugins folder.

From right here, you’ll have to rename every plugin folder in flip and test for the error on your site.

Once you’ve discovered the offending plugin, you’ll have a choice to make. You may take away all of it collectively, discover a different, or contact the developer for a repair.

However, if there is no change to your site, it might be a theme that’s inflicting the difficulty.

5. Activate a Default Theme

Much like your plugins, the latest theme replacement may have taken your site down. Fortunately, testing for this is a lot the identical process as your plugins. To recap:

  • Find the wp-content/themes folder.
  • Rename it, and test the entrance finish of your site.
  • If the error is gone, rename the themes folder, and undergo every particular person theme till you discover the offender.

Again, in case your theme is central to your site and workflow, you could wish to attain out to the developer for a repair. However, discovering one other appropriate theme is seemingly your higher choice.

Finally, if the error stays, rename your themes folder and transfer onto different steps.

6. Generate a New. htaccess File

Before we transfer away from SFTP, there’s yet one more step we will attempt to get your site again up and operating. Your .htaccess file is an Apache server configuration file, and it could be the trigger of your points.

To discover out, head to your site’s root listing via SFTP. Once you’re right here, search for the .htaccess file. If you possibly can’t discover it, it’s both a hidden file or doesn’t exist as a result of your host’s server (often Nginx). If it’s the latter, you possibly can transfer it onto different steps.

However, when you’ve discovered it, right-click and rename it – .htaccess-backup is good. Next, right-click and obtain the file to your laptop.

You’ll now wish to open the file in your textual content editor, filter the contents, and add the next code:

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

This is a default .htaccess file, and when you’ve completed it, save your adjustments and add it to your server.

Once once more, test your site and transfer on should you nonetheless experience the error.

7. Make Sure Your User Role and Table Prefix Is Correct

The ultimate step strikes away from SFTP and makes use of software to enter your WordPress database, such as phpMyAdmin. The database comprises virtually all the things on your WordPress site, together with your user position. If it’s been modified from an Administrator position, this may trigger you to lose entry to sure components of your site.

Your hosting management panel ought to provide you with entry to database software, so this is the place to go. There needs to be a hyperlink to comply with, though its location relies upon your hosting supplier:

The host's database login link.

Regardless, when you’re in, search for your database. The identity ought to match the one inside your management panel. Next, take a look at the ‘tables’ – i.e. the varied entries inside your database. They ought to all have the identical prefix:

The phpMyAdmin screen.

In step three, we famous down the $table_prefix worth. If yours differs inside phpMyAdmin, you’ll wish to return to your wp-config.php file, change the worth, and test your site earlier than carrying on.

To proceed, click on the wp_users desk, discover your username and ID in the right-hand checklist, and be aware of them down:

The wp_users table.

Next, navigate to the wp_usermeta desk and take a look at the wp_capabilities row. Your user position will be displayed in the meta_value subject:

The Meta Value field.

If this says something apart from the administrator, you possibly can click on the Edit hyperlink and alter the wording, being cautious to not amend any of the encircling textual content.

Finally, test your site as soon as extra to see if the error has gone.

The Next Steps If You Still Can’t Resolve the Sorry You Are Not Allowed to Access This Page Error

If you’re nonetheless struggling to resolve these points, there are a few different steps you possibly can take. However, everyone will rely on how the error impacts your site, the entry you've, and the entry your host presents you.

In a nutshell, right here are three extra strategies to resolve the error:

  • Restore your site from the latest backup. This is going to be troublesome should you don’t have a dashboard entry to your site. However, you'll have a server backup accessible, carried out by your host. Our recommendation is to test with them and discover out.
  • Upgrade your server’s PHP model. The latest change may have affected you, though until you’ve carried out this yourself, it’s unlikely. However, your host could have upgraded your PHP model.
  • Reset your whole WordPress site. It’s an absolute final resort, however, resetting your whole WordPress site utilizing software akin to WP Reset is a choice. However, we’d advise you to steer clear of this option for all the latest websites.

The widespread denominator right here is to contact your host, as they will seemingly give you the chance that can assist you additional. Even should you’re at a level the place a reset appears to be a good thought, contacting support is smart earlier than pulling the set off.

In Summary

WordPress errors by no means crop up at a good time. Usually, you’ll lose entry to each the again finish and entrance finish. However, this isn’t the case with the Sorry You Are Not Allowed to Access This Page error. It’s user permission discover quite than an indication of a site failure.

This submit has checked out seven methods to repair the Sorry You Are Not Allowed to Access This Page error. Quite typically, checking your error log for clues will level you in the best path. From there, disabling and re-enabling your plugins and themes, then checking your user permissions ought to provide you with entry once more.

Have you ever come through the Sorry You Are Not Allowed to Access This Page error, and in that case, how did you fare? Let us know in the comments part beneath!