Typo3 ke_search 扩展致命错误
Typo3 ke_search extension Fatal error
我是 Typo3 的新手,如果我无法理解这里的问题,请见谅。
我安装了扩展程序 ke_search 并按照(多次!)the basic and simple instructions given 进行设置。索引器工作正常,一切似乎都很好,但是当我尝试检查前端页面时,出现错误:
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
很遗憾,我无法理解这句话的意思。有没有人愿意给我一些建议。不用说,我在网上搜索了类似的错误,但无济于事。
谢谢
如果您使用的是 TYPO3 版本 7 或 8,请在您的 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/
}
}
我认为,这是一个错误...
我是 Typo3 的新手,如果我无法理解这里的问题,请见谅。
我安装了扩展程序 ke_search 并按照(多次!)the basic and simple instructions given 进行设置。索引器工作正常,一切似乎都很好,但是当我尝试检查前端页面时,出现错误:
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
很遗憾,我无法理解这句话的意思。有没有人愿意给我一些建议。不用说,我在网上搜索了类似的错误,但无济于事。
谢谢
如果您使用的是 TYPO3 版本 7 或 8,请在您的 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/
}
}
我认为,这是一个错误...