Issue Bug Closed

#105588Empty Fluid template produces PHP error

Simon Praetorius 11/13/24, 10:40 updated 12/02/25, 14:32

Description

Currently, Fluid Standalone’s render method doesn’t always return a string: If the template only contains a number, the result will be an integer. If the template is empty, it produces null.

While this should be fixed in Standalone in a future (major) release, this can lead to problems in the Core. To prevent at least some of the issues, the Fluid result should be casted to string.

https://github.com/TYPO3/typo3/blob/main/typo3/sysext/fluid/Classes/View/FluidViewAdapter.php#L51

Reviews 2