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

Also available in: Atom PDF