Skip to content

[Twig][Exception] Unknown filter instead of real exception message #25610

@fancyweb

Description

@fancyweb
Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no
Symfony version 3.4

Since 3.4 (bug is not there in 3.3), if one of my app Twig extensions throws an exception, I end up with the following message instead of the real exception message :

 (2/2) Twig_Error_Syntax

Unknown "abbr_class" filter.

From what I've found, this is because my app Twig extension is added before the Symfony Twig Bridge CodeExtension which is the one that adds the abbr_class Twig filter. This filter is used in the default exception.html.twig template and ends up being never registered. However, it seems it is also the case in previous Symfony version so I don't get why it only bugs in 3.4...

Reproducer incoming

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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy