Cannot save chunk or a template with script tag

Hello,
I am quite new to MODX but currently taking care of the website and in urgent need of help. The head chunk used to have script tags and as far as I understand it used to work. Now it doesn’t. I get an error of
Uncaught TypeError: this.mask.addClass is not a function
Unfortunately I need to solve this fast. I already tried using

SecFilterEngine Off
SecFilterScanPOST Off

in .htaccess file but it just doesn’t work. I there a quick fix for this problem? I am sorry if this question was already asked and I just didn’t see and answer that would help, but I am running out of time and need advice.
Thank you!

This sounds like a mod_security issue. If you post up some info about your version and server / environment, you might get help more quickly

The version is MODX Revolution 2.6.5-pl and I don’t know the server tbh. I have access only to the manager console.

I think the server info will be important to know, specifically which version of PHP… Also, is your manager account a sudo user account? This sounds like it will be tough to troubleshoot without complete admin rights.

So apparently it runs on NGINX. I don’t have sudo user account. Reached MODX support and was told that there is no mod_security since there is is an Apache module. Wondering if permission / security reasons are still the issue, since it’s the most common explanation for ppl with similar problems like mine.

Is this site on MODX Cloud? If so Cloud support should be able to help you.

Luckily it is :slight_smile: Thank you for replying and helping!