我正在運行Typo3 7.6,並且愚蠢地嘗試過在我的網站上過時的擴展名。我遇到了一個錯誤,試圖卸載擴展程序,這隻會讓事情變得更糟。現在整個系統崩潰從前面和這個錯誤:Typo3在安裝擴展後崩潰:解析錯誤:語法錯誤
Parse error: syntax error, unexpected '=' in /html/typo3/typo3_src-7.6.10/typo3/sysext/core/Classes/Utility/ExtensionManagementUtility.php on line 1654
不知道它要我怎麼處理這些信息。
這裏是我的代碼在ExtensionManagementUtility.php上線1654:
/**
* Execute ext_localconf.php files from extensions
*
* @return void
*/
protected static function loadSingleExtLocalconfFiles()
{
// This is the main array meant to be manipulated in the ext_localconf.php files
// In general it is recommended to not rely on it to be globally defined in that
// scope but to use $GLOBALS['TYPO3_CONF_VARS'] instead.
// Nevertheless we define it here as global for backwards compatibility.
global $TYPO3_CONF_VARS;
foreach ($GLOBALS['TYPO3_LOADED_EXT'] as $_EXTKEY => $extensionInformation) {
if ((is_array($extensionInformation) || $extensionInformation instanceof \ArrayAccess) && isset($extensionInformation['ext_localconf.php'])) {
// $_EXTKEY and $_EXTCONF are available in ext_localconf.php
// and are explicitly set in cached file as well
$_EXTCONF = isset($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$_EXTKEY]) ? $GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$_EXTKEY] : null;
require $extensionInformation['ext_localconf.php'];
}
}
}
如何擺脫這個爛攤子?
是的! Bernd Wilkeπφ,就是這樣做的。 我不得不手工完成,因爲沒有辦法訪問CMS。 感謝您爲簡單的解決方案提供簡單的指導。 – dnp76