ImagemagickToolkit::$width must not be accessed before initialization

Created on 13 December 2023, 12 months ago
Updated 15 December 2023, 11 months ago

Problem/Motivation

follow up to https://www.drupal.org/project/imagemagick/issues/3401093 📌 Adjust for D9 and D10.0 EOL Active

Error: Typed property Drupal\imagemagick\Plugin\ImageToolkit\ImagemagickToolkit::$width must not be accessed before initialization in Drupal\imagemagick\Plugin\ImageToolkit\ImagemagickToolkit->getWidth() (line 633 of /var/www/html/web/modules/contrib/imagemagick/src/Plugin/ImageToolkit/ImagemagickToolkit.php).

Steps to reproduce

Not sure at all. We are using custom tokens, that replace file_entity ids and render responsive images from it.
btw: on drupal 10.1, php 8.1

Proposed resolution

Change the class property definition back to its state before the latest release.

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇩🇪Germany axroth Stuttgart

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024