Issue Bug Closed

#62961Warning because of missing entry noScale

Kay Strobach 11/14/14, 18:19 updated 10/02/18, 11:49

Description

#1: PHP Warning: Illegal string offset 'noScale' in /export/home/typo3/typo3_sources/typo3_src-6.2.6/typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php line 2216 (More information)

TYPO3\CMS\Core\Error\Exception thrown in file
/export/home/typo3/typo3_sources/typo3_src-6.2.6/typo3/sysext/core/Classes/Error/ErrorHandler.php in line 101.

11 TYPO3\CMS\Core\Error\ErrorHandler::handleError(2, "Illegal string offset 'noScale'", "/export/home/typo3/typo3_sources/typo3_src-6.2.6/t…sysext/core/Classes/Imaging/GraphicalFunctions.php", 2216, array)

/export/home/typo3/typo3_sources/typo3_src-6.2.6/typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php:
02214:     // given or if the destination w/h matches the original image
02215:     // dimensions or if the option to not scale the image is set)
02216:     $noScale = !$w && !$h || $data[0] == $info[0] && $data[1] == $info[1] || $options['noScale'];
02217:     if ($noScale && !$data['crs'] && !$params && !$frame && $newExt == $info[2] && !$mustCreate) {
02218:      // Set the new width and height before returning,

there is a missing check if the array key exists.

problem in 6.2 and 7.x

Reviews 2