Skip to content
Grav 2.0 is officially stable. Read the announcement →
Support

Content length limit i admin page?

admin

Solved by pamtbaau View solution

Started by Marcel 1 week ago · 4 replies · 201 views
1 week ago

A friend of mine that I helped setting up Grav seems to hit a problem with page lengths. He has created a very large markdown file size 70kb (that's about 22 pages of text). I had converted that from his older CMS and uploaded it via FTP. That works and the page shows nicely on the page. But he can't edit it as it won't save with the error that the content is not correct. I tested and found out if I remove some text until the file is 65706 bytes., it does save fine. But if I type one character more, the error shows up. This happens both on the hosting server as with grav server on my laptop. So it is not a limit on the hosting provider.
Question: Does Grav have a hard limit for the content length? If so, can I change that limit? If not, is this a bug or should there be something in my config?

6 days ago

Yes, I agree on the page sizes being questionable, but these users are historians and there is much aversity against splitting things up. Having said that, Wikipedia seems to get away with lare text content per page as well, so it can work.

Thanks for the link. I bumped the issue. Hope that this time there will be an answer.

BTW, the workaround "B) Go into the admin panel, create your page, switch to expert mode, and save it, as it isn't affected by the restriction and the error does not appear" is not working anymore.

last edited 08/30/26 by Marcel
6 days ago

Okay, the commit you posted in the pull request helped me to solve this as it gave me insight how it works. You can actually change the limit in the blueprints. In my doc.yml blueprint I can add the following:

YAML
            content:
              type: textarea
              label: Inhoud
              rows: 20
              validate:
                max: 200000
last edited 08/30/26 by pamtbaau
5 days ago Solution

Page size has been lifted in upcoming release of 1.7.53.3 and 2.0.22. See issue

Suggested topics

Topic Participants Replies Views Activity
Support · by Roger Parkinson, 6 days ago
3 193 23 hours ago
Support · by gravinator, 2 days ago
2 115 1 day ago
Support · by cvgrenoble, 1 week ago
3 182 1 week ago
Support · by Paul Hodges, 1 month ago
19 610 3 weeks ago
Support · by Lauw, 3 weeks ago
2 213 3 weeks ago