Hi @hakimianweb, thanks for getting in touch!
The message “Sorry, you are not allowed to access this page” as you probably know 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.
Something else is likely breaking the URL so it’s not going to the right page. For admins on a single site, it should point to /wp-admin/admin.php?page=WFLS
as you’re seeing. Certain plugins or case insensitive URLs have caused this error in the past, for example, if I change my URL to page=wfls
in lowercase I can reproduce the error you’re seeing. However, there are other pages containing capitals in Wordfence so I’d possibly expect this to occur for more pages if that was the issue.
I think the first thing to try would be disabling all plugins except for Wordfence, and using a default theme such as Twenty Twenty-Three. 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!
A 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.
Let me know what you find out!
Peter.