Bug #98555
closedLinkhandler: Deprecated Linkhandler path causes DI Error
0%
Description
With change https://review.typo3.org/c/Packages/TYPO3.CMS/+/75876
the Linkhandlers, expecially the RecordLinkHandler where moved to
`TYPO3\CMS\Backend\LinkHandler`.
Now if in TYPO3 v12.0 you still define a linkhandler on the old location:
page.tsconfig:
```
TCEMAIN.linkHandler {
haiku {
handler = TYPO3\CMS\Recordlist\LinkHandler\RecordLinkHandler
label = LLL:EXT:examples/Resources/Private/Language/locallang_browse_links.xlf:haiku
configuration {
table = tx_examples_haiku
}
displayAfter = url
scanBefore = page
}
}
```
Uppon trying to create a link in the RTE a Dependency injection error is happening.
This error is very cryptic and it is hard to find the source.
The changelog said: "Extensions using classes of extension "recordlist" should use the new classes instead.
Extensions supporting both TYPO3 v11 and v12 can continue to use the old class names
since they have been established as aliases to the new class names. These aliases will
be removed with TYPO3 core v13."
Which is at least not true for linkhandlers.
You can test this by installing `composer req t3docs/examples` and then use the configuration above.
Updated by Chris Müller about 2 years ago
I think, this is fixed with this patch in 12.1: https://github.com/TYPO3/typo3/commit/a114256189ccecc714f092dc0bcb6493d4371e53
Updated by Chris Müller about 2 years ago
- Related to Task #98443: Merge ext:recordlist into ext:backend added
- Related to Bug #98535: Linkbrowser throws exception added