Jump to content

Recommended Posts

Posted

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

Could contain: File, Webpage, Page, Text, Business Card, Paper

Posted

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

Posted
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

Posted

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.
Posted
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

Posted

If its happening without changing any changed, it is indeed very likely mod_security, and is certainly something blocking it server side

Posted

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. 

Posted

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...