Issue Bug Closed

#104512Redirect targets with individual linkHandler not working

Albrecht Köhnlein 07/31/24, 12:03 updated 01/18/25, 14:14

Description

I have some redirect records with targets with individual linkHandler syntax. It worked fine in TYPO3 11. But since TYPO3 12 I get the following error message:

> Setup array has not been initialized. This happens in cached Frontend scope where full TypoScript is not needed by the system.

The problem is, that ->setSetupArray() was skipped because a cache record for the root page exists. But then the error is thrown in https://github.com/TYPO3/typo3/blob/12.4/typo3/sysext/frontend/Classes/Typolink/DatabaseRecordLinkBuilder.php#L41

$typoScriptArray = $request->getAttribute('frontend.typoscript')?->getSetupArray() ?? [];

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.