You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the IndexViewHelper in FE with T3 v12.4.20 to generate a link with the index record and detailPid. It throws this error:
HDNET\Calendarize\ViewHelpers\Link\AbstractLinkViewHelper::getRequest(): Return value must be of type TYPO3\CMS\Extbase\Mvc\RequestInterface, TYPO3\CMS\Core\Http\ServerRequest returned
AbstractLinkViewHelper::getRequest() currently returns an TYPO3\CMS\Extbase\Mvc\RequestInterface, but RenderingContext::getRequest()returns an Psr\Http\Message\ServerRequestInterface, which extends Psr\Http\Message\RequestInterface.
My code: <h3><cl:Index index="{record.index}" pageUid="{detailPid}" class="url">{record.event.title}</cl:Index></h3>
The text was updated successfully, but these errors were encountered:
The next problem: UriBuilder::setRequest($request) indeed takes the TYPO3\CMS\Extbase\Mvc\RequestInterface, but doesn't meet the RequestInterface provided by RenderingContext::getRequest(), so if you change the return type of AbstractLinkViewHelper::getRequest() it crashes here.
I'm using the
IndexViewHelper
in FE with T3 v12.4.20 to generate a link with the index record and detailPid. It throws this error:HDNET\Calendarize\ViewHelpers\Link\AbstractLinkViewHelper::getRequest(): Return value must be of type TYPO3\CMS\Extbase\Mvc\RequestInterface, TYPO3\CMS\Core\Http\ServerRequest returned
AbstractLinkViewHelper::getRequest()
currently returns anTYPO3\CMS\Extbase\Mvc\RequestInterface
, butRenderingContext::getRequest()
returns anPsr\Http\Message\ServerRequestInterface
, which extendsPsr\Http\Message\RequestInterface
.My code:
<h3><cl:Index index="{record.index}" pageUid="{detailPid}" class="url">{record.event.title}</cl:Index></h3>
The text was updated successfully, but these errors were encountered: