-
-
Notifications
You must be signed in to change notification settings - Fork 227
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
Unknown "array_unique" filter in "forms/fields/taxonomy/taxonomy.html.twig" #897
Comments
Hi @tomet this is quite strange as we have that line since a few months and I never saw this problem. It's an implicit filter. I explicitly added it to Grav, if you can check this edit and apply it to your site: getgrav/grav@e40bed5 and tell me if the problem is fixed |
If i insert this line in TwigExtension.php it is working. I tried the filter 'array_unique' in my custom theme and i get the same error (before i modified TwigExtension.php). I also searched the sourcecode of my grav installation for the usage of the filter and i only found it in line 8 of taxonomy.html.twig ;-) |
Ok thanks for testing, keep that line in, will be part of the next Grav release 👍 |
Thank you! |
Sorry! It was my fault! I had system.twig.undefined_filters: false in my user/config/system.yaml file! |
Oh good you found the cause of the problem. Also good that now it's a "defined" filter, so this problem won't occur any more. |
When i want to edit a page i always get this error message:
Unknown "array_unique" filter in "forms/fields/taxonomy/taxonomy.html.twig" at line 8.
I am new to grav, but to me it seem's that there is no twig filter named "array_unique".
The text was updated successfully, but these errors were encountered: