Regression: Fatal error: Cannot use Drupal\Core\Image\ImageFactory as ImageFactory because the name is already in use in /web/modules/contrib/twig_tweak/src/View/ImageViewBuilder.php on line 9

Created on 26 February 2024, 10 months ago
Updated 7 May 2024, 8 months ago

Problem/Motivation

After upgrading drupal/twig_tweak (3.2.1 => 3.3.0) (and clearing caches) I get the following fatal error:

I guess it's a regression from 🐛 drupal_image() needs #width / #height values for fully working image cache scale, lazy-loading and img attributes RTBC and needs a hotfix release.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: cannot reproduce

Version

3.0

Component

Code

Created by

🇩🇪Germany Anybody Porta Westfalica

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Anybody
  • 🇩🇪Germany Anybody Porta Westfalica
  • 🇷🇺Russia Chi

    That needs steps to reproduce.

  • Status changed to Closed: cannot reproduce 10 months ago
  • 🇩🇪Germany Anybody Porta Westfalica

    Sorry @Chi yes, I was actively working on it, just wanted to create the issue first. But seems like false alert, something seems to have gone wrong with composer patches. I deleted the module and re-downloaded it via composer, not the error is gone. Sorry!

  • 🇩🇪Germany Anybody Porta Westfalica

    When running into this, try deleting the twig_tweak module folder and re-run composer update so it will be re-downloaded.

Production build 0.71.5 2024