Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call to a member function getRequest() on null #1

Open
typo3ua opened this issue Nov 19, 2019 · 6 comments
Open

Call to a member function getRequest() on null #1

typo3ua opened this issue Nov 19, 2019 · 6 comments

Comments

@typo3ua
Copy link

typo3ua commented Nov 19, 2019

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

@smichaelsen
Copy link
Owner

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

@typo3ua
Copy link
Author

typo3ua commented Nov 19, 2019

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

@smichaelsen
Copy link
Owner

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

@typo3ua
Copy link
Author

typo3ua commented Nov 19, 2019

I need your help .. can you help me?

@smichaelsen
Copy link
Owner

As a workaround try to explicitly set the extensionName parameter.

@typo3ua
Copy link
Author

typo3ua commented Nov 19, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants