Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
David Ehmer Posted September 18, 2023 Posted September 18, 2023 I'm trying to edit a theme file that contain my primary navigation links. Customisation > Appearance > Themes > Default > Edit HTML & CSS > Global Templates > globalTemplate See attached screen shot. It will not allow me to save the edit. I haven't modified any files or other configuration in the system since this file was last edited. Any ideas about how to resolved this would be welcome. Thank you David
Randy Calvert Posted September 19, 2023 Posted September 19, 2023 What exactly are you changing? You might try to revert the code back to default and then make sure your change contains valid html and markup.
Marc Posted September 19, 2023 Posted September 19, 2023 Also please check mod_security. The most common cause of this is it being blocked by the server, and mod_security tends to be the biggest culprit
David Ehmer Posted September 21, 2023 Author Posted September 21, 2023 On 9/19/2023 at 10:13 AM, Randy Calvert said: What exactly are you changing? You might try to revert the code back to default and then make sure your change contains valid html and markup. I'm just trying to add another link to the navigation. Nothing much different to what the file already contains. Just another list item with a link. On 9/19/2023 at 5:06 PM, Marc Stridgen said: Also please check mod_security. The most common cause of this is it being blocked by the server, and mod_security tends to be the biggest culprit I'm not sure what mod_security is. Pretty new to this software. Where can I check that and what exactly would I be checking for. Thanks
teraßyte Posted September 21, 2023 Posted September 21, 2023 What happens if you try to save the template without making any changes to it? If there's no error, the code you added is broken somehow. If you still get an error, it might be mod_security as Marc mentioned above. It's a server module, you should ask your hosting about it.
Dll Posted September 22, 2023 Posted September 22, 2023 It can also be cloudflare which blocks this - if you have it, whitelist your own IP. Daniel F 1
David Ehmer Posted September 25, 2023 Author Posted September 25, 2023 On 9/22/2023 at 9:28 AM, teraßyte said: What happens if you try to save the template without making any changes to it? If there's no error, the code you added is broken somehow. If you still get an error, it might be mod_security as Marc mentioned above. It's a server module, you should ask your hosting about it. Trying to save without making a change results in the same error. I've contacted my host about the mod_security setting. Hopefully that will help. Thanks
Marc Posted September 25, 2023 Posted September 25, 2023 If its happening without changing any changed, it is indeed very likely mod_security, and is certainly something blocking it server side
David Ehmer Posted September 25, 2023 Author Posted September 25, 2023 My host has advised that mod_security isn't actually enabled at all on the server. He also checked the site / hosting config, and the hosting is configured with twice the standard site memory allocation at 512MB, so he doesn't think memory would be an issue. He also checked the error logs, but the only thing which seems related is the following as a permissions issue of some kind, Error 403; POST /forum/admin/?app=core&module=customization&controller=themes&id=1&do=saveTemplate HTTP/2 He wondered if that correlated with the page I'm trying to save? He also said "the file system permissions seem correct, but then this isn't a WordPress site so the forum site may have different permission requirements at the file system level..." I'm unsure what to make of all of that. Definately outside my knowledge/experience. Any further thoughts most welcome.
Marc Posted September 26, 2023 Posted September 26, 2023 Yes that location is what is called when the template is saved. As mentioned, something server side is blocking its ability to save, hence the 403
Recommended Posts