• Hi,
    I see a problem with version 1.21.0 of Timber.
    A fatal “Fatal error: Uncaught LogicException: Unable to register extension “Twig\Extension\DebugExtension” as it is already registered.” is triggered. In fact, this extension can sometimes be added manually in certain themes..
    It possible to test if DebugExtension is not already added before adding it in Timber?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Very strange…. Versie 1.20.0 fixes the fatal error.

    Thread Starter adrienmedia

    (@adrienmedia)

    I see this problem in version 1.21.0: https://postimg.cc/zHndY3z4/
    On 1.20.0 is ok.

    For what it’s worth, 1.21 includes an update to Twig (from v1.41 to v1.44), which has broken custom code on a number of sites for me. Themes that make customizations to Twig are at risk for this. (For example, I had a custom implementation of \Twig\Loader\LoaderInterface that raises a fatal error in Timber 1.21 because the interface definition in Twig changed.)

    Thread Starter adrienmedia

    (@adrienmedia)

    Thanks for the information.
    I find strange is that this version of Timber does not come as an available update.
    It was installed automatically on few sites for me. A throwback from Team Timber?

    gchtr

    (@gchtr)

    This should be fixed with Timber version 1.22.0.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal Twig\Extension\DebugExtension Timber 1.21.0’ is closed to new replies.