-
- 110 Posts
I have a new install of 2.6.1 that is misbehaving. I can create a new resource and save it, but if I change the template it uses and then save it the save process hangs with an ever-cycling progress bar that I can only stop by refreshing the page, which then reverts to the original template. Any ideas as to what might be causing this behaviour or a suggestion for a fix would be much appreciated.
Thanks - Markz
-
- 932 Posts
From my experience its an issue on the server with mod_security settings. Loosen the settings and things should be ok.
-
- 110 Posts
Thank you for your reply, and apologies for my late reply.
Unfortunately I have no idea how to go about that, can you point me in the right direction?
Many thanks - Markz.
-
- 571 Posts
If your website is on a shared hosting account then you would
probably need to contact your service provider and ask them if mod_security could be a factor and whether they can disable it for your site.
https://en.wikipedia.org/wiki/ModSecurity
-
- 24,544 Posts
The odds are that there's something in the template that mod_security doesn't like.
If you create a new template with just bare-bones HTML code and you can save it, it's almost certainly a mod_security issue.
<html>
<head>
</head>
<body>
<h3>Hello World</h3>
</body>
</html>
You can play around with removing parts of the troublesome template to try to find the offending part.
It's less likely, but sometimes a mismatch between the PHP date.timezone setting and the MODX date_timezone System Setting can cause trouble with saving.
-
- 110 Posts
Thank you for the replies.
I can create a template, I just can't change the template a resource uses. When I do the save progress bar just loops continuously, the only way out is to refresh the page which returns the template to the previous one. I have also found that richtext tv's content only shows up after refreshing a resource; text and image tv's content appears without a problem. Curious.
-
- 571 Posts
Do you have any plugins that check the syntax of code on your pages? Sometimes these have caused problems for me.
Did you try Bobs suggestion of creating a very simple template and then switching one of your resources to that template?
Do you have TinyMCE installed? This has also caused problems for me in the past.
If you turn off 'rich text' for a page can you then switch its template?
-
- 1,572 Posts
Can you change the template by right clicking on the page in the tree and selecting "quick Update" ?