In case anyone comes across this post from a google search like I did - I was getting errors of the form
PHP Warning: Invalid argument supplied for foreach() in .../framework/core/manifest/ConfigManifest.php on line 140
What was happening is that the i18n functionality was clearing out all the newly cached manifest information (created by the dev/build process) during the dev/build processing because I had ?flush=1 in the URL. To fix it, I've had to create a new cache object in config to change the path of the i18n cached data
if (!file_exists(TEMP_FOLDER . '/i18n')) {
@mkdir(TEMP_FOLDER . '/i18n');
@chmod(TEMP_FOLDER . '/i18n', 0770);
}
require_once 'Zend/Cache.php';
require_once 'Zend/Translate/Adapter.php';
$i18ncache = Zend_Cache::factory(
'Core',
'File',
array('lifetime' => null, 'automatic_serialization' => true, 'automatic_cleaning_factor' => 0),
array('hashed_directory_umask' => 0775, 'cache_file_umask' => 0660, 'cache_dir' => TEMP_FOLDER . '/i18n')
);
Posted to: SS3.1 Invalid argument Warning ConfigManifest.php - any ideas? | Show Thread | Post Reply