smichaelsen/fluid-viewhelper-timespan

Call to a member function getRequest() on null

Closed this issue · 6 comments

Hello!

I try to use your ViewHelper but I ger error

$this->arguments['extensionName'] = $this->arguments['extensionName'] ?: $this->controllerContext->getRequest()->getControllerExtensionName();

I use TYPO3 9.5.11
PHP 7.2

Thanks for you report. What exactly is the error message?

I add {user.crdate -> vhts:timeSpan(limitUnits:'2')}

But I see on the page

Call to a member function getRequest() on null

Call to a member function getRequest on null

Thank you. I guess that means that the ViewHelper is currently not compatible with TYPO3 v9.

I need your help .. can you help me?

As a workaround try to explicitly set the extensionName parameter.

Yes, it helped me ... thank you so much... have a nice evening