Typo3 ke_search扩展致命错误 [英] Typo3 ke_search extension Fatal error
问题描述
我不是Typo3的新手,如果无法理解这里的问题,抱歉.
I'm pretty new to Typo3, so sorry if I can't understand what's the problem here.
我安装了扩展名ke_search,然后(很多次!)给出的基本和简单说明来进行设置.索引器工作正常,一切似乎都很好,但是当我尝试检查前端页面时,出现了错误:
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可捕获的致命错误:传递给TYPO3 \ CMS \ Fluid \ View \ StandaloneView :: setTemplateRootPaths()的参数1必须为数组类型,给定为null,在(...)/typo3conf/ext/ke_search/中调用第126行上的pi2/class.tx_kesearch_pi2.php,并在(...)/typo3/sysext/fluid/Classes/View/StandaloneView.php 192行中定义
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.
谢谢
推荐答案
如果您正在使用TYPO3版本7或8,请在您的TypoScript中尝试以下代码:
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...
这篇关于Typo3 ke_search扩展致命错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!