Project

General

Profile

Actions

Bug #62961

closed

Warning because of missing entry noScale

Added by Kay Strobach about 10 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
Start date:
2014-11-14
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
5.5
Tags:
Complexity:
no-brainer
Is Regression:
No
Sprint Focus:

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

Actions #1

Updated by Gerrit Code Review about 10 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/34178

Actions #2

Updated by Gerrit Code Review about 10 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/34178

Actions #3

Updated by Gerrit Code Review about 10 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/34178

Actions #4

Updated by Gerrit Code Review about 10 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/34178

Actions #5

Updated by Gerrit Code Review about 10 years ago

Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/34197

Actions #6

Updated by Kay Strobach about 10 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #7

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF