getgrav / getgrav/grav-plugin-admin
Saving in site date format crashes site.
- Dominant language
- PHP
- Stars
- 377
- Forks
- 225
- Avg merge
- 11h 51m
- Merged PRs (30d)
- 4
Description
Hi - whenever I save a file with a date greater than the 12 of the month, I get a 'Crickey there was an error', and the whole page is an error - with
`An exception has been thrown during the rendering of a template ("Failed to parse time string (13/11/2024) at position 0 (1): Unexpected character").`
When I open the page in a text editor, and change or remove the date, the page still fails.
No matter what I do, I still get this error. I've cleared the cache, deleted the cache, restarted the server and so on but it still errors on the date - even when it is no longer there. Caching is also disabled.
The only way to save the page is to delete it in the admin interface, add a new one and make sure the date is not greater than the 12th of the month.
Any solution to this?
Contributor guide
Research direction
Reproduce the failure by saving a page with the date 13/11/2024, then inspect the admin save and page-rendering paths associated with the reported template exception. The issue is done when dates greater than the 12th save and render successfully, including after the original invalid date has been removed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100