Issue Bug Closed

#104559Enlarge on Click [image_zoom] with ".gif" files results in FileReference could not be converted to string

Christian Hackl 08/06/24, 14:59 updated 02/07/26, 09:40

Description

Enlarge on Click [image_zoom] with “.gif” files results in FileReference could not be converted to string.

For example use TextMedia contentelement add a “.gif” file and set Enlarge on Click – so that the “ce:link.clickEnlarge” ViewHelper is used (fluid_styled_content/Resources/Private/Partials/Media/Type/Image.html).

Then at the Frontend the Error occures:
“Object of class TYPO3\CMS\Core\Resource\FileReference could not be converted to string.“
Only on GIF files – svg, jpg, jpeg, mp4, png works fine.

The TYPO3\CMS\Frontend\Typolink\LinkFactory->create() Method is called two times, one time empty “$linkConfiguration” and one time with values (array), see screenshoots.

Reviews 1