Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Media Metafile issue on upgrade to 1.1.8 #1179

Closed
asirco opened this issue Nov 19, 2016 · 2 comments
Closed

Media Metafile issue on upgrade to 1.1.8 #1179

asirco opened this issue Nov 19, 2016 · 2 comments
Labels

Comments

@asirco
Copy link

asirco commented Nov 19, 2016

After updating from 1.1.6 to 1.1.8, I received an error on just one of my pages as shown in the attached image.

After a little digging I found the route cause. It seems that if you have and additional yaml media metafile for an image that does not exist in the same folder, this "critical" error appears.

For example, I had a spurious dogs-vs-cats.jpg.meta.yaml file in a module page which simply stated a max-width field for an image. The image was deleted but the yaml file stayed in situ. Upon updating Grav to 1.1.8, it seems that Grav has become more stringent when checking these files. If there's no associated image file to a meta.yaml file, then this critical error is thrown.

Simply removing the meta.yaml file fixed the immediate issue, but it shouldn't be this way. Deleting an image should remove it's meta file and, in my opinion, Grav should be a little more forgiving in situations where there are extra meta files in a directory.
screen shot 2016-11-19 at 20 53 43

@rhukster rhukster added the bug label Nov 21, 2016
@rhukster
Copy link
Member

Does sound like a bug.. thanks for reporting.

@flaviocopes
Copy link
Contributor

Replicated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants