Issue Bug Closed

#109680Backend Layout Module uses prepareText which might fail if a field is removed (UndefinedFieldException)

Daniel Siepmann 04/22/26, 06:43 updated 08/11/26, 08:46

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

  1. Daniel Siepmann commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-04-23T08:00:21+00:00" > 04/23/26, 08:00 </span>

    Applied in changeset commit:f2a26e9b89bab8bf6cf0352e30b15af12f8321e3.