Index: typo3/sysext/dbal/class.tx_dbal_autoloader.php =================================================================== --- typo3/sysext/dbal/class.tx_dbal_autoloader.php (revision 7495) +++ typo3/sysext/dbal/class.tx_dbal_autoloader.php (working copy) @@ -121,16 +121,22 @@ $instObj->allowUpdateLocalConf = 1; $instObj->updateIdentity = 'TYPO3 Core Update Manager'; - // Get lines from localconf file - $lines = $instObj->writeToLocalconf_control(); - $instObj->setValueInLocalconfFile($lines, '$TYPO3_CONF_VARS[\'EXT\'][\'extList\']', $newExtList); - $instObj->writeToLocalconf_control($lines); + try { + // Get lines from localconf file + $lines = $instObj->writeToLocalconf_control(); + $instObj->setValueInLocalconfFile($lines, '$TYPO3_CONF_VARS[\'EXT\'][\'extList\']', $newExtList); + $instObj->writeToLocalconf_control($lines); - $GLOBALS['TYPO3_CONF_VARS']['EXT']['extList'] = $newExtList; - // Make sure to get cache file for backend, not frontend - $cacheFilePrefix = $GLOBALS['TYPO3_LOADED_EXT']['_CACHEFILE']; - $GLOBALS['TYPO3_LOADED_EXT']['_CACHEFILE'] = str_replace('temp_CACHED_FE', 'temp_CACHED', $cacheFilePrefix); - t3lib_extMgm::removeCacheFiles(); + $GLOBALS['TYPO3_CONF_VARS']['EXT']['extList'] = $newExtList; + // Make sure to get cache file for backend, not frontend + $cacheFilePrefix = $GLOBALS['TYPO3_LOADED_EXT']['_CACHEFILE']; + $GLOBALS['TYPO3_LOADED_EXT']['_CACHEFILE'] = str_replace('temp_CACHED_FE', 'temp_CACHED', $cacheFilePrefix); + t3lib_extMgm::removeCacheFiles(); + } + catch (Exception $e) { + echo '
' . $e->getMessage() . '
'; + exit; + } } }