Index: trunk/core/kernel/utility/unit_config_reader.php =================================================================== diff -u -r4864 -r4867 --- trunk/core/kernel/utility/unit_config_reader.php (.../unit_config_reader.php) (revision 4864) +++ trunk/core/kernel/utility/unit_config_reader.php (.../unit_config_reader.php) (revision 4867) @@ -134,10 +134,9 @@ $this->includeConfigFiles($folderPath, $cache); $this->ParseConfigs(); - - $this->CacheParsedData(); - + if ($cache) { + $this->CacheParsedData(); $conn =& $this->Application->GetADODBConnection(); $conn->Query('REPLACE '.TABLE_PREFIX.'Cache (VarName, Data, Cached) VALUES ("config_files", '.$conn->qstr(serialize($this->configFiles)).', '.adodb_mktime().')'); } @@ -410,7 +409,7 @@ function PreloadConfigFile($filename) { - $config_found = file_exists(FULL_PATH.$filename) && ($this->configAllowed($filename) || defined('IS_INSTALL')); + $config_found = file_exists(FULL_PATH.$filename) && $this->configAllowed($filename); if( defined('DEBUG_MODE') && DEBUG_MODE && constOn('DBG_PROFILE_INCLUDES') ) { @@ -426,7 +425,7 @@ } else { - if($config_found) include_once(FULL_PATH.$filename); + if ($config_found) include_once(FULL_PATH.$filename); } if ($config_found) { @@ -582,6 +581,11 @@ */ function configAllowed($config_path) { + if (defined('IS_INSTALL') && IS_INSTALL) { + // at installation start no modules in db and kernel configs could not be read + return true; + } + $module_found = false; if (!$this->Application->ModuleInfo) return false;