getgrav / grav-plugin-admin

Grav Admin Plugin
http://getgrav.org
MIT License
355 stars 227 forks source link

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

Open spamhater-grav opened 2 years ago

spamhater-grav commented 2 years ago

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 Thanks

Sogl commented 2 years ago

Same problem for me too. I also have save working only in Expert mode.

I couldn't figure out how to get an updated slug and found a workaround/hack:

  1. Go into Normal mode, change what we need (slug etc)
  2. Switch to the Expert and save.
  3. It works!
Sogl commented 2 years ago

Now the new problem.

My content editors ACL: image

Even if I give full access to the pages, there is no Expert mode button. The hack above doesn't help.

UPDATE

Ok, when I give Admin Super right to the user, Expert button appeared. But now in the left menu the user sees (and has access to) the License Manager plugin: image The content editor doesn't need to see this. How to remove access?

@rhukster Please.