velletti / ke_questionnaire

This is a fork of the offical ke_questionnaire, compatible with TYPO3 - 8.7. LTS
1 stars 3 forks source link

Call to a member function cacheJavaScript() on null bei einer Question mit einer Dependancy #6

Open tobiasschaeferptb opened 3 years ago

tobiasschaeferptb commented 3 years ago

Hallo Jörg,

wenn man eine Frage (KeQ-Contentelement vom Typ Question) erstellt und dort im Karteireiter Dependancies eine Dependancy erstellt, wird beim Anzeigen der Frage im FE eine Exception geworfen: Core: Exception handler (WEB): Uncaught TYPO3 Exception: Call to a member function cacheJavaScript() on null | Error thrown in file typo3conf/ext/ke_questionnaire/Classes/ViewHelpers/CheckDependanciesViewHelper.php in line 91. Vor dieser Zeile 91: $this->jsViewhelper->cacheJavaScript($js); muss man die Variable instanziieren: $this->jsViewhelper = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\Kennziffer\KeQuestionnaire\ViewHelpers\JavaScriptViewHelper::class);

Viele Grüße

Tobias