Project

General

Profile

Actions

Bug #100106

closed

UnableToLinkException incompatible with returnLast=result

Added by Philipp Kitzberger over 1 year ago. Updated 4 months ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Frontend
Start date:
2023-03-07
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
typolink
Complexity:
Is Regression:
Sprint Focus:

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


Files


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #101186: Cleanup UnableToLinkExceptionClosedThomas Hohn2023-06-28

Actions
Actions #1

Updated by Thomas Hohn over 1 year ago

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

Actions #2

Updated by Thomas Hohn over 1 year ago

  • Assignee set to Thomas Hohn
Actions #3

Updated by Georg Ringer over 1 year ago

  • Status changed from New to Accepted
Actions #4

Updated by Gerrit Code Review over 1 year ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/78049

Actions #5

Updated by Gerrit Code Review over 1 year ago

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/78050

Actions #6

Updated by Gerrit Code Review over 1 year ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/78049

Actions #7

Updated by Philipp Kitzberger over 1 year ago

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.

Actions #8

Updated by Gerrit Code Review over 1 year ago

Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/78074

Actions #9

Updated by Gerrit Code Review over 1 year ago

Patch set 2 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/78074

Actions #10

Updated by Thomas Hohn over 1 year ago

  • Target version set to Candidate for patchlevel
Actions #11

Updated by Thomas Hohn over 1 year ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #12

Updated by Thomas Hohn over 1 year ago

  • Related to Task #101186: Cleanup UnableToLinkException added
Actions #13

Updated by Benni Mack 4 months ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF