Bug #102656
closedException in record history with outdated content element configuration
Added by Georg Ringer 12 months ago. Updated 4 months ago.
100%
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.
Updated by Gerrit Code Review 12 months ago
- Status changed from Accepted to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/82174
Updated by Gerrit Code Review 11 months ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/82174
Updated by Christoph Lehmann 11 months ago
- Related to Bug #102655: Page history crashes - ds_pointerField "list_type" points to a field name that does not exist. added
Updated by Gerrit Code Review 10 months ago
Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/82174
Updated by Gerrit Code Review 10 months ago
Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/82174
Updated by Daniel Schultheis 8 months ago
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?
Updated by Gerrit Code Review 8 months ago
- Status changed from Rejected to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/83648
Updated by Daniel Schultheis 6 months ago
Sorry to bother again but are there any updates on this issue as it has been under review for two months now.
Updated by Garvin Hicking 6 months ago
There's been an implementation of a patch in the linked Gerrit patch tracker: https://review.typo3.org/c/Packages/TYPO3.CMS/+/83648
You could help push things forward if you are able to test the patch and give feedback if it helps you, ideally directly in the Gerrit tracker via voting.
Since this is an OpenSource project it sadly happens that issues stall and the people implementing bug fixes may not be able to keep up. In that case, any help is appreciated :-)
Updated by Gerrit Code Review 6 months ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/83648
Updated by Gerrit Code Review 6 months ago
Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/83648
Updated by Gerrit Code Review 5 months ago
Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84643
Updated by Gerrit Code Review 5 months ago
Patch set 2 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84643
Updated by Christoph Lehmann 5 months ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 22cd5a477974e2b97667bac2ab6e1bfcf16fd342.
Updated by Gerrit Code Review 5 months ago
- Status changed from Resolved to Under Review
Patch set 3 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84643
Updated by Tim Spiekerkötter 5 months ago
Hi guys,
we stumbled up on the same problem and without looking for the solution we found that the getRecord
supports using $useDeleteClause = false
. We tried using it that way and with that the history can also show the plugin options changes again.
I don't know if we are too late here, but I guess that would be a 'better' solution?
Maybe someone can have a look at that and decide whether that would be better:
# typo3/cms-backend/Classes/View/ValueFormatter/FlexFormValueFormatter.php:48
$record = BackendUtility::getRecord($tableName, $uid, '*', '', false) ?? [];
Cheers,
Diego
Updated by Gerrit Code Review 5 months ago
Patch set 4 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84643
Updated by Gerrit Code Review 5 months ago
Patch set 5 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84643
Updated by Christoph Lehmann 5 months ago
- Status changed from Under Review to Resolved
Applied in changeset 1a88644b924b37d93f078751d6c974000a481900.
Updated by Daniel Siepmann 3 months ago
- Has duplicate Bug #104668: RuntimeException in history module for deleted record with FlexForm added