【发布时间】:2017-01-20 15:19:00
【问题描述】:
我正在运行 Typo3 7.6,并愚蠢地在我的网站上尝试了一个过时的扩展。我遇到了一个错误,试图卸载扩展程序,这让事情变得更糟。现在整个系统从前后崩溃,出现这个错误:
解析错误:语法错误,出现意外的“=” /html/typo3/typo3_src-7.6.10/typo3/sysext/core/Classes/Utility/ExtensionManagementUtility.php 在第 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'];
}
}
}
我该如何摆脱这个烂摊子?
【问题讨论】:
标签: php error-handling syntax-error parse-error typo3-7.6.x