#109680Backend Layout Module uses prepareText which might fail if a field is removed (UndefinedFieldException)
Description
Steps to reproduce (version 14.3):
1. Create a content element type with subheader.
2. Remove subheader column from this content element.
3. Open layout view previewing this element.
TYPO3 will fail with #1661615151 TYPO3\CMS\Core\Schema\Exception\UndefinedFieldException
The issue is that the value of the raw column is checked, this still has the old value.
But the schema does not support the field anymore, this is not checked.
I’d therefore propose to add a check based on the schema. I’ll hand in a patch.
Reviews 2
History 25
-
Gerrit Code Review pushed patch set 1 for main to change 93793 status
NewUnder Review <span data-processor="relativetime" data-value="2026-04-22T06:46:24+00:00" > 04/22/26, 06:46 </span> -
Gerrit Code Review pushed patch set 2 for main to change 93793 <span data-processor="relativetime" data-value="2026-04-23T01:15:57+00:00" > 04/23/26, 01:15 </span>
-
Gerrit Code Review pushed patch set 1 for 14.3 to change 93814 <span data-processor="relativetime" data-value="2026-04-23T07:37:59+00:00" > 04/23/26, 07:37 </span>
-
Daniel Siepmann commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-04-23T08:00:21+00:00" > 04/23/26, 08:00 </span> -
Benni Mack changed status
ResolvedClosed <span data-processor="relativetime" data-value="2026-08-11T08:46:52+00:00" > 08/11/26, 08:46 </span>
Applied in changeset commit:f2a26e9b89bab8bf6cf0352e30b15af12f8321e3.