#105588Empty Fluid template produces PHP error
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
History 314
-
Simon Praetorius changed category 11/13/24, 10:55
-
Gerrit Code Review pushed patch set 1 for main to change 87010 status
AcceptedUnder Review 11/18/24, 10:24 -
Gerrit Code Review pushed patch set 2 for main to change 87010 11/18/24, 10:29
-
Gerrit Code Review pushed patch set 3 for main to change 87010 11/18/24, 10:29
-
Gerrit Code Review pushed patch set 4 for main to change 87010 11/18/24, 10:55
-
Gerrit Code Review pushed patch set 1 for 13.4 to change 87039 11/18/24, 19:29
-
Gerrit Code Review pushed patch set 5 for main to change 87010 11/18/24, 19:49
-
Gerrit Code Review pushed patch set 6 for main to change 87010 11/18/24, 21:54
-
Gerrit Code Review pushed patch set 7 for main to change 87010 11/19/24, 09:24
-
Gerrit Code Review pushed patch set 8 for main to change 87010 11/19/24, 09:31
-
Gerrit Code Review pushed patch set 9 for main to change 87010 11/19/24, 09:33
-
Gerrit Code Review pushed patch set 2 for 13.4 to change 87039 11/19/24, 11:48
-
Simon Praetorius commented and changed status
Under ReviewResolved done0 %100 % 11/19/24, 12:10 -
Benni Mack changed status
ResolvedClosed 12/02/25, 14:32
Applied in changeset commit:2dbe32591b49138ebbf307749b215ddf5d8b8067.