添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

There are few situations more alarming than being locked out of your own WordPress admin dashboard. If you’ve encountered a message reading “Sorry, you are not allowed to access this page” when trying to log in, you know the feeling first hand.

Fortunately, there are several solutions at your disposal for troubleshooting this error. With a little patience, you can clear up the mistake and get back to managing your WordPress site in no time.

In this post, we’ll dig into the “Sorry, you are not allowed to access this page” error and what causes it to occur. Then we’ll walk you through the many potential solutions to help you find the one that addresses your specific situation.

Let’s jump right in!

Understanding the “Sorry, You Are Not Allowed to Access This Page” Error

Although we’re referring to it as an “error” for the purposes of this post, the “Sorry, you are not allowed to access this page” message in WordPress is meant to be a helpful security measure .

Ultimately, seeing this notification simply means there’s a permissions setting that’s blocking you from a certain area .

This becomes a problem when you’re locked out of a part of your site that you should have permission to enter which, as an Administrator, is anywhere on the backend. When this situation arises, it is often following a recent update to a theme , plugin , or WordPress core .

You may see the “Sorry, you are not allowed to access this page” message for a variety of reasons. It might be that WordPress doesn’t recognize you as an Administrator . In other situations, the information contained in your site’s 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 . Whatever the source, this error may prevent you from accessing the entire admin area or just a portion of it.

Since it’s likely that you will not be able to access key settings via the dashboard, you’ll need to use File Transfer Protocol (FTP) or phpMyAdmin to resolve this issue. Make sure to back up your site and brush up on using these platforms before you dive into the troubleshooting process.

Kinsta provides automatic daily and system generated backups for all plans. Optional hourly backups are also available.

The most frustrating thing about encountering the “Sorry, you are not allowed to access this page” notification is that it can be hard to pin down which of its causes are at play. Fortunately, there are many solutions you can test out to find the root of the problem.