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
Issue fork image_effects-3470760
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
skaughtComment #3
skaughtComment #4
skaughtComment #7
mondrakeI think the type of the values in the dimensions array should be better enforced upstream by core. Let's see if I can file an issue there.
Comment #9
mondrake