Issue Bug Closed

#109542NULL value in bodytext breaks "Content/Layout" module

Alexander Künzl 04/10/26, 12:21 updated 04/10/26, 12:35

Description

When trying to access a page (in the backend) that contains certain content elements with bodytext = NULL, the following error occurs:

TYPO3\HtmlSanitizer\Sanitizer::sanitize(): Argument #1 ($html) must be of type string, null given, called in path/to/typo3_src-14.2.0/typo3/sysext/backend/Classes/Preview/RecordFieldPreviewProcessor.php on line 128

To reproduce:

1. Create a content element “header” on a page
2. Switch the header’s element type to “regular text element” and close the element.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

History 2

  1. Garvin Hicking commented and changed status New Closed <span data-processor="relativetime" data-value="2026-04-10T12:35:51+00:00" > 04/10/26, 12:35 </span>

    Thanks for your report. This has been solved with #109407