Hi,
I am trying to create a ModX site on a secure server (https). I have access to the modx dashboard and can go into the elements section and add new TVs, Snippets, and Chunks. Problem is, the secure server won't save Chunks in html that are more that forty or so chars long. When I try to save anything longer, I get an error of "You don't have permission to access /modx/connectors/element/chunk.php". Has anyone else encountered this error/know how to solve it? Thanks!
-
MODX Staff
- 10,725 Posts
Check for mod_security and/or suhosin restrictions, or web server/SSL configuration that restricts the size of the POST request body.
I checked phpinfo() via System Settings in ModX, and found that mod_security2 is enabled. I googled it, but couldn't come up with anything specific about restricting ">" signs (see above post). Didn't see anything about suhosin. We don't own this server, so disabling modules in PHP might be restricted. Is it likely that mod_security2 is the problem, and if so what would we have to do to remedy it?
Thanks
If you ask, the host might disable that mod_security rule for you (or not). I think that's the only solution short of escaping and unescaping them (or entifying and de-entifying them) or switching hosts.
Thanks OpenGeek and Bob, I'm in the process of having the host fix the problem.