问题
I'm pretty new to Typo3, so sorry if I can't understand what's the problem here.
I installed the extension ke_search and followed (many times!) the basic and simple instructions given to setup it. The indexer works and everything seems just fine, but when I try to check the front end page, an error occours:
PHP Catchable Fatal Error: Argument 1 passed to TYPO3\CMS\Fluid\View\StandaloneView::setTemplateRootPaths() must be of the type array, null given, called in (...)/typo3conf/ext/ke_search/pi2/class.tx_kesearch_pi2.php on line 126 and defined in (...)/typo3/sysext/fluid/Classes/View/StandaloneView.php line 192
Unfortunately I can't understand the meaning of this. Is there anybody willing to give me some advice. Needless to say I searched the web to find similar errors, to no avail.
Thank you
回答1:
If you're working with Version TYPO3 Version 7 or 8, try this Code in your TypoScript:
plugin.tx_kesearch_pi1 {
templateRootPaths {
5 = EXT:ke_search/Resources/Private/Templates/
}
partialRootPaths {
5 = EXT:ke_search/Resources/Private/Partials/
}
layoutRootPaths {
5 = EXT:ke_search/Resources/Private/Layouts/
}
}
plugin.tx_kesearch_pi2 {
templateRootPaths {
5 = EXT:ke_search/Resources/Private/Templates/
}
partialRootPaths{
5 = EXT:ke_search/Resources/Private/Partials/
}
layoutRootPaths {
5 = EXT:ke_search/Resources/Private/Layouts/
}
}
I think, it's a bug...
来源:https://stackoverflow.com/questions/46711246/typo3-ke-search-extension-fatal-error