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

History 314

  1. Simon Praetorius changed category 11/13/24, 10:55

  2. Gerrit Code Review pushed patch set 1 for main to change 87010 status Accepted Under Review 11/18/24, 10:24

  3. Gerrit Code Review pushed patch set 2 for main to change 87010 11/18/24, 10:29

  4. Gerrit Code Review pushed patch set 3 for main to change 87010 11/18/24, 10:29

  5. Gerrit Code Review pushed patch set 4 for main to change 87010 11/18/24, 10:55

  6. Gerrit Code Review pushed patch set 1 for 13.4 to change 87039 11/18/24, 19:29

  7. Gerrit Code Review pushed patch set 5 for main to change 87010 11/18/24, 19:49

  8. Gerrit Code Review pushed patch set 6 for main to change 87010 11/18/24, 21:54

  9. Gerrit Code Review pushed patch set 7 for main to change 87010 11/19/24, 09:24

  10. Gerrit Code Review pushed patch set 8 for main to change 87010 11/19/24, 09:31

  11. Gerrit Code Review pushed patch set 9 for main to change 87010 11/19/24, 09:33

  12. Gerrit Code Review pushed patch set 2 for 13.4 to change 87039 11/19/24, 11:48

  13. Simon Praetorius commented and changed status Under Review Resolved done 0 % 100 % 11/19/24, 12:10

    Applied in changeset commit:2dbe32591b49138ebbf307749b215ddf5d8b8067.

  14. Benni Mack changed status Resolved Closed 12/02/25, 14:32