#101618TypolinkSoftReferenceParser throws warnings and "referenceindex:update" crashes if the LinkService encounters stale t3:// URLs
Description
We noticed that updating the referenceindex via CLI aborts with an error when TYPO3 stumbles upon old t3:// links. Analysis showed that the t3:// link in question came from EXT:commerce which has been removed from the installation some time ago.
TYPO3 then tries to resolve this link using the LinkService (in typo3/sysext/core/Classes/DataHandling/SoftReference/TypolinkSoftReferenceParser.php:109) before mapping the result into a referenceindex item (in typo3/sysext/core/Classes/DataHandling/SoftReference/TypolinkSoftReferenceParser.php:173). Since the type array is missing, PHP >= 8 throws a warning. Although admittedly the link as such cannot be resolved at all (since nothing would handle it), this should not break the refindex update and influence the remaining sites.
If I rewrite TYPO3\CMS\Core\DataHandling\SoftReference\TypolinkSoftReferenceParser::setTypoLinkPartsElement and change line 173 into:
switch ((string)($tLP['type'] ?? '')) {
the refindex:update continues fine. What do you think regarding the expected behaviour of TypolinkSoftReferenceParser and TYPO3\CMS\Core\Database\ReferenceIndex? Should they fail more quickly or rather be error-tolerant in such cases?
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Related issues 3
History 6
-
Christian Spoo changed Related to #100510 <span data-processor="relativetime" data-value="2023-08-08T14:00:40+00:00" > 08/08/23, 14:00 </span>
-
Christian Spoo changed Related to #95941 <span data-processor="relativetime" data-value="2023-08-08T14:00:47+00:00" > 08/08/23, 14:00 </span>
-
Christian Spoo changed category <span data-processor="relativetime" data-value="2023-08-09T17:01:25+00:00" > 08/09/23, 17:01 </span>
-
Josua Vogel changed category <span data-processor="relativetime" data-value="2025-07-14T18:24:18+00:00" > 07/14/25, 18:24 </span>
-
Georg Ringer commented and changed status
NewClosed <span data-processor="relativetime" data-value="2026-10-06T16:56:25+00:00" > 10/06/26, 16:56 </span> -
Georg Ringer changed Related to #102804 <span data-processor="relativetime" data-value="2026-10-06T16:56:31+00:00" > 10/06/26, 16:56 </span>
fixed with #102804