Issue Bug Closed

#93138LocalCropScaleMaskHelper causes TypeError with clickEnlarge

Mario Matzulla 12/21/20, 15:52 updated 07/09/24, 12:45

Description

TYPO3 Version 10.4.11 after migrating from 8.7.31
I’m getting:
Argument 1 passed to TYPO3\CMS\Core\Imaging\ImageManipulation\Area::__construct() must be of the type float, null given, called in typo3_src-10.4.11/typo3/sysext/core/Classes/Resource/Processing/LocalCropScaleMaskHelper.php on line 209

at TYPO3\CMS\Core\Imaging\ImageManipulation\Area->__construct(null, null, null, null)

$options['crop'] = new Area($cropData->x, $cropData->y, $cropData->width, $cropData->height);

changing to

$options['crop'] = new Area((float)$cropData->x, (float)$cropData->y, (float)$cropData->width, (float)$cropData->height);

solved this issue

Reviews 3

History 25

  1. Gerrit Code Review pushed patch set 1 for main to change 81079 status New Under Review 09/19/23, 08:18

  2. Gerrit Code Review pushed patch set 1 for 12.4 to change 81064 09/19/23, 21:16

  3. Gerrit Code Review pushed patch set 1 for 11.5 to change 81065 09/19/23, 21:16

  4. Benni Mack commented and changed status Under Review Resolved done 0 % 100 % 09/19/23, 21:20

    Applied in changeset commit:481c0a3a8bf87afdd987429e49917d1cdce9362a.

  5. Benni Mack changed status Resolved Closed 07/09/24, 12:45