What is the error “Sorry, you are not allowed to access this page ”
Posted: Sun Dec 22, 2024 5:12 am
How to fix “Sorry, you are not allowed to access this page ” error
While working on your WordPress site, you may encounter the error Sorry, you are not allowed to access this page, in addition to not being able to make important changes to your site.
It's frustrating to be stuck on a white screen that only says you are not allowed to access this page.
In this article, we will present the appropriate australia phone number for whatsapp solutions to such a problem to help you find the solution that addresses your specific situation.
This error is mainly caused by a security and permissions issue, but there could be several reasons why such an error occurs.
There may be a discrepancy in the data being communicated between your site files and the database, this happens in cases where the database details such as the username and password in the wp-config.php file do not match what is set up in the database.
There might be a version of PHP installed on your server that is not compatible with WordPress and this poses a security risk, these are some possible reasons for such an error but there are many more reasons than this.
Now let's learn together how to troubleshoot the error "Sorry, you are not allowed to access this page."
1. Revert recent changes :
If you know what you did before this excuse appeared, then this is likely the cause of this problem.
For example, updating the WordPress version may have caused many problems in the database, so the easiest way to solve this problem is to restore the website to its previous version or remove the modification.
Which was done or restore a quick backup.
2. Upgrade PHP version:
The error can be caused by PHP being incompatible with your WordPress,
When we see a notification that there are updates in WordPress core and we do those updates then WordPress core will get some security fixes and will introduce some new features but those updated versions also require updated versions of PHP so we should update PHP if needed.
You need to log in to your control panel and select the PHP version, to know how to update the PHP version you can go here:
Or you can request a version update from Quality Hosting Support or open a support ticket for this.
3. Use WP_Debug to get a list of errors:
WP_Debug can list all the PHP errors your site encounters, go to the wp-config.php command line from the file manager
In the hosting and add the following code:
; (define ('WP_DEBUG', true
Save the file and you will be able to see a comprehensive list of debug messages when you access your site again,
You can see the reason behind the error Sorry, you are not authorized to access this page and fix it accordingly.
4. Reset file :
There might be a problem with your htaccess file. So head over to your public_html folder using FTP to see all the steps required.
To access the htaccess file, please go to this link:
Right click on the file and select Rename and change the name to htaccess_backup.
Then download the file, open the file in a text editor and replace the existing text with the following text:
5. Export or reset your WordPress site :
The last two attempts you can make but it is important to first make sure you have a backup of your own site before trying any of these solutions.
Sometimes the error Sorry you are not allowed to access this page is caused by a problem with your WordPress installation so you need to export your site to a new WordPress in order to resolve the error.
To learn how to export your website please read the following article:
How to clear WordPress cache (cookies)
The last solution is to reset your WordPress site, but when you reset your database you will lose all content on pages, posts and comments,
But you can backup the contents so you can restore them after the reset.
While working on your WordPress site, you may encounter the error Sorry, you are not allowed to access this page, in addition to not being able to make important changes to your site.
It's frustrating to be stuck on a white screen that only says you are not allowed to access this page.
In this article, we will present the appropriate australia phone number for whatsapp solutions to such a problem to help you find the solution that addresses your specific situation.
This error is mainly caused by a security and permissions issue, but there could be several reasons why such an error occurs.
There may be a discrepancy in the data being communicated between your site files and the database, this happens in cases where the database details such as the username and password in the wp-config.php file do not match what is set up in the database.
There might be a version of PHP installed on your server that is not compatible with WordPress and this poses a security risk, these are some possible reasons for such an error but there are many more reasons than this.
Now let's learn together how to troubleshoot the error "Sorry, you are not allowed to access this page."
1. Revert recent changes :
If you know what you did before this excuse appeared, then this is likely the cause of this problem.
For example, updating the WordPress version may have caused many problems in the database, so the easiest way to solve this problem is to restore the website to its previous version or remove the modification.
Which was done or restore a quick backup.
2. Upgrade PHP version:
The error can be caused by PHP being incompatible with your WordPress,
When we see a notification that there are updates in WordPress core and we do those updates then WordPress core will get some security fixes and will introduce some new features but those updated versions also require updated versions of PHP so we should update PHP if needed.
You need to log in to your control panel and select the PHP version, to know how to update the PHP version you can go here:
Or you can request a version update from Quality Hosting Support or open a support ticket for this.
3. Use WP_Debug to get a list of errors:
WP_Debug can list all the PHP errors your site encounters, go to the wp-config.php command line from the file manager
In the hosting and add the following code:
; (define ('WP_DEBUG', true
Save the file and you will be able to see a comprehensive list of debug messages when you access your site again,
You can see the reason behind the error Sorry, you are not authorized to access this page and fix it accordingly.
4. Reset file :
There might be a problem with your htaccess file. So head over to your public_html folder using FTP to see all the steps required.
To access the htaccess file, please go to this link:
Right click on the file and select Rename and change the name to htaccess_backup.
Then download the file, open the file in a text editor and replace the existing text with the following text:
5. Export or reset your WordPress site :
The last two attempts you can make but it is important to first make sure you have a backup of your own site before trying any of these solutions.
Sometimes the error Sorry you are not allowed to access this page is caused by a problem with your WordPress installation so you need to export your site to a new WordPress in order to resolve the error.
To learn how to export your website please read the following article:
How to clear WordPress cache (cookies)
The last solution is to reset your WordPress site, but when you reset your database you will lose all content on pages, posts and comments,
But you can backup the contents so you can restore them after the reset.