#109542NULL value in bodytext breaks "Content/Layout" module
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
-
Garvin Hicking changed Duplicates #109407 <span data-processor="relativetime" data-value="2026-04-10T12:35:19+00:00" > 04/10/26, 12:35 </span>
-
Garvin Hicking commented and changed status
NewClosed <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