Project

General

Profile

Actions

Bug #98555

closed

Linkhandler: Deprecated Linkhandler path causes DI Error

Added by Lina Wolf about 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2022-10-08
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.1
Tags:
Complexity:
Is Regression:
Sprint Focus:

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.


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Task #98443: Merge ext:recordlist into ext:backendClosed2022-09-27

Actions
Related to TYPO3 Core - Bug #98535: Linkbrowser throws exceptionClosed2022-10-05

Actions
Actions

Also available in: Atom PDF