Error every time I try to save CMS Panel
#5984 (In Topic #1427)
Wondering if you can help…
I am trying to setup a new site, and every time I try to edit and then save a panel on the portal (or anywhere) I push "save" and then I get "File not found" My server goes into a panic mode and has to reset itself… and nothing is saved…
I logs show an error but I have no idea??? (and I a little bit dubious about post the error of the log here in public view as it shows full paths and stuff...
The first log error shows a 404... then the 2nd error when the server is resetting there is no error code?
This is a little tricky to respond to, because of the server 'panic mode'. I can't really speak to that, I'd need to be logged in as root on the server monitoring exactly what is happening with respect to CPU, memory usage, I/O load, etc. For now I am going to put this to one side and assume it's not Composr because it shouldn't be possible for Composr to take down a server except in extreme circumstances, there are per-request limits on execution time and memory usage.
Now, onto the 404 errors…
Likely this is actually ModSecurity. ModSecurity gives out various different status codes depending on how it is configured. Sometimes a 404 so to the user it looks like it's just an unexpected server error, rather than catching them as a 'hacker'. It is picking up on the HTML code being submitted within the panel (even if you didn't enter any manually, just using WYSIWYG would produce HTML code).
We do have a tutorial on ModSecurity:
Composr Supplementary: ModSecurity - Composr
We have workarounds to ModSecurity, and upon testing I can see it's not coded correctly for the Zone Editor.
I've fixed it here:
Fix ModSecurity workaround for zone editor · ocproducts/composr@f5f2abc · GitHub
- If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
- If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
- If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
- If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
1 guest and 0 members have just viewed this.