Page 1 of 1

Global settings - maintenance mode fails on submit

Posted: Mon Jun 06, 2022 7:56 pm
by SteveO
Hello

Version 2.2.16

I am getting error 403 when I click submit on the maintenance mode tab.

I looked at the site prefs table and noted that sitedownexcludes and sitedownexcludeadmins were not in the table, I added those and set enablesitedownmessage to 1, now maintenance mode is on but visible to admin, but it will still not save correctly on submit.

Any permissions I can check, can I get some sort of debug output?

Re: Global settings - maintenance mode fails on submit

Posted: Tue Jun 07, 2022 1:06 pm
by DIGI3
You will need to disable mod_security on your server, or ask your host to whitelist the rule affecting this.

Re: Global settings - maintenance mode fails on submit

Posted: Tue Jun 07, 2022 7:28 pm
by SteveO
Would mod security have caused the missing data in the site prefs table?

Thanks for your help

Re: Global settings - maintenance mode fails on submit

Posted: Tue Jun 07, 2022 9:08 pm
by DIGI3
Not sure, it could be from an incomplete submission due to modsec, or it could be from something else. Modsec is definitely the cause of the 403 though.