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

Twig filter exif_read_data throws critical error #3877

Closed
Rotzbua opened this issue Dec 23, 2024 · 0 comments · Fixed by #3878
Closed

Twig filter exif_read_data throws critical error #3877

Rotzbua opened this issue Dec 23, 2024 · 0 comments · Fixed by #3878

Comments

@Rotzbua
Copy link
Contributor

Rotzbua commented Dec 23, 2024

Problem

Twig filter exif_read_data throws critical error.

Impact

No rendered site.

Example

Twig snippet:

{% set path = media.path() %}
{% set exifdata = path|exif_read_data %}

Error

"Too few arguments to function Grav\Common\Twig\Extension\FilesystemExtension::exif_read_data(), 1 passed in ....php on line 105 and at least 2 expected ◀"

Additional Problem

Errors thrown by exif_read_data are not suppressed.

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

Successfully merging a pull request may close this issue.

1 participant