Encountering the message “Sorry, you are not allowed to access this page” can be a perplexing experience, often stemming from various reasons. Perhaps WordPress fails to identify you as an Administrator, or there might be a disparity between the data in your site’s core code, a theme, or a plugin, and the corresponding information stored in your database. Addressing and resolving such issues requires the expertise of seasoned professionals who understand the intricate nuances of website development. As a leading software development company located in Kakkanadu, Ernakulam (Kochi), our team of expert software developers possesses the skills and knowledge needed to navigate through these challenges effectively. When you partner with us, you gain access to a wealth of experience that goes beyond just troubleshooting error messages, ensuring your website operates seamlessly and securely.
At our website development company in Ernakulam, we specialize in delivering tailored solutions to keep your WordPress website running smoothly. Whether it’s resolving access issues, optimizing performance, or enhancing security, our dedicated team ensures that your site remains fully functional and efficient. With our expertise, you can focus on growing your business while we handle the technical complexities.

How to Fix the “Sorry, You Are Not Allowed to Access This Page” Error in WordPress
Restore a Previous Version of Your Site
The most straightforward and often swiftest method to reclaim access to your WordPress dashboard is to revert your site to a previous version. This is especially relevant for a software development company in Kakkanadu, Ernakulam (Kochi), where expert software developers can efficiently handle such tasks. Occasionally, recent updates or modifications can trigger the ‘Sorry, You Are Not Allowed to Access This Page’ error. Reverting your most recent changes should restore access to your site.
Nevertheless, this solution has its drawbacks, as recent modifications may be lost, requiring a thoughtful approach to achieving your goals without encountering the same error. To mitigate risks, consider restoring your backup to a staging site first. This strategic move enables you to experiment with different changes, pinpoint the cause of the problem, and, with the expertise of our software developers, rectify the issue seamlessly. Trust us to navigate through such challenges and ensure the optimal performance of your WordPress site.
Disable All of Your Plugins
One common reason for the ‘Sorry, you are not allowed to access this page’ message is a recent plugin addition or update. If you suspect a plugin is causing the issue, the best way to resolve it is by disabling your plugins one by one.
Here’s how it works:
- Disable a plugin.
- Check if the error message disappears.
- If the message goes away after disabling a specific plugin, you’ve identified the problem.
- Now, you can address the issue with that particular plugin or choose to go without it if it’s not essential for your site.
If you’re completely locked out of your dashboard, you’ll need to use SFTP via a tool like FileZilla. After connecting, go to the ‘wp-content’ directory and locate the ‘plugins’ sub-directory.

Inside this folder, rename the plugin you added or updated most recently to something like ‘plugin-name_old.’ Then, return to your site and check if the error is gone. If it’s still there, change the plugin’s name back and repeat this process with the next plugin.
Activate a Default Theme
Another reason for this error could be a recent theme update or installation. To fix it, try activating a standard WordPress theme like Twenty Twenty or Twenty Nineteen.
If you can’t access your admin area, you’ll have to use FTP once more. Connect to your server using FileZilla, and then go to ‘wp-content’ > ‘themes’.

The remaining steps are quite similar to what we did earlier for disabling plugins.
Rename the folder for the theme that’s currently active. After that, go back to your site and log in. You’ll likely see a message saying the active theme is broken, and a default theme has been applied instead.
Now, you can work on fixing the theme issue. Your site should be accessible, even though it might not look exactly how you want it with the default theme.
Ensure You Have Administrator Access
Another issue could be that your user role was accidentally changed, and you’re not considered an Administrator anymore. This can happen, especially with multisite setups. To check if this is the problem, you’ll have to use phpMyAdmin and find the ‘wp_users’ table.

Locate your username and remember your ID. After that, go to the ‘wp_usermeta’ table and look for the row labeled ‘wp_capabilities’:

If you are an Administrator, the value in this row will be: a:1:{s:13:”administrator”;s:1:”1″;}
If the ‘wp_usermeta’ table shows something different, you can click on the ‘Edit’ link and modify it. Another option is to create a completely new Administrator account using phpMyAdmin. To do this, go back to the ‘wp_users’ table and click on the ‘Insert’ tab at the top of the table:

After that, enter your new user details into the provided fields. When you’re finished, click the ‘Go’ button, and your new user will be added to the table. Now, remember the ID for this new account and go back to the ‘wp_usermeta’ table.
Click on ‘Insert’ again, and in the new fields that appear, enter the following information:
- Unmeta_id: Leave this field blank; it will be filled in automatically for you.
- User_id: Use the ID from the WP Users table.
- Meta_key: Set this value as “wp_capabilities”.
- Meta_value: Add the line mentioned above.
Now, you can use your new login details to access your WordPress admin area. If you want, you can either delete your old account or switch its user role back to Administrator in the dashboard and then delete the new one.
Review Your Error Log to Identify the Issue
When tackling any issue on your website, a valuable strategy is to delve into your server’s error log. This insightful review could unveil compatibility concerns with plugins or themes, database errors, or file-related issues contributing to the ‘Sorry, you are not allowed to access this page’ message. As expert software developers based in Kakkanadu, Ernakulam (Kochi), we excel in deciphering these logs and implementing precise solutions for a seamless user experience. Trust us to navigate the intricacies and optimize your website’s performance effectively.
Make sure that your database prefix is accurate.
If the prefix in your website’s files doesn’t match the one in phpMyAdmin, you might encounter the ‘Sorry, you are not allowed to access this page’ message. This can happen when you move your site, like from a development staging site to a live server. To check for differences, open your wp-config.php file.
To do this, use SFTP as we explained in earlier solutions. When you’re in your wp-config.php file, find the prefix for your database (usually it’s ‘wp_’):

After that, log in to phpMyAdmin and check the prefixes for your database’s tables. These prefixes should be the same as the ones mentioned in your wp-config.php file, as shown in the image below:

If the prefixes in your wp-config.php file don’t match the ones in phpMyAdmin, you should edit them in your wp-config.php file to make them match.
Check for any alterations in your wp-config.php file.
Update to the newest PHP version available.
If your WordPress site is using an older version of PHP, it could be causing issues. Upgrading to a newer version not only might fix the problem but also enhances your site’s security and performance. Before you start the upgrade, make sure to create a backup of your site. You can do this manually or through your MyKinsta dashboard, even if you can’t access your admin area. After creating the backup, it’s a good idea to test if your site is compatible with the latest PHP version. You can do this using a WordPress staging site. If everything looks good, proceed with the update. Kinsta customers can easily update PHP through the MyKinsta dashboard by navigating to their site, then selecting Tools > PHP Engine > Modify, and choosing the latest version from the drop-down menu:

If you use a different hosting company, you might be able to do something similar through your own control panel. It’s a good idea to get in touch with your web hosting support to learn more.
Evaluate Your File Permissions
It’s also possible that someone has changed your site’s file permissions, and that’s why WordPress doesn’t allow you to access certain parts of your site, even if you’re an Administrator. To check your site’s file permissions, you’ll need to use SFTP to connect to your server. After you’ve logged in, go to the public_html directory and select wp-admin, wp-content, and wp-includes in bulk. Right-click on these folders and select ‘File Permissions’:

In the window that appears, ensure these settings are chosen:
- Numeric Value is set to 755.
- Recurse into subdirectories is checked.
Apply to directories only is selected. Click ‘OK’ when you’ve made these changes. Afterward, select all the other files in the public_html folder, right-click, and choose ‘File Permissions’ again:

Now, in the permissions window, configure the options like this:
- Numeric Value should be set to 644.
- Recurse into subdirectories should remain checked.
- Apply to files only should be selected. After doing this, check your site again to see if it fixes the issue, and the “Sorry, you are not allowed to access this page” message is no longer there.
Create a New .htaccess File
If the previous methods haven’t resolved the issue, you might have to reset your .htaccess file. Here’s how:
- Use FTP to access your public_html folder. You should find your .htaccess file there. If you can’t see it, follow the instructions in FileZilla to display hidden files.
- Rename your existing .htaccess file, similar to how we renamed plugin and theme files in earlier steps. You can use a name like .htaccess_original or .htaccess_backup.
- 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 . /index.php [L]
#END WordPress
Change the name of this file to .htaccess and upload it to your server. If the .htaccess file was causing the ‘Sorry, you are not allowed to access this page’ error, this should resolve the issue.
Reset Your WordPress Site
Confirming Your WordPress User Role
If you can log in to the WordPress dashboard but can’t access certain pages, it’s possible that your WordPress user role has been modified, and you no longer have admin privileges. To check your user role, go to the Users » All Users page in your WordPress dashboard and check the ‘Role’ column.

If you can’t access the Users page, it means you’re not an administrator. If your administrator account was accidentally deleted or your user role was changed, you can create a new admin user using phpMyAdmin.
Revert Your Site to the Pre-Error State
When troubleshooting any issue, it’s important to think about the recent changes you made to your website. These changes could include updating WordPress, moving your site, or making significant PHP adjustments. Additionally, consider the last plugin or theme you installed or updated.
If you’re confident about the last change that triggered the problem, a straightforward solution is to undo it. This might involve removing the theme or plugin you suspect or using a tool like WP Rollback to return to a previous version. If you have a backup of your site from before the issue started, you can also restore it to that point.

If you’re using Hostinger hosting, you’re in luck because all hosting plans come with automatic backups. You can easily get a backup of your website files or MySQL databases by going to the ‘Files’ section in the control panel and then clicking on ‘Backups.
If you’re not certain which change led to the ‘Sorry, you are not allowed to access this page’ error, having a list of potential causes can be helpful. Let’s move on to the next method.
Activate WP_DEBUG to See a List of Errors
To see PHP errors that might be causing issues on your site, you need to activate the WP_DEBUG tool. Here’s how: open your wp-config.php file and add the following line of code (if it’s not there already):
define( ‘WP_DEBUG’, true );
After adding that line, you can view error messages generated by WordPress on your site’s pages. By reading these messages, you might find out what’s causing the ‘Sorry, you are not allowed to access this page’ error.
Additionally, with WP_DEBUG activated, you can check the debug.log file in the wp-content folder to see all error entries listed in one place, which makes it easier to identify the problem.
Check Your Error Log
Get Alerts About Plugin Security
It’s possible that the error you’re facing could be due to a hack or some kind of attack. If you have a security plugin like Wordfence Security installed, it may send email alerts when it detects suspicious activity. Be sure to check your email inboxes, including your spam folder, for any notifications that match the time when the error started.
If you haven’t resolved this yet, there are great plugins available to help you track all the actions on your WordPress site. A good one is WP Security Audit Log

