Use WP_DEBUG to Get a List of Errors
To get a readout of what PHP errors might be causing your site’s problems, you’ll need to turn on the WP_DEBUG tool. To do this, open up your wp-config.php file and add the following line of code (if it is not already present):
define( ‘WP_DEBUG’, true );
Once you’ve done that, you will be able to see WordPress-generated debug messages on your site’s individual pages. By reading through these, you may be able to pinpoint the cause of the “Sorry, you are not allowed to access this page” error.
With WP_DEBUG turned on, you can also look at the generated entries located in wp-contents/debug.log. That way, all errors will be displayed in one easy-to-find location.
Related Posts:
- Redirect to custom admin menu after plugin activation
- How to redirect non-logged in users to a specific page?
- When I change slug, will WordPress create redirect from the old URL?
- Why am I getting a 301 on a existing post?
- Keeps on redirecting on my development copy
- Password change when the user login first time
- Custom login form redirect to external site
- Clarification on auth_redirect()
- Implementing global redirection (automatic redirect for all pages who had their slug changed)
- Redirect to custom url when registration fails?
- Exclude a path from WordPress using .htaccess redirects (Apache)
- How to redirect url requests to https? [closed]
- Best way to handle redirects
- Redirect to custom URL after registering from a page with registration form
- Stop unwanted WP redirection to new url
- Problem to redirect custom page using htaccess
- WordPress Customizer: custom redirection after closing
- Website redirecting to old domain name
- Hiding WordPress behind IIS redirects
- Redirect guest if he tries to access a specific page
- htaccess 301 redirect http to https doesn’t work
- Site redirecting from http to https [closed]
- Use htaccess to redirect WordPress to static website in a subfolder
- Defining a custom 404 for non-WordPress parts of site
- Redirect homepage ( www.sitename.com ) to the latest post
- Redirect all post into some category to url without category
- Redirect from sub-directory to root – New WordPress 5.2.3 Set up
- How to redirect URL with subfolder to the same URL but without subfolder?
- Site loads very slowly (4-5 minute load time)
- If User is NOT Logged in and Page ID is not 6 – Redirect to Login
- Snippet for own (gr)avatars
- Front end user creation form! How do you keep the user on the same page in event of error?
- 503 Service Unavailable error was encountered
- SSL and www to non-www redirection works only on homepage – WordPress
- How to redirect if a background request is still being executed
- Regex redirect rule for missing part of the path
- Page template that redirects user based on role
- How can i resolve 301 redirection Issue on my website?
- WordPress keeps redirecting subpages without http to https homepage after switch
- Redirect non-existent subpages to second part of url
- https – too many redirects
- How to remove the [L] Flag for WordPress index .php mod_rewrite
- ReDirect subfolder link to another sub-folder and force SSL
- Two WordPress installations: One in root and one in sub directory – no images in subdir installation [closed]
- Redirect user to original url after login?
- User redirect to specific URL after logging in
- A WordPress site with more than one domain name / Parked domains
- Redirect user if they are not logged in
- BuddyPress – Redirects on Login and Logout
- How to redirect a wrong search on my wordpress website to the error 404 page?
- store URL global before we redirect
- Redirect to page for KPI/marketing purpouses
- Will deleting WP’s code in .htaccess cause problems?
- adding GET variables to a header() location in a page template
- Migrating to Tumblr [closed]
- Parked domain redirect
- WordPress CSS/Theme gone after SSL got activated
- How to fix automatic redirects?
- Redirecting DNS without breaking everything
- How to redirect non existent pages/posts in wordpress using htaccess
- redirect doesn’t work while using example code
- How to redirect all page requests to a single “goodbye” homepage? [duplicate]
- Endless Redirects Suddenly Disable Site
- Redirecting home to /wp-login.php?action=register
- How to redirect a child page to its parent page?
- 301 redirect after removing language directories
- wp_login_form() redirect same page
- Redirect user after login to prior page through a wp_login hook
- Redirect *.php to path using web.config file
- How can force redirected to login for two or more pages to view or access
- WordPress not linking correctly with .htaccess redirect to subdirectory
- Auto redirect to different web page
- WordPress installed on a virtual machine and behind a reverse proxy is redirecting to the VM’s IP address
- Redirect HTTP request to HTTPS request
- All new posts serving 301 redirect
- Moving site from HTTP to HTTPS
- Redirect from plugin created page
- Woocommerce login to specific page or referrer
- 301 Redirects when change URL in WordPress database
- How can I redirect to another page with screen already at the bottom of the page?
- How is this URL being redirected?
- Tag archive page not working
- Custom redirects with using SQL
- How to move a https website back to dev and access the admin?
- Why is WordPress redirecting to homepage after GET form submit?
- Redirect after user changes password
- Getting error when trying to redirect WP site to mobile site
- Custom Form Redirects to Post after Submit
- wp_login_form: Redirect to dynamic url according to username
- Plugin redirects URL structure using 301 redirect. Time to disable the plugin?
- URL is redirecting (301) when query string is passed through URL
- Plugin html-on-pages: URL not redirecting
- Redirect URL while building site
- Redirect a WP to another with all URL
- How to disable login and registration pages?
- Forcing header cache control in 404 pages
- Regex for pdf’s – Old .asp Site folder structure to new WordPress Media Folder(s)
- Redirect if a user has not written a post
- Create a custom redirect link that tracks the first visited page and after submitting form goes to first page using formidable forms plugin? [closed]
- WordPress not use site url when redirect 301