Project

General

Profile

Actions

Bug #103863

closed

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

Added by Mogens Fiebrandt about 1 month ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
Start date:
2024-05-20
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
13
PHP Version:
8.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

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.


Files

patch.diff (732 Bytes) patch.diff Mogens Fiebrandt, 2024-05-20 18:55

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #102931: Remove outdated hook in GifBuilderClosedBenni Mack2024-01-25

Actions
Actions #1

Updated by Gerrit Code Review about 1 month 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/+/84320

Actions #2

Updated by Gerrit Code Review about 1 month ago

Patch set 2 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/+/84320

Actions #3

Updated by Stefan Bürk about 1 month ago

  • Related to Task #102931: Remove outdated hook in GifBuilder added
Actions #4

Updated by Gerrit Code Review about 1 month ago

Patch set 3 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/+/84320

Actions #5

Updated by Mogens Fiebrandt about 1 month ago

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

Also available in: Atom PDF