#106452Typolink uri with LINKHANDLER to non-existent record causes error when autotagging feature is enabled
Description
Typo3 13.4.8
Feature Cache autotagging is on (https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/13.3/Feature-104990-AutomaticFrontendCacheTagging.html)
The editor is working on translations. He has various linkhandlers(https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ApiOverview/LinkHandling/Linkhandler/Index.html) at his disposal. A translated record has a typolink to a record that has not yet been translated. An error appears on FE in a given language version:
TYPO3\CMS\Frontend\Cache\CacheLifetimeCalculator::calculateLifetimeForRow(): Argument #2 ($record) must be of type array, int given, called in /usr/www/users/niceguy/besttypo3projectever.hehe/vendor/typo3/cms-frontend/Classes/ContentObject/ContentObjectRenderer.php on line 475
typolink uri:
t3://record?identifier=category&uid=419
page.tsconfig:
TCEMAIN.linkHandler.category {
handler = TYPO3\CMS\Backend\LinkHandler\RecordLinkHandler
label = LLL:EXT:myext/Resources/Private/Language/locallang_db.xlf:link.tab.category
configuration {
table = tx_myext_domain_model_category
pageTreeMountPoints = 24
hidePageTree = 0
}
scanBefore = page
displayAfter = product
}
setup.typoscript
config.recordLinks.category {
forceLink = 0
typolink {
parameter = 7
additionalParams.data = field:uid
additionalParams.wrap = &tx_myext_products[controller]=Category&tx_myext_products[action]=show&tx_myext_products[category]=|
}
}
Viewhelper f:link.typolink cause that error. I’ve tested it with f:link.action (with coresponding arguments and pageUid) and link was created without errors.
When i disable autotagging feature, frontend is rendered without errors.
Reviews 2
History 46
-
Georg Ringer changed status
NewAccepted assigned to Georg Ringer 03/31/25, 13:12 -
Gerrit Code Review pushed patch set 1 for main to change 88848 status
AcceptedUnder Review 03/31/25, 13:29 -
Georg Ringer commented 03/31/25, 13:29
-
Gerrit Code Review pushed patch set 2 for main to change 88848 03/31/25, 15:30
-
Georg Ringer commented and changed status
Under ReviewResolved done0 %100 % 04/08/25, 10:00Applied in changeset commit:9ad1a514057d2a8803bb46e677756d6fd7a87f6d.
-
Benni Mack changed status
ResolvedClosed 12/02/25, 14:21
can be more easily tested by using
sys_categoryas tablename