AspectSwitcherImageEffect. {width} must be type of int, string given.

Created on 28 August 2024, 3 months ago
Updated 14 September 2024, 2 months ago

Problem/Motivation

TypeError: Drupal\image_effects\Plugin\ImageEffect\AspectSwitcherImageEffect::getChildImageStyleToExecute(): Argument #1 ($width) must be of type int, string given, called in /var/www/html/web/modules/contrib/image_effects/src/Plugin/ImageEffect/AspectSwitcherImageEffect.php on line 172 in Drupal\image_effects\Plugin\ImageEffect\AspectSwitcherImageEffect->getChildImageStyleToExecute() (line 196 of modules/contrib/image_effects/src/Plugin/ImageEffect/AspectSwitcherImageEffect.php).

WSOD.
testing in drupal 11 (php 8.3)
seems that type needs to be enforced more.

#3357133 --> ?? possible, does this related to similar type problem. I'm not sure at the moment if this branch is up2date.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

🇨🇦Canada SKAUGHT

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