Skip to content
This repository was archived by the owner on Apr 14, 2026. It is now read-only.
This repository was archived by the owner on Apr 14, 2026. It is now read-only.

'Unable to find template' errors since update of assetic #109

@Sander-Toonen

Description

@Sander-Toonen

After updating the symfony/assetic-bundle from version v2.3.1 to version v2.4.0 I start to see errors thrown by the liip theme TemplateLocator on every request.

This is due to the following commit in assetic-bundle, which makes that errors are no longer suppressed.
symfony/assetic-bundle@ff46000

I have my theme template overrides in src/IB/MyBundle/Resources/themes/views/{theme}/ so that the override for the default-theme for src/IB/MyBundle/Resources/views/Header/main.html.twig resides in src/IB/MyBundle/Resources/themes/default/views/IBMyBundle/Header/main.html.twig

The error list contains errors like the one below for every template in the themes directory:

The template "IBMyBundle:views/IBMyBundle/Header:main.html.twig" contains an error: Unable to find template "IBMyBundle:views/IBMyBundle/Header:main.html.twig".

However, all templates are shown as they should be and apart from the error messages, nothing seems wrong. Does anyone have an idea how to get rid of these messages?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions