Issue Bug Closed

#96552IMG_RESOURCE cObj throws Undefined array key warnings

Robert Kärner 01/16/22, 09:33 updated 10/04/22, 14:14

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+

Reviews 2