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, 4 months ago
Updated 7 May 2024, about 1 month 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 4 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.69.0 2024