Bug #102656
open
Exception in record history with outdated content element configuration
Added by Georg Ringer 5 months ago.
Updated about 1 month ago.
Category:
Backend User Interface
Description
Given is a content element which is not relevant anymore and the ctype has been removed and the content element deleted.
switching to the record history brings up an exception
TCA misconfiguration in table "tt_content" field "pi_flexform" config section: ds_pointerField "list_type" points to a field name that does not exist.
- Status changed from Accepted to Under Review
- Related to Bug #102655: Page history crashes - ds_pointerField "list_type" points to a field name that does not exist. added
- Status changed from Under Review to Rejected
Is there a specific reason why this issue has been rejected and won't be fixed?
I've stumbled into the exact same problem where a content element that utilized the pi_flexform field has first been edited and later was deleted now throwing this exception when the history view is opened.
It looks like FlexFormValueFormatter::format() which is called in the process is still continuing with the formatting logic although BackendUtility::getRecord() could not retrieve a record as it had already been deleted.
Should FlexFormValueFormatter::format() then not just return an empty string instead of trying to retrieve the flexform data-structure from a non-existing record leading to the exception mentioned here?
- Status changed from Rejected to Under Review
Also available in: Atom
PDF