• Resolved wmamber

    (@wmamber)


    I cannot access the settings page on my website’s Live environment hosted on Pantheon, I get an error “Sorry, you are not allowed to access this page.”

    I’ve tried updating the plugin to Version 9.3.2, and that still doesn’t fix issue. I am able to access the plugin settings page on the Development environment so this seems to be a conflict with Pantheon’s Live environment only.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @wmamber,

    Usually this error indicates the current user does not have the required capability to access the page.

    The “Sorry, you are not allowed to access this page.” error is actually a WordPress core error message. It’s triggered from line # 380 in the wp-admin/includes/menu.php file (WordPress 6.5.2).

    Interestingly there is a WordPress core action that you can hook into (for eg debugging) right before the error is triggered. It’s the admin_page_access_denied action. This action will allow you to figure out why exactly the WordPress core user_can_access_admin_page() function is returning false.

    +++ To prevent any confusion, I’m not SolidWP +++

    • This reply was modified 7 months, 1 week ago by nlpro.
    Plugin Support chandelierrr

    (@shanedelierrr)

    Hi @wmamber, great to see you!

    In addition to @nlpro’s suggestion on checking if the current user had the required capabilities, it’s also possible that the User Group the user belongs to does not have the “Manage Solid Security” setting enabled or the User Group was not added to the User Groups settings.

    You can try to temporarily disable Solid Security following this?guide. Then, go to?Security > Settings > User Groups?settings and make sure the Manage Solid Security is enabled. If for some reason the current user’s User Group is not there, add it there and configure the roles and settings.?

    After saving the changes, remove the code snippet to re-activate Solid Security and then check if the current user can now access the plugin’s settings page.

    Let us know how it goes!

    Thread Starter wmamber

    (@wmamber)

    @shanedelierrr & @nlpro

    Thanks for your help. The issue was a permissions thing and I was able to gain access. I will mark as resolved.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cannot access settings page’ is closed to new replies.