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

Class 'Grav\Plugin\Problems\desktop.ini' not found #32

Closed
yankl opened this issue Apr 13, 2021 · 3 comments
Closed

Class 'Grav\Plugin\Problems\desktop.ini' not found #32

yankl opened this issue Apr 13, 2021 · 3 comments
Labels

Comments

@yankl
Copy link

yankl commented Apr 13, 2021

I'm developing a Grav site locally on my Windows 10 computer.

I often get this error message instead of a useful error message when, e.g., I make a syntax error. For instance, when I had the following line in a twig file:

{% set film = page.media|filter(i => i matches '/(m|M)ovie')|first %}
(where I accidentally forgot the ending slash for the regex)

I get the above error message: Class 'Grav\Plugin\Problems\desktop.ini' not found.

However, if I disable the "problems" plugin by adding an underscore to the folder name in user/plugins, renaming it "problems_", and reload, I get the much more useful error message:

An exception has been thrown during the rendering of a template ("preg_match(): No ending delimiter '/' found").

I tried deleting a few desktop.ini files here and there, but do not know which one is being referred to, and couldn't figure how to resolve the issue in any other way.

Plugin version: 2.0.3

@rhukster rhukster added the bug label Apr 13, 2021
@rhukster
Copy link
Member

rhukster commented Apr 13, 2021

Super weird that there's a desktop.ini reference there.

@yankl
Copy link
Author

yankl commented Apr 13, 2021

If it helps, this is where it's pointing to:

image

@mahagr
Copy link
Member

mahagr commented Apr 14, 2021

Should be fixed in v2.1.1, though.. I have no idea why your problems plugin folder has desktop.ini file in it.

@mahagr mahagr closed this as completed Apr 14, 2021
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