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.
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
- Subject changed from fluid f:widget.link don't work anymore to fluid f:widget.link - f:widget.uri don't work anymore
- 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".
- Status changed from Needs Feedback to Closed
Also available in: Atom
PDF