Issue Bug Closed

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

Lina Wolf 09/27/24, 07:48 updated 12/02/25, 14:33

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)

Reviews 3

History 26

  1. Gerrit Code Review pushed patch set 1 for main to change 87032 status New Under Review 11/18/24, 10:54

  2. Gerrit Code Review pushed patch set 2 for main to change 87032 11/19/24, 17:48

  3. Gerrit Code Review pushed patch set 1 for 13.4 to change 87090 11/19/24, 18:11

  4. Gerrit Code Review pushed patch set 1 for 12.4 to change 87091 11/19/24, 18:11

  5. Simon Praetorius commented and changed status Under Review Resolved done 0 % 100 % 11/19/24, 21:05

    Applied in changeset commit:415fe0209b049ac2593b018ed1af929a12da9fa6.

  6. Benni Mack changed status Resolved Closed 12/02/25, 14:33