我正在运行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