Skip to content

RequestInterface error in TagViewHelper #330

Description

@ulrike-cosmoblonde

Using the tagViewHelper (t3g/blog/Classes/ViewHelpers/Link/TagViewHelper.php) to link a tag is causing an error in the stable version 12.0.2 as well as the dev version.
I am using TYPO3 12.4 LTS.

The error message is:
TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder::setRequest(): Argument #1 ($request) must be of type TYPO3\CMS\Extbase\Mvc\RequestInterface, TYPO3\CMS\Core\Http\ServerRequest given, called in /var/www/.../vendor/t3g/blog/Classes/ViewHelpers/Link/TagViewHelper.php on line 49

I assume the same error might happen for the other link viewhelper too, because all are using the same syntax to create a uri via a uriBuilder:
$uri = $uriBuilder->reset()->setRequest($this->renderingContext->getRequest())

This fails, because $this->renderingContext->getRequest() is returning a serverRequest object instead of the required requestInterface object.

Can anyone confirm this bug?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions