Skip to content

[WebProfiler] Mailer collector template is broken #42268

Closed
@sidz

Description

@sidz

Symfony version(s) affected: 5.3.4, 5.2.12, 4.4.27

Description

Got Unknown "empty" filter. error message after updating WebProfiler to 5.3.4 (same for 5.2.12, 4.4.27):

request.CRITICAL: Uncaught PHP Exception Twig\Error\SyntaxError: "Unknown "empty" filter." at /app/vendor/symfony/web-profiler-bundle/Resources/views/Collector/mailer.html.twig line 67 {"exception":"[object] (Twig\\Error\\SyntaxError(code: 0): Unknown \"empty\" filter. at /app/vendor/symfony/web-profiler-bundle/Resources/views/Collector/mailer.html.twig:67

https://github.com/symfony/symfony/blob/4.4/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/mailer.html.twig#L70

Possible Solution
Rollback to 5.3.2 or override the template.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions