Project

General

Profile

Actions

Bug #101344

closed

Call to a member function getSetupArray() for custom t3 record-links

Added by Nikolas Hagelstein over 1 year ago. Updated 5 months ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Link Handling & Redirect Handling
Target version:
-
Start date:
2023-07-13
Due date:
% Done:

100%

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

Description

Prior in TYPO3v11 the Linkbrowser respected custom linkhandler configuration in TCEMAIN.linkHandler.

In TYPO3v12 it does not.

Even worse:
If the target field of the redirect contains a custom t3-record link e.g.: t3://record?identifier=news&uid=4

The Redirect module fails with:
Call to a member function getSetupArray() on null in /var/www/html/vendor/typo3/cms-frontend/Classes/Typolink/DatabaseRecordLinkBuilder.php line 41


Files

Actions #2

Updated by Nikolas Hagelstein over 1 year ago

  • Category set to Link Handling & Redirect Handling
Actions #3

Updated by Nikolas Hagelstein over 1 year ago

  • Subject changed from Call to a member function getSetupArray() / Linkbrowser does not respect TCEMAIN.linkHandler anymore to Call to a member function getSetupArray() for custom t3 record-links
Actions #4

Updated by Torben Hansen over 1 year ago

  • Status changed from New to Accepted

Confirmed the PHP exception.

Please note, that with #98443 the LinkHandler registration changed. Make sure to replace TYPO3\CMS\Recordlist\LinkHandler\RecordLinkHandler with TYPO3\CMS\Backend\LinkHandler\RecordLinkHandler in your Page TSConfig in order to globally register record LinkHandlers. Having this in place will result in the linkbrowser in the redirects module to show custom linkhanders.

Actions #5

Updated by Torben Hansen over 1 year ago

  • Assignee set to Torben Hansen
Actions #6

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/+/80040

Actions #7

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/+/80040

Actions #8

Updated by Gerrit Code Review over 1 year ago

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

Actions #9

Updated by Torben Hansen over 1 year ago

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

Updated by Benni Mack 5 months ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF