Issue Bug Resolved

#110507PageLinkMessageProvider crashes with RecordPropertyNotFoundException when linking to page with fragment pointing to content element with CType not containing header

Steffen Mächtel 08/20/26, 15:32 updated 09/23/26, 21:40

Description

Version:

14.3.6

Description:

PageLinkMessageProvider::generateLinkToContentElement() (line 106) unconditionally calls $record->get(‘header’) on a tt_content record resolved from the link fragment. In TYPO3 14, the Record class is TCA-schema-aware and only exposes properties defined in the CType’s types showitem.
Reproduction: Create a page (doktype 3, “Link”) with link = t3://page?uid=XXXX#YYYY where YYYY is the uid of a tt_content record whose CType does not include header in its TCA types showitem. Open the page module for the link page — crash.

Error:

RecordPropertyNotFoundException: Record property “header” is not available.
#0 Record.php:131
#1 PageLinkMessageProvider.php:106 (generateLinkToContentElement)
#2 PageLinkMessageProvider.php:163 (getMessageForPageTypeLinkToPage)
Suggested fix: PageLinkMessageProvider::generateLinkToContentElement() should handle the case where header is not available for the record’s CType — either by catching RecordPropertyNotFoundException or by using BackendUtility::getRecordTitle() which already handles this gracefully.

Note: BackendUtility::getRecordTitle() is already used in getMessageForPageTypeLinkToRecord() (line 280) for the same purpose — the generateLinkToContentElement() method should use it too instead of directly calling $record->get(‘header’).

Reviews 5

Files 2

History 38

  1. Steffen Mächtel commented <span data-processor="relativetime" data-value="2026-08-25T14:43:50+00:00" > 08/25/26, 14:43 </span>

    Active Gerrit change: https://review.typo3.org/c/Packages/TYPO3.CMS/+/95374 (3 older changes abandoned — wrong branch, wrong order, wrong change-id)

  2. Steffen Mächtel commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-09-23T21:40:11+00:00" > 09/23/26, 21:40 </span>

    Applied in changeset commit:2fb7a79e78297b5573c9a89229a3d8544384e50c.