Project

General

Profile

Actions

Bug #105141

closed

Calling f:link.action with non-existing page Uid causes Type error

Added by Lina Wolf about 2 months ago. Updated 1 day ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2024-09-27
Due date:
% Done:

100%

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

Description

<f:link.action action="show" controller="{controller}" extensionName="{extension}" pluginName="{plugin}" 
                           arguments="{person:person}" class="box-link" pageUid="1234567"/>

(page 1234567 does not exist) The same happens when the page exists but was hidden

causes error

(1/1) TypeError
TYPO3\CMS\Fluid\ViewHelpers\Link\ActionViewHelper::renderWithExtbaseContext(): Return value must be of type string, null returned

in /var/www/html/vendor/typo3/cms-fluid/Classes/ViewHelpers/Link/ActionViewHelper.php line 246

While calling

<f:link.action action="show" controller="{controller}" extensionName="{extension}" pluginName="{plugin}" 
                           arguments="{person:person}" class="box-link" pageUid="108"/>

(page 108 does exist works)

Actions #1

Updated by Gerrit Code Review 3 days ago

  • Status changed from New 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/+/87032

Actions #2

Updated by Gerrit Code Review 2 days 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/+/87032

Actions #3

Updated by Gerrit Code Review 2 days ago

Patch set 1 for branch 13.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/+/87090

Actions #4

Updated by Gerrit Code Review 2 days 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/+/87091

Actions #5

Updated by Simon Praetorius 1 day ago

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

Also available in: Atom PDF