Your Account May Not Be Allowed to Perform This Action. Please Refresh the Page and Try Again Chrome
There are few situations more alarming than existence locked out of your own WordPress admin dashboard. If you've encountered a bulletin reading "Sad, you are not allowed to admission this page" when trying to log in, y'all know the feeling offset hand.
Fortunately, there are several solutions at your disposal for troubleshooting this error. With a piddling patience, y'all tin can clear up the mistake and become back to managing your WordPress site in no time.
In this postal service, nosotros'll dig into the "Deplorable, you lot are not allowed to access this page" mistake and what causes it to occur. Then nosotros'll walk you through the many potential solutions to help you find the one that addresses your specific situation.
Permit's jump right in!
Understanding the "Sorry, You lot Are Not Allowed to Access This Page" Error
Although we're referring to it every bit an "error" for the purposes of this post, the "Deplorable, yous are non allowed to access this page" bulletin in WordPress is meant to be a helpful security measure.
Ultimately, seeing this notification simply means there'due south a permissions setting that'due south blocking you from a certain expanse.
This becomes a problem when you lot're locked out of a part of your site that yous should have permission to enter which, every bit an Administrator, is anywhere on the backend. When this situation arises, it is oftentimes following a recent update to a theme, plugin, or WordPress cadre.
You may see the "Sorry, you are non allowed to admission this page" message for a variety of reasons. It might be that WordPress doesn't recognize you as an Ambassador. In other situations, the data contained in your site'south core code or in a theme or plugin may not match what's in your database.
Additional causes include incorrect information in your wp-config.php file or a site that's running an outdated version of PHP. Any the source, this mistake may prevent you from accessing the entire admin area or merely a portion of it.
Since it'south likely that you will not be able to access fundamental settings via the dashboard, yous'll need to utilize File Transfer Protocol (FTP) or phpMyAdmin to resolve this event. Make sure to dorsum up your site and brush up on using these platforms earlier y'all swoop into the troubleshooting procedure.
The well-nigh frustrating affair near encountering the "Sorry, y'all are not allowed to access this page" notification is that it tin can be hard to pin down which of its causes are at play. Fortunately, in that location are many solutions you can examination out to detect the root of the problem.
How to Fix the "Sorry, Yous Are Not Allowed to Access This Page" Error in WordPress (11 Potential Solutions)
Due to its many possible causes, the "Sad, you are non immune to access this page" error takes quite a chip of patience to resolve. This long listing of solutions may be intimidating only it also covers a variety of situations to help yous find the right 1 for your site.
1. Restore a Previous Version of Your Site
The simplest and often the fastest way to get back into your WordPress dashboard is to restore your site to an before version. A recent modify, such as an update, might be the cause of the fault you're seeing. Undoing your latest modification should enable you lot to admission your site over again.
Kinsta clients have it easy in this regard. You lot can restore a WordPress backup in your hosting business relationship with a single click:
The drawback to this solution is that you lot may lose your contempo changes and will accept to notice a style to accomplish your goals without causing the same error again.
For this reason, y'all may want to restore your fill-in to a staging site instead. Yous can and so test dissimilar modifications to determine what caused the trouble. Later on uncovering the root of the consequence, you tin can undo the troublesome change to regain access to your site.
2. Disable All of Your Plugins
A specific change that may be causing the "Sad, you are not allowed to access this page" message on your site is the contempo addition or upgrade of a plugin. If you lot suspect that this is the instance, your best course of action is to disable your plugins 1 past one.
In the event that you disable a plugin and the message goes away, you've found the source of the problem. You can then troubleshoot the issue with that plugin (or practice without it, if it's not crucial to your site's functionality).
Of course, if yous're locked out of your dashboard entirely, this process gets a little tricky. You'll demand to admission your site using SFTP via a customer such as FileZilla. Once y'all've done then, navigate to wp-content and find the sub-directory labeled plugins:
Enter this folder, so rename your virtually recently-added plugin to something similar "plugin-name_old". Go back to your site and check to encounter if the error is resolved. If not, change the plugin'southward name back and repeat the process with the adjacent ane.
3. Activate a Default Theme
Nevertheless another potential cause of this error is that you've recently updated or installed a theme. Your best bet for resolving this problem is to actuate a default WordPress theme such as Twenty Twenty or Twenty Nineteen.
To exercise so without admission to your admin surface area, you'll need to use FTP once more. Connect to your server with FileZilla and then navigate to wp-content > themes:
The rest of the process is fairly similar to the one described in a higher place for disabling your plugins.
Rename the folder for your active theme, so return to your site and log in. Yous should run into a notification telling yous that the active theme is broken, and a default theme has been reactivated.
And then y'all can troubleshoot the theme. Your site should at to the lowest degree be accessible, albeit with the wrong theme activated.
4. Make Sure Y'all're an Administrator
Another possibility is that your user function has been inadvertently inverse and y'all are no longer listed equally an Administrator. This is a mutual problem with multisite installations. To decide if this is the instance, you'll need to access phpMyAdmin and look for the wp_users table:
Find your username and note your ID. And so, navigate to the wp_usermeta table and observe the wp_capabilties row:
If you have Administrator privileges, the meta_value in this row will read:
a:ane:{s:13:"administrator";south:i:"1";}
If your wp_usermeta tabular array says something else, you tin can click on the Edit link and change it. Alternatively, you can also create an entirely new Administrator business relationship from phpMyAdmin. To take this route, return to the wp_users table and click on the Insert tab at the superlative of the table:
Then, fill in the fields with your new user information. Once you're done, click on the Go button and your new user should appear in the table. Adjacent, you'll need to make a notation of the ID for this account and caput back to the wp_usermeta tabular array.
Click on Insert over again, and fill up in the resulting fields with the following data:
- Unmeta_id: Leave this field bare; it will exist filled in automatically for you.
- User_id: Employ the ID from the WP Users table.
- Meta_key: Prepare this value as "wp_capabilities".
- Meta_value: Add the line mentioned in a higher place.
Y'all should now be able to utilise your new credentials to log in to your WordPress admin area. Delete your former account or change its user function back to Administrator from the dashboard and delete the new one instead.
Subscribe Now
5. Check Your Error Log to Pinpoint the Cause
A smart mode to streamline troubleshooting whatsoever problem on your site is to bank check your server's fault log. This may indicate plugin or theme compatibility problems, database errors, or bug with your site's files that are causing the "Sorry, yous are not allowed to access this page" bulletin to appear.
How y'all view your server's mistake log will vary depending on who your hosting provider is. For Kinsta customers, this process is every bit unproblematic as logging into your MyKinsta dashboard. There, select the site that's experiencing bug and navigate to Logs:
Choose error.log from the drop-down menu. If you see one of the causes of the alert in your log, then you tin can go almost fixing information technology. Otherwise, you lot'll need to try some other solution on this list.
6. Ensure That Your Database Prefix Is Correct
Every MySQL database has a prefix. If this i listed in your website's files doesn't match the one listed in phpMyAdmin, then you may see the "Sorry, you are non allowed to access this page" bulletin.
This can occur when migrating your site, including if you've used a local staging site for evolution and are now moving to a live server. To check for discrepancies, you lot'll need to access your wp-config.php file.
Y'all can practise this via SFTP equally nosotros've described in previous solutions. Once you're in your wp-config.php file, you lot should look for your database's prefix (the default is "wp_"):
And then, log in to phpMyAdmin and wait at the prefixes for your database's tables. They should match the ones listed in your wp-config.php file, like in the image beneath:
If they don't match the prefix in your wp-config.php file, then you'll demand to edit it so that they do.
7. Expect for Changes in Your wp-config.php File
On a similar note, you should too await for any changes to your WordPress configuration file. This is peculiarly true if you were editing this file shortly before yous received the "Sorry, you are non allowed to admission this page" bulletin or if you suspect that your WordPress site has been hacked.
You can access your wp-config.php file using SFTP and look for anything that seems amiss. However, this process is much easier if you lot have some kind of file integrity monitoring or change detection feature in place.
8. Upgrade to the Latest Version of PHP
If your WordPress site is running an outdated version of PHP, this could exist the source of your troubles. With that said, even if upgrading PHP doesn't solve this issue for yous, it should improve your site'south overall security and functioning.
Earlier you start the upgrade process, create a backup of your site. You tin can practice this manually or from your MyKinsta dashboard, even if you're locked out of your admin area. Once you've saved your backup, yous'll want to test to run into whether your account is compatible with the latest version of PHP. I way to exercise this is with a WordPress staging site.
Assuming that all goes well, you lot can run the update. Kinsta customers tin can easily do so by logging into the MyKinsta dashboard and navigating to the relevant site. Then get to Tools > PHP Engine > Modify, and select the newest version from the drop-down menu:
If you're with another provider, yous may exist able to follow a similar process via your ain control console. It's recommended that yous contact your web host for more information.
9. Evaluate Your File Permissions
It's also possible that your site's file permissions have been tampered with. In this case, WordPress may consider you unauthorized to view sure areas of your site, even if you're withal listed every bit an Administrator.
To bank check your site's file permissions, you'll demand to utilize SFTP to access your server. Once you're logged in, enter the public_html directory and bulk-select wp-admin, wp-content, and wp -includes. Correct-click on these folders and choose File Permissions:
In the resulting window, make sure 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 then, highlight all the other files in public_html, correct-click on them, and select File Permissions again:
This time, set the options in the permissions window to the following:
- The Numeric Value should be 644.
- Recurse into subdirectories should still be checked.
- Apply to files merely should be selected.
Then, return to your site to come across if this solves the problem and the "Sorry, you are non immune to access this folio" 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 exercise and so, launch FTP and navigate to your public_html folder. You should encounter your .htaccess file in that location, just if yous don't, follow instructions for showing hidden files in FileZilla.
Next, yous'll need to rename your existing .htaccess file, similar to how we renamed plugin and theme files in earlier solutions. Something recognizable such equally .htaccess_original or .htaccess_backup is ideal.
So, right-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 ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCOnd %{REQUEST_FILENAME} !-d RewriteRule . /alphabetize.php [L] #Stop WordPress
Rename this file .htaccess and upload information technology to your server. If this file was the source of the "Distressing, you lot are non allowed to access this folio" mistake, then it should now be fixed.
11. Reset Your WordPress Site
In the worst-case scenario, there may be an installation consequence. To fix it, you'll take to reset your WordPress site. It'due south vital that you accept a recent backup you tin can restore after this process is complete, as resetting your site will crusade you 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 control line). It's best to save this route every bit a final resort, so y'all don't risk losing your site's content.
Summary
Being locked out of your admin dashboard in WordPress is nerve-wracking, to say the least. Quickly finding the right solution to the "Sad, you are not allowed to admission this page" mistake is vital to both your site and your peace of mind.
In this mail, we covered a wide range of possible causes and fixes for this issue. Let's recap them chop-chop:
- Restore a previous version of your site.
- Disable all of your plugins.
- Activate a default theme.
- Make sure you're an ambassador.
- Check your mistake log to pinpoint the crusade.
- Ensure that your database prefix is correct.
- Expect for changes in your wp-config.php file.
- Upgrade to the latest version of php.
- Evaluate your file permissions.
- Create a new .htaccess file.
- Reset your WordPress site.
Happy fixing!
Relieve time, costs and maximize site functioning with:
- Instant help from WordPress hosting experts, 24/7.
- Cloudflare Enterprise integration.
- Global audition accomplish with 29 data centers worldwide.
- Optimization with our built-in Awarding Performance Monitoring.
All of that and much more, in i plan with no long-term contracts, assisted migrations, and a 30-24-hour interval-money-back-guarantee. Check out our plans or talk to sales to find the plan that's right for you lot.
Source: https://kinsta.com/knowledgebase/sorry-you-are-not-allowed-to-access-this-page-error-in-wordpress/
0 Response to "Your Account May Not Be Allowed to Perform This Action. Please Refresh the Page and Try Again Chrome"
Postar um comentário