Open jason-unleashed opened 2 years ago
Please check the logs after the error occures. It should tell what is going wrong.
I checked my Grav logs and there was no corresponding warning or error.
I was able to work around the error but it's not a solution. I found the section of the text that was creating the problem "... retirement target date."
For whatever reason, Grav admin does not like to end a line with "target date." I had to add two spaces to the end of the line and it seems to be ok.
The issue sounds more like a firewall problem (mod_security in Apache or something similar) than an issue in Grav. They have often rules that blindly find words from the responses, like "select ... from ... where" and block every request containing those words in the body.
Please check your apache logs, they should have entries for blocked requests with the rule id.
I'll look for the apache logs.
This issue only happens when using Admin. If I open the file in a text editor there is no problem saving and the page displays correctly. In Admin, once I find the line that's causing problems I can successfully save by adding spaces at the end of the line.
It's happened on at least 3 of my recent blog posts in the last month. I have about 200 total pages that were created in previous versions of Grav over that last 5 years and that never happened before.
Feels like an admin issue.
Yes, it still sounds a lot like mod_security issue. Check if you have it enabled.
I cannot think of any way where the content in the page would cause saving to fail, except maybe if you had some html, javascript, or twig in it (there is some code to check those). Also, I forgot to say that I have tried to save the above markdown file and it works just fine.
I don't know if this is an Admin or Quark template problem but I'm going to start here.
Issue: when creating a new "Item" for my blog through Admin, sometimes upon save I get an "Internal Server Error". I can go back and my changes to the page are gone.
If I edit the "item.md" file directly there is no issue and the page displays correctly from a web browser.
It's not all "item.md" files. Just some.
For example, this markdown does not successfully save in Admin: