Maximum snippet size

Using Modx 2.8.4, I created a dummy snippet which features approx. 4100 lines of PHP code. Right now, changes to the snippet won’t be saved anymore. I can’t even change it’s name. Is this supposed to happen? Once I drastically reduce it’s size (lines of code), everything seems to turn back to normal.

Is there a setting or commonly known maximum size for snippets?

I don’t think there’s a limitation (other than the size of the database field, which is mediumtext ~ 16 MB).

It’s more likely that a firewall on the server prevents the data from being processed, because it detects some “suspicious” code in your snippet.