TYPO3 error: Call to undefined method TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::getPageRenderer()

扶醉桌前 提交于 2019-12-11 05:55:53

问题


Getting the error when using the extension ke_serach 2.4.2 in TYPO3 8.7.1. Please refer the below image for reference.

getpagerenderError Image


回答1:


In TYPO3 8 LTS getPageRenderer() Methods Deprecated. Now, You can use PageRender Methods like below.

$pageRender = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Page\PageRenderer::class);
$pageRender->addJsFooterFile($jsFile, 'text/javascript', true, false, '', true);



回答2:


The extension ke_search is not compatible with TYPO3 8LTS yet. You can check the compatibility at the TER.

The exception is thrown because the extension still calls a method that was first deprecated in TYPO3 7LTS (see deprecation RST) and finally removed in TYPO3 8LTS (see breaking RST).



来源:https://stackoverflow.com/questions/44107340/typo3-error-call-to-undefined-method-typo3-cms-frontend-controller-typoscriptfr

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!