#100106UnableToLinkException incompatible with returnLast=result
Description
When using Typolink’s returnLast option ‘result’ (new in TYPO3 11.4) and somehow causing an UnableToLinkException there’s a TypeError!
TYPO3\CMS\Frontend\Typolink\UnableToLinkException::getLinkText(): Return value must be of type string, TYPO3\CMS\Frontend\Typolink\LinkResult returned
Screenshot%20from%202023-03-07%2011-03-51.png
Reviews 5
- main 79531[!!!][TASK] Enforce strict typing in UnableToLinkException
- main 78072[TASK] Add todo for strictly typing class UnableToLinkException
- 11.5 78074[BUGFIX] Fix type error in UnableToLinkException->getLinkText
- main 78049[BUGFIX] Fix type error in UnableToLinkException->getLinkText
- main 78050[BUGFIX] Fix type error in UnableToLinkException->getLinkText
Related issues 1
Files 1
History 813
-
Thomas Hohn commented 03/07/23, 11:29
-
Thomas Hohn changed assigned to Thomas Hohn 03/07/23, 11:58
-
Georg Ringer changed status
NewAccepted 03/07/23, 12:07 -
Gerrit Code Review pushed patch set 1 for main to change 78049 status
AcceptedUnder Review 03/07/23, 20:56 -
Gerrit Code Review pushed patch set 1 for main to change 78050 03/07/23, 20:56
-
Gerrit Code Review pushed patch set 2 for main to change 78049 03/07/23, 21:01
-
Philipp Kitzberger commented 03/07/23, 21:07
> Hi – do you have more of the stacktrace – Im particualar interested in the exception id thrown by the UnableToLinkException
Hi Thomas, it’s 1491130170.
We’re rendering a custom linkhandler format such as
t3://example?subtype=category&identifier=27278which generally works but one of them fails due to some other reason. -
Gerrit Code Review pushed patch set 1 for 11.5 to change 78074 03/08/23, 11:28
-
Gerrit Code Review pushed patch set 2 for 11.5 to change 78074 03/08/23, 12:19
-
Thomas Hohn changed target version 03/08/23, 13:36
-
Thomas Hohn commented and changed status
Under ReviewResolved done0 %100 % 03/14/23, 13:50Applied in changeset commit:1a2e8761cf651ea85b186d1816f8ca78a19ba05e.
-
Thomas Hohn changed Related to #101186 06/28/23, 11:51
-
Benni Mack changed status
ResolvedClosed 07/09/24, 12:46
Hi – do you have more of the stacktrace – Im particualar interested in the exception id thrown by the UnableToLinkException