getgrav / getgrav/grav-plugin-admin

Limitation of large .md failing to save in admin (unless in expert mode)

Open
#2,308 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
377
Forks
225
Avg merge
11h 51m
Merged PRs (30d)
4

Description

This came from on some one on the discord channel, who had a large default.md page,

If he copies the file to his pages folder on the webserver, then it displays, if he then goes in to admin , and tries to edit in normal settings, it will said invalid frontmatter in content: and not save the file , but if you then go in to expert mode, I was able to copy the whole document and paste in the same default.md , it will save with no error.

unsure why, that is the solution, maybe a limit in normal mode processing ?
Below is the error recorded in normal mode

![image](https://user-images.githubusercontent.com/84087968/180297324-286dda96-9891-4151-8b76-67dcaeb4a0e3.png)
Thanks

Contributor guide

Open the contributing guide

Research direction

Reproduce the failure with a large default.md copied into the pages folder, then compare saving it in the admin's normal and expert modes. Start with the invalid-frontmatter error shown in normal mode; done means the same large document saves successfully without requiring expert mode.

Written by the indexing model from the issue text.

Assessment

Tech stack
markdown, php
Domain
content
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.