Issue Bug Closed

#103863CObjectViewHelper does not render IMAGE object proper when file is a GIFBUILDER object

Mogens Fiebrandt 05/20/24, 18:55 updated 07/04/24, 13:17

Description

Using the CObjectViewHelper in a fluid-template to render an IMAGE-object:

    <f:cObject typoscriptObjectPath="lib.myImage" />

Where the file property is a GIFBUILDER-object:

lib.myImage = IMAGE
lib.myImage {
  file = GIFBUILDER
  file {
    backColor = yellow
    XY = 500,500
    format = webp
    quality = 44
  }
}

Leads to following type-error:

TYPO3\CMS\Frontend\Imaging\GifBuilder::start(): Argument #2 ($data) must be of type array, null given, called in /app/web/vendor/typo3/cms-frontend/Classes/ContentObject/ContentObjectRenderer.php on line 3571

The added Patch fixes the Problem.

Reviews 1