.
With this plugin, you can monitor various activities in WordPress, including changes to the core system, settings adjustments, updates to user profiles, modifications to the database, and more. This tool can be valuable for identifying the main reason behind any ‘Sorry, you are not allowed to access this page’ errors.
Refresh website
The issue you encountered might be transient and self-resolving. Attempt reloading the website to check if access to the page is restored. Give it a pause of 2-3 minutes before refreshing the page. If the problem persists, our team of expert software developers in Kakkanadu, Ernakulam ( Kochi ), is equipped to delve into the intricacies, ensuring a swift and effective resolution for your WordPress site.
Try different browser & clear cache
Explore the option of accessing the URL through an alternate web browser, be it Safari, Firefox, Opera Mini, Microsoft Edge, or others. If the site loads correctly in a different browser, it indicates that your current browser may be displaying a cached version of the website. For a quick resolution of the ‘Sorry, You Are Not Allowed to Access This Page’ error, consider clearing your browser’s cache. Follow our step-by-step guide for comprehensive instructions on how to perform this essential task. Our team of expert software developers in Kakkanadu, Ernakulam ( Kochi ), understands the nuances of web optimization, ensuring a seamless user experience on your WordPress site.
How We Can Support You?
With our roots deeply embedded in Kakkanadu, Ernakulam (Kochi), boasting over 12 years of expertise, we stand out as expert software developers. As a prominent force in the IT industry, we provide advanced and reliable services. Whether you’re embarking on a new project, seeking assistance with existing systems, or requiring expert IT consultation, we serve as your dedicated collaborators. Our commitment extends beyond development; we’re your partners in progress, tailoring solutions to align with your unique objectives. Contact us for all IT needs, including Website Development, Software Development, Mobile App Development, and expert consultation. Let’s together unlock technology’s potential for greater heights.
As a leading WordPress development company in Ernakulam, we specialize in creating highly functional, responsive, and visually appealing websites that drive engagement and business growth. Our team of skilled developers ensures seamless WordPress solutions, from custom theme development to plugin integration, tailored to meet your unique requirements. Whether you need an e-commerce platform, corporate website, or a dynamic blog, we deliver top-notch WordPress solutions with a focus on performance, security, and scalability.
Frequently asked questions
Dieutek Developments is located in Kakkanadu, Ernakulam (Kochi), with over a decade of experience in delivering high-quality IT solutions.
Dieutek Developments provides a comprehensive range of IT services, including custom software development, website redesign,website development, ecommerce store development, web and mobile app development, and digital marketing.
Yes, Dieutek Developments specializes in custom software development, utilizing various technologies such as WordPress, PHP-based frameworks like Laravel and Zend, and JavaScript frameworks like React and Node.js to create robust and scalable web applications.
Certainly, Dieutek Developments offers concept-to-completion website redesign,website development, and website redesign services to cater to clients’ specific needs.
Dieutek Developments excels in building ecommerce stores, providing customization options and expertise in integrating various platforms and tools, along with payment gateway integration both domestically and internationally.
Yes, Dieutek Developments offers mobile app development, services for Android, iOS, Flutter, and hybrid platforms.
Absolutely, Dieutek Developments offers IT consultation services to assist clients in Kakkanadu, Ernakulam (Kochi), in aligning their IT strategies with their business goals.
Dieutek Developments has expertise in various industries, including Healthcare, Retail, E-commerce, Restaurants, Church, Education, NGO, Travel & Tourism, and Entertainment, providing tailored IT solutions for each sector.
Dieutek Developments boasts a team of 35+ professionals with over 13 years of experience in the IT industry, based in Kakkanadu, Ernakulam (Kochi).
To get in touch with Dieutek Developments for sales and business development queries, you can contact us at +91 7012287156.
Conclusion
In this comprehensive guide, we delve into the common yet perplexing “Sorry, You Are Not Allowed to Access This Page” error encountered in WordPress. Offering a range of practical solutions, from basic browser refreshes and cache clearing to more intricate troubleshooting methods, our guide is designed to empower users in resolving this issue effectively. Emphasizing the importance of pinpointing the specific cause of the error, we provide step-by-step instructions tailored for WordPress users seeking resolution. As a Expert software developers based in Kakkanadu, Ernakulam (Kochi), our commitment to excellence shines through in this guide, showcasing our expertise in IT services. Trust us to not just address the error but to provide valuable insights into enhancing your overall WordPress experience.


