• Resolved Scott Paterson

    (@scottpaterson)


    I recently installed WordFence.

    When I’m logged in as admin (I’m also the only admin on the site). I’m getting “Sorry, you are not allowed to access this page.” on some pages but not others.

    On these page I get the error: Manage Firewall, Tools, Manage Scan, and Help pages.

    I do not get the error on: Global Options or the main Dashboard page.

    I do use a Roles editor on my site, but I just checked and the admin has access to every single possible role.

    Any ideas? Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support wfpeter

    (@wfpeter)

    Hi @scottpaterson, thanks for getting in touch!

    I think the first thing to try would be disabling all plugins except for Wordfence, and using a default theme such as Twenty Twenty-One. If the issue subsides, enable your plugins and theme one-by-one until it starts reoccurring and report back to me when it starts up again. Try visiting the page URL directly without clicking a link also, by copying the link URL when right-clicking it and see if that has any effect.

    An mu-plugin as seen in Plugins > Installed Plugins > Must-Use whether manually added, installed as part of another plugin, or installed by the host could also cause this. You could try disabling those if you haven’t already. Another possibility we’ve seen is a multisite that isn’t quite set up correctly, causing the wrong link to be generated.

    The message “Sorry, you are not allowed to access this page”, as you know from the roles discussion in your original message, is a WordPress default message when you don’t have the right user level to access the page. However, the same role/level usually controls displaying the menu item in the first place!

    Let me know how those tests go and I’ll be happy to assist further.

    Peter.

    Thread Starter Scott Paterson

    (@scottpaterson)

    Thank you for the reply, Peter.

    The problem seems to have fixed itself when Wordfence finished being in learning mode. Nothing else on my site changed.

    This may be a bug in the code, but I can’t tell you that for sure.

    Anyways, thanks for the help!
    Scott

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Sorry, you are not allowed to access this page.’ is closed to new replies.