Imagine this: you are working on your WordPress website and then bam! You see this contortion and confusion error:
« Sorry, you are not authorized to access this page »
« How is that possible ? You are shouting in silence. " I need to access this page. I am the administrator! »
Frustration continues when you realize that the correction is not automatic since there are several possible reasons for this error.
Do not worry. Today I will share more details about the cause of this error as well as how to fix it.
But, if you've never installed WordPress discover How to install a WordPress blog in 7 steps et How to search, install and activate a WordPress theme on your blog
But back to why we are here.
A short history of this error
This error is originally a permissions or security issue, but there could be several reasons for this error.
So much to see... 5 premium WordPress plugins to optimize your categories
In case you are the administrator, there is a loss of connectivity between the files of your WordPress blog and your database. WordPress core, plugins or themes have data that does not match what is saved in the database. Because the information does not match, the request cannot be processed.
This happens when information such as username and password in the wp-config.php file that do not match what is stored in the database.
It is also possible that you have a PHP version installed on your server that is not compatible with WordPress, which is also a security risk.
5 WordPress plugins to visually edit CSS to discover absolutely.
There are many more examples, but all of these serve to illustrate the different reasons for this page, although not all of them can be easily detected.
With that in mind, here is how to diagnose the reason for this error on your WordPress blog.
How to diagnose the dashboard access error
Assuming you are logged in as an administrator or super administrator and not with an account with a different user role, here's how to diagnose the problem. You do not necessarily need to follow the letter, but it is recommended.
Read also: Permalink: How to customize your blog links
This list starts with basic tips for advanced tips.
First of all, you must necessarily make a backup of your database. This will be useful if something bad happens, you can use that to restore the website.
To go further, here 7 WordPress plugins to save your website / Blog
1. Restore your actions
Try to remember what you did before the error occurred.
For example, if you have updated a theme or a WordPress Plugin. This can also happen when migrating from a local environment to a server. While updating WordPress, you may also encounter this error.
2. Activate WP_DEBUG
The Boolean " WP_DEBUG Can list the errors on the front end that are currently plaguing your WordPress website. With this particular error, this usually does not generate any results.
Either way, it's a good idea to try this out, as you might be notified of any errors related to any plugins or themes you installed that are contributing to the problem.
Read also: How to fix the WordPress "Unable to write to disk" error
Try to activate WP_DEBUG And check the error log when it is finished. Also, be sure to add the logging option so that " WP_DEBUG Be printed in a private newspaper. This prevents errors from being displayed on the front end, which is a security risk.
3. Check for errors and your access logs
After you have checked your access logs while sleeping from debug mode, it is also a good idea to check the access logs that are on your server for errors.
If you see any errors listed, it might help narrow down the potential sources of the problem. You can also use your access log to determine the last action before the error appeared.
Read also: Some WordPress plugins to redirect
You can also check if there was unauthorized access to your website. If a hacker has been able to gain access to your files or database, you may be blocked if the hacker has modified vital data that would limit your access to pages to which you would normally have access.
4. Notifications of security plugins.
It is possible that a hacker may have infiltrated your website and in such a case it is likely that you have received a notification if you have installed a security plugin.
If you are receiving email notifications from the security plugin you installed, check if you received one in your inbox and don't forget to check the spam folder in case your email provider mail has strict spam rules in place.
See also: How to make money on the internet with WordAds
It's all for these different practices to correct the error of access to a page. There are many more solutions, but this can be considered a start.
Discover also some themes and premium WordPress plugins
You can use other WordPress plugins to give a modern appearance and to optimize the handling of your blog or website.
We offer you here some premium WordPress plugins that will help you do that.
1. WooCommerce Multisite Duplicator
You have just opened your online store and you want to create another one whose configuration will be almost identical, at the same time you want to manage these two online stores in one place, then this WooCommerce plugin premium of WordPress will help you create a multi-site network that is easy to administer and manage.
You will have the possibility to clone your old website and after that you will just have to create new products. the WordPress Plugin WooCommerce Multisite Duplicate therefore helps you to duplicate your products in your multisite network.
Enrich your exploration by discovering our article on: Page Builder: 5 WordPress plugins to create your pages
You can duplicate one or all websites. You can even specify what you want to copy or not.
Download | Demo | Web hosting
2. Yellow Pencil: Visual CSS Style Editor
Yellow Pencil is a visual style editor that you can use with any theme to personalize your website in minutes (fonts, colors, animations and more…).
Ce WordPress Plugin premium will create CSS styles by background while you play with the colors as if it were a game. It was designed for beginners as well as experienced users.
Discover also our 5 plugins WordPress to show notifications
No coding knowledge is required. However, the WordPress plugin has a good CSS editor for those who like to code. You can code live with this editor and customize your CSS.
Download | Demo | Web hosting
3. Cube Portfolio
Cube Portfolio is a premium WordPress grid plugin that offers a powerful portfolio, beautiful animated filtering, custom captions, etc. It is perfect for portfolio projects, image galleries, team members, articles blogs, or other content organized in a grid.
Thanks to the real-time authoring tool template, you can control all aspects of the plugin: colors, fonts, dimensions, spacings, borders, etc ...
Read also: 6 WordPress plugins to add auto-completion to your forms
Il est super easy to use for beginners and very customizable for advanced users.
Download | Demo | Web hosting
Recommended Resources
Find out about other recommended resources to help you build and manage your website.
- 9 WordPress plugins to customize your homepage
- 5 critical WordPress plugins to boost your income
- 10 WordPress plugins to manage ads on your blog
- 10 WordPress plugins to create and manage an educational website
Conclusion
Here ! That's it for this article. We hope it helps you fix the error accessing a WordPress dashboard page. Do not hesitate to share with your friends on your favorite social networks.
However, you will also be able to consult our resources, if you need more elements to carry out your projects of creation of Internet sites, by consulting our guide on the WordPress blog creation.
And if you have any suggestions or remarks, leave them in our section Comments.
...