Project

General

Profile

Actions

Bug #89522

closed

fluid f:widget.link - f:widget.uri don't work anymore

Added by Christian Hackl over 4 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2019-10-28
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
extbase, fluid
Complexity:
Is Regression:
Sprint Focus:

Description

Example:
<f:widget.link useCacheHash="1" addQueryStringMethod="GET" arguments="{currentPage: pagination.nextPage}">next</f:widget.link>

at TYPO3\CMS\Extbase\Mvc\Web\Request there is no method called getArgumentPrefix()

Error:
Call to undefined method TYPO3\CMS\Extbase\Mvc\Web\Request::getArgumentPrefix()

\typo3\sysext\fluid\Classes\ViewHelpers\Widget\LinkViewHelper.php line 109


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #92529: Remove fluid widgetsClosed2020-10-09

Actions
Actions #1

Updated by Christian Hackl over 4 years ago

  • Subject changed from fluid f:widget.link don't work anymore to fluid f:widget.link - f:widget.uri don't work anymore
Actions #2

Updated by Claus Due about 4 years ago

  • Status changed from New to Needs Feedback

This might be a problem with an override of this particular widget, namely the "initiateSubRequest" method which should convert the incoming request to a WidgetRequest, which is the only type of request that has the getArgumentPrefix method.

See https://github.com/TYPO3/TYPO3.CMS/blob/dd669e2a9155330c22278c828af8c4e9b598f71f/typo3/sysext/fluid/Classes/Core/Widget/AbstractWidgetViewHelper.php#L180

It might also be caused by using f:widget.link outside of a widget context, which is not supported (you cannot generate a link to a widget action outside of the context of that widget).

If it can be confirmed that the latter is the cause of the problem we can change this issue to become a request for a specific error message when the ViewHelper is not used within a widget context.

If it is the first case then the issue would be closed as "caused by third party".

Actions #3

Updated by Oliver Hader over 2 years ago

Actions #4

Updated by Oliver Hader over 2 years ago

  • Status changed from Needs Feedback to Closed
Actions

Also available in: Atom PDF