How to fix the error sorry you are not allowed to access this page. wordpress

Rebecca
Rebecca
15 Min Read
sorry you are not allowed to access this page. wordpress

The error sorry you are not allowed to access this page. wordpress is usually displayed when you try to view a page in your WordPress dashboard that your user role does not have permission to view.

However, you might see the error sometimes even when you are supposed to access that page. This error can be due to many different reasons, making troubleshooting difficult for beginners.

In this article, we will show you how to fix the sorry you are not allowed to access this page. wordpress error in WordPress.

sorry you are not allowed to access this page. wordpress

What causes the error sorry you are not allowed to access this page. wordpress?

WordPress user roles and permissions define what your users can and cannot do in WordPress. For example, an author on your site could not edit another author’s post, only their posts.

If someone gave an author the link to edit someone else’s post, then they would see the error sorry you are not allowed to access this page. wordpress when following the link.

However, sometimes you may see sorry you are not allowed to access this page. wordpress when you should have access to view the page.

If you are not the owner or administrator of the site, and you see this error, you should contact the owner or administrator of the site to inform them. They can explain why you don’t have access to the page or they can change your role to grant you access.

If you are the site owner or have an administrator role, but you keep seeing the error sorry you are not allowed to access this page. wordpress when you try to log into your website, it means that something went wrong with the permissions.

Perhaps there was a problem with a WordPress update. Maybe there was a problem when a theme or plugin was updated. Or maybe something went wrong with your configuration.

If you see this error when you try to log in, you will not be able to correct the error by changing the WordPress settings in the control panel. You will have to work with the files and databases directly.

This can be tricky for beginners, and making a mistake could make things worse. As a precaution, we recommend that you first make a full backup of your WordPress website.

You can also start by contacting your hosting provider. They may be able to fix the problem for you.

With that said, here are some steps you can take to troubleshoot and correct the error, sorry you are not allowed to access this page. wordpress.

Read more: How to fix wordpress database connection

sorry you are not allowed to access this page: Checking you have the correct WordPress role

If you are able to log into the WordPress dashboard, but cannot access specific pages, then the problem could be that your WordPress user role was changed and you are no longer an administrator.

From the WordPress dashboard, you can see your user role by visiting the Users »All Users page and looking under the ‘Role’ column.

If you don’t have access to the Users page, you are not an administrator.

If you or someone else accidentally deleted your administrator account or changed your user role, you can add a new administrator user with phpMyAdmin.

Read more: Blank white screen in wordpress? Dont panic: We have a solution!

sorry you are not allowed to access this page: Checking for a corrupted .htaccess file

If you have an administrator user role and you keep seeing the error sorry you are not allowed to access this page. wordpress then it could be due to a corrupted .htaccess file. We can check this by changing the file name.

You must use an FTP client or the file manager feature in your account property of WordPress. If you haven’t used FTP before, you might want to see our guide on how to use FTP to upload files to WordPress.

With your FTP client, you need to navigate to the root folder that contains all of your WordPress files. Once you find the .htaccess file, you must rename it to something else, such as .htaccess.old.

If you can’t find your .htaccess file, check out our guide on how to find .htaccess in WordPress.

Once you rename the file, try logging into your WordPress site to see if that has fixed the problem. If not, rename it to .htaccess and proceed to the next step.

If you can log in, you have fixed the problem. The next step is to generate a new .htaccess file. To do that, navigate to the Settings »Permalinks page in WordPress.

Just click the Save Changes button at the bottom of the page and WordPress will generate a new .htaccess file.

sorry you are not allowed to access this page: Checking for wrong file permissions

As long as you have your FTP client open, we will check to make sure there are no permissions issues on your files. File permissions control who can access files and folders on your website.

The following settings are recommended for most users:

755 for all folders and subfolders.
644 for all files.

With your FTP client, you need to navigate to the root folder that contains all your WordPress files and select the wp-admin, wp-content, and wp-includes folders. Then you need to right-click and select ‘File Permissions’.

This will open the file permissions dialog.

Now you need to enter 755 in the numeric value field. After that, you can click the checkbox ‘Fall back to subdirectories’ and then select the option ‘Apply to directories only’.

Click on the OK button to continue. Your FTP client will start setting file permissions for folders and subfolders. You will have to wait for it to finish.

Next, you need to select all the files and folders in the root folder of your WordPress site and then right-click to select the file permissions.

The file permissions dialog will appear.

This time you need to enter 644 in numerical value. After that, you need to click on the checkbox ‘Resort to subdirectories’ and then select the option ‘Apply to files only’.

Click OK to continue and your FTP client will now start setting file permissions for all files on your WordPress site.

Once you’ve done this, try logging into your WordPress website again. If you are successful, you have fixed the problem. If not, continue to the next step.

Read more: Error 404: What is it and how to solve error 404 in wordpress

Disabling all plugins using FTP

If the previous steps have not resolved the problem, our next step is to check if a faulty WordPress plugin is causing the error. We will do this by temporarily disabling all plugins.

First, you must connect to your website using an FTP client. Once connected, you need to navigate to the / wp-content / folder.

Once there, you will see a folder called plugins. This is where WordPress stores all plugins installed on your website.

You need to right-click on the plugins folder and select Rename. You must then enter a different name. We’ll call it ‘plugins. disable’.

All your plugins have been disabled. Now try logging into your WordPress site to see if this has fixed the problem.

If you still get the error sorry you are not allowed to access this page. wordpress then the problem is not caused by a plugin. You will need to rename the ‘plugins. disable’ folder back to ‘plugins’ and proceed to the next step.

If you can now log in, then you know that one of the plugins is causing the error. We just have to find out which one.

Using your FTP client, rename the ‘plugins. disable’ folder back to ‘plugins’ then navigate inside the plugins folder. Now rename the first plugin to something like ‘plugin-name. deactivate’.

Now go back to your site to see if you can log in. If you can’t, change the plugin return the name, and go to the second plugin. Repeat the process until you find the one that caused the problem.

Once you have found the faulty one, you can switch to another plugin that does not cause the problem. Or you can contact the plugin author and work with them to find a solution.

Activating the default theme via FTP

If the Solution plugin didn’t work for you, then we’ll have to check if your WordPress theme could be causing this problem.

This step is similar to deactivating your plugins. You will need to connect to your website using an FTP client and navigate to the wp-content folder.

Once there, you will see a folder called themes. This is where WordPress stores all the themes installed on your website.

This time you need to right-click on the plugins folder and select Rename. We’ll call it ‘themes. deactivate’.

This will activate the default theme. Now try logging into your WordPress site to see if this has fixed the problem.

If you still receive the error sorry you are not allowed to access this page. wordpress then the problem is not caused by a topic. You need to rename the ‘themes. deactivate’ folder to ‘themes’ and proceed to the next step.

If you can log in, then the topic above caused the problem and you can start fixing it. You can try using a different theme or reinstalling the same theme and setting it up carefully.

If the error reappears, report it to the author of the topic. They may be able to help you solve the problem or correct a mistake in the issue.

Read more: Top 12 Ways To Fix This Site Can’t be Reached Connection

Final troubleshooting steps

If you are still reading, sadly the other steps have not solved your problem. Here are some more things you can try.

Check the error log

You may be able to check an error log for clues as to what went wrong. Your hosting provider may keep logs, or they may have previously set up WordPress to keep them.

For more details, check out our guide on how to set up WordPress error logs or contact your hosting provider.

Upgrade to latest PHP

If your WordPress site runs an older version of PHP, it may be causing problems. It may be useful to update to the latest version.

For more information, see our guide on how PHP updates made by your web host affect your WordPress site or contact your hosting provider.

Restore your most recent backup

If you’ve recently backed up your WordPress website, restoring it to a previous version will likely fix the sorry you are not allowed to access this page. wordpress error.

The problem is, you will lose any changes to your settings and content made after the backup.

For more information, check out our beginner’s guide on how to restore WordPress from backup.

Contact your hosting provider

If you can not fix the error on your own, you should contact your company’s hosting of WordPress to see if there is anything they can do.

Many vendors offer excellent technical support and may be able to solve the problem for you.

For example, they may be able to check your server’s error logs or have created their backups of your WordPress site. They will be able to advise you on how they can help and what to do next.

 

 

For website maintenance service contact us.

Posted by Rebecca
Follow:
Rebecca is an Independent content writer for breldigital, She writes content on any given topic. She loves to write a case study article or reviews on a brand, Be it any topic, she nails it
Leave a comment

Leave a Reply