Project

General

Profile

Actions

Bug #96552

closed

IMG_RESOURCE cObj throws Undefined array key warnings

Added by Robert Kärner almost 3 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2022-01-16
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.0
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

If you configure an IMG_RESOURCE cObj like this:

10 = IMG_RESOURCE
10 {
    file {
        import.data = file:current:uid
        treatIdAsReference = 1
        width = 1280c
        height = 720c
    }
}

a PHP Warning: Undefined array key "file" in typo3\sysext\frontend\Classes\ContentObject\ImageResourceContentObject.php line 32 will be thrown in the frontend on PHP 8.0+

Actions #1

Updated by Gerrit Code Review almost 3 years ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73034

Actions #2

Updated by Gerrit Code Review almost 3 years ago

Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72982

Actions #3

Updated by Robert Kärner almost 3 years ago

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

Updated by Benni Mack about 2 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF