Replies: 4
Hi. I’ve been using AIOS for about 3 months on my site with no problems. Recently, I have been trying to update additional CSS I have been using in WordPress > Appearance > Customise. If I make a change and then click publish I get the following error in a new white screen (not pop up) and then I am prompted to login.
You need a higher level of permission.
Sorry, you are not allowed to customise this site.
I am not sure what the reason for this behaviour could be as I am the sole user with full admin privileges. I have not noticed this problem being caused by any updates to WordPress or plugins recently.
I did recently add a line to the functions.php file in the theme to disable WordPress’s scaling of images, as below.
add_filter( 'big_image_size_threshold', '__return_false' );
Could this cause the access problem?
The problem is discussed at the following 2 links:
https://www.hostinger.com/tutorials/fix-sorry-you-are-not-allowed-to-access-this-page-wordpress
I have tried various methodical debugging routines. Here are my conclusions…
- Problem occurs for both WordPress 6.5.5 and 6.6.1.
- Problem occurs even if ALL plugins deactivated (apart from one maintenance mode plugin and AIOS).
- If all plugins deactivated (apart from one maintenance mode plugin) then when AIOS is installed and activated WordPress gives an error “You do not have permission to access this page. Please log in and try again.” … on logging in I see that AIOS has been activated.
So, given that the problem definitely seems to be caused by AIOS, I reinstalled all plugins again as before and tried disabling some AIOS features:
- disable all security settings
- disable basic firewall
With a minimal AIOS installation the problem seems to occur less frequently (i.e. not on every save of the additional CSS) but does still occur. I am not sure if there is something in particular causing the problem, it seems to be random but could be due to problems in the code such as bad syntax (i.e. removing a closing bracket or adding a bad function??)
I have also tried purging cache from the WordPress site and the browser. I have also tried logging in to the WordPress dashboard from a different browser.
The only way I can get rid of the problem is by deactivating AIOS … shame!
Any thoughts?