Cannot save the document - error: this.mask.addClass is not a function

I had a problem with saving documents in MODX Revolution 2.7.0-pl, an error appeared in the DevTools console in Chrome: Uncaught TypeError: this.mask.addClass is not a function

It turned out that there was a problem with mod_security. You can disable it in the hosting settings (if there are such options) or in .htaccess add:

<IfModule mod_security.c>
  SecFilterEngine Off
  SecFilterScanPOST Off
</IfModule>
1 Like

modSecurity is a known frequent problem combined with MODX. I always turn it off for all my sites. Thanks for the .htaccess code, for those without access to modSecurity in their hosting setup.