Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

Error “Sorry, you are not allowed to access this page”

First thing you need to do is take a backup of your current state. Then we start debugging.

A lot of things could cause this error so we have to first determine the root cause. To do this go to your wp-admin folder and in the wp-config.php file add the following line of code:

define( ‘WP_DEBUG’, true );

This will allow you to see the error that is on each page. Be sure to remove the code when you’re done.

When we know the error or the cause of the error it will be easier to solve. Some simple things you can start with is turning off all plugins, reverting to default theme, etc.

Related Posts:

  1. Unable to Access WP Admin or Login buttons after Migration
  2. Wp-Admin FTPS Connection Error unlike Filezilla
  3. WordPress “Hide WP” Gives Me Error After Admin Login [closed]
  4. How to Change the Default Home Page for the WordPress Dashboard?
  5. Disable Media Uploads to non Admin Users
  6. Cannot access admin panel
  7. Showing WP_Error message with admin_notice action hook
  8. How to let authors revise other authors drafts, but keep them from publishing?
  9. How to fix admin stylesheet muck-up? [closed]
  10. Daily notices of failed login attempts for non-existent admin user
  11. Pagination Error on Admin (You do not have sufficient permissions)
  12. How do I fix “You are not allowed to edit this item.” for Admins on existing posts?
  13. Setting Login with User Name and Password default option for Jetpack Admin Login
  14. Page only shows when user is logged in (even with visibility set to public)
  15. I keep getting logged out in Firefox
  16. Error thrown. Cannot create references to/from string offsets
  17. WordPress stripping html and script tags from some admin users on save
  18. How to determine if an admin is logged in outside the loop
  19. Don’t attribute content to admin users
  20. Unable to login, old site with previous developer gone
  21. Apply permissions per post
  22. Using shared SSL for login/admin
  23. wp-login behind nginx reverse-proxy inaccessible — bad redirect?
  24. Can’t access dashboard as administrator, login as any other level works though
  25. Admin cannot publish
  26. WordPress Admin Login Redirect Problem
  27. using rewrites to secure login page
  28. Client system for media review?
  29. WordPress administration Over SSL – To Force SSL Logins and SSL Admin Access
  30. Keep Logged in Users out of Admin Panel
  31. Unable to get to the admin panel
  32. I can’t access the login panel on my offline website
  33. Admin login not working
  34. remove menus for a specific role?
  35. Can’t login to my admin area
  36. How to disable Media Library uploads for non-Admin users?
  37. Does deleting the table users prevent all logins?
  38. Page can’t hand request – HTTP ERROR 500 – when updating something
  39. Locked out of WordPress website from wrong amount of login attempts
  40. Admin user lacks admin permissions after hack and can’t reinstate
  41. current_user_can(‘administrator’) not working in custom login
  42. Send admin to a different login than users?
  43. Help! I changed the domain and now I can’t log in via admin online
  44. solution to prevent specific admins from altering site contents
  45. Prevent users in the backend from seeing WP/Plugin notifications and update annoucements?
  46. Want to know who is login Admin/User
  47. Remove iPhone detection on login page
  48. Any known plugins for master admin login to edit all on front end?
  49. WordPress Admin Doesnt work
  50. Login to admin by frontend form?
  51. I can’t access login page
  52. Admin Access for specific page(s)
  53. Admins loggin in to our wordpress site default to the admin page
  54. WordPress login not working
  55. Login to Admin Dashboard Problem
  56. WordPress login process is hanging
  57. Enqueue script throws error in console
  58. Scripts are not called until I login from wordpress backend
  59. Disable wp-admin log on lightbox overlay
  60. blank white page in admin, white space hunting?
  61. How to cancel redirection to admin side
  62. My Account Lost Administrator permission
  63. Can’t access my wp admin: captcha images invisible, gives me error message
  64. 2FA for admin login only, is it doable?
  65. You require permission from “Myself” to delete folder – how to fix
  66. What are the standard admin CSS id/class tags?
  67. Admin Ajax is returning 0
  68. Add custom column to Users admin panel
  69. wp_enqueue_script was called incorrectly
  70. wp_verify_nonce vs check_admin_referer
  71. Add a Separator to the Admin Menu?
  72. How to determine whether we are in add New page/post/CPT or in edit page/post/CPT in wordpress admin?
  73. how to know if admin is in edit page or post [duplicate]
  74. Modal window from within WordPress admin
  75. Where in WP can I check history or log of updates of plugins etc?
  76. Adding a custom admin page
  77. How does admin-ajax.php work?
  78. How to remove entire admin menu?
  79. How do I remove dashboard access from specific user roles?
  80. How can I speed up my WP admin section?
  81. How to pass parameters to admin_notices?
  82. Admin: very slow edit page caused by core meta query
  83. if admin is logged in
  84. Search posts by ID in admin
  85. Setting admin edit panels & metaboxes positions and visibility for ALL users and admins
  86. Find out which moderator approved comment?
  87. The website cannot display the page
  88. How To Remove WordPress Version From The Admin Footer
  89. Sort pages in loop by admin’s page attributes order field?
  90. What are the best practices for updating?
  91. Edit “thank you for creating with WordPress” in version 3.3.1
  92. Hide other users’ posts in admin panel
  93. Update post counts (published, draft, unattached) in admin interface
  94. ‘Password field is empty’ error when using autofill in Chrome
  95. Set Default Admin Colour For All Users
  96. Editor Styles and Typekit
  97. WordPress admin stylesheet
  98. This CSS Stuffing Works, But Is This A Good Practice?
  99. Is it possible to create a WordPress tour? V3.3.1
  100. Securing Admin Accounts – Username Discovery
Categories admin Tags admin, errors, login, permissions
Remove tag from all posts when publishing new post
Admin menu hilighting wrong item for CPT

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress