Issue Bug Closed

#100106UnableToLinkException incompatible with returnLast=result

Philipp Kitzberger 03/07/23, 10:11 updated 07/09/24, 12:46

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

Files 1

History 813

  1. Thomas Hohn commented 03/07/23, 11:29

    Hi – do you have more of the stacktrace – Im particualar interested in the exception id thrown by the UnableToLinkException

  2. Thomas Hohn changed assigned to Thomas Hohn 03/07/23, 11:58

  3. Georg Ringer changed status New Accepted 03/07/23, 12:07

  4. Gerrit Code Review pushed patch set 1 for main to change 78049 status Accepted Under Review 03/07/23, 20:56

  5. Gerrit Code Review pushed patch set 1 for main to change 78050 03/07/23, 20:56

  6. Gerrit Code Review pushed patch set 2 for main to change 78049 03/07/23, 21:01

  7. 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=27278 which generally works but one of them fails due to some other reason.

  8. Gerrit Code Review pushed patch set 1 for 11.5 to change 78074 03/08/23, 11:28

  9. Gerrit Code Review pushed patch set 2 for 11.5 to change 78074 03/08/23, 12:19

  10. Thomas Hohn changed target version 03/08/23, 13:36

  11. Thomas Hohn commented and changed status Under Review Resolved done 0 % 100 % 03/14/23, 13:50

    Applied in changeset commit:1a2e8761cf651ea85b186d1816f8ca78a19ba05e.

  12. Thomas Hohn changed Related to #101186 06/28/23, 11:51

  13. Benni Mack changed status Resolved Closed 07/09/24, 12:46