ModX 2.8.7 not saving content with certain labels

Hello everyone, this is a simple question but have been a big trouble.

There is this website that is not saving anything that contain <script or <?php labels.
That means plugins, snippets or chunks are not being saved unless the labels are removed, if there is not label it will save and display the SUCCESS! message otherwise just try to save but no message, no errors of any kind just not saving anything.

Thinking the problem might be the ModSecurity in the current hosting the site was moved into a shared hosting where there is only ModX sites working fine but the problem persist.

The user I’m using is an administrator (sudo user) so I don’t think it’s a permissions problem, cheking admin all permsissions are checked for administrators.

Can’t see any errors on ModX errors console or cpanel errors.

I disabled TiniMCE plugin from phpmyadmin (because can’t from manager for the same reason) but nothing.

Reinstalled manually the site version that is 2.8.7 but the problem still there.

So any ideas please?
Thanks!

Yes, a firewall blocking the requests is the most likely explanation.


Open the developer tools in the browser, go to the “Network” tab, then try to save a snippet/chunk that won’t save. A new AJAX-request is created (with for example the paramater action = element/snippet/update for a snippet).
What is the HTTP response status codes of this request?
What is the actual response of this request?

1 Like

@halftrainedharry
Mate thank you very much, problem solved.
After all this mess, your guide was the key.
The problem was cloudflare that was in between the connection blocking stuff like crazy.

Thank you very much!