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 2 days 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

Also available in: Atom PDF