Open nzyeehaa opened 4 years ago
I think it's not well documented. Looking into the code where it merges the global and the local config.php
files in dialog.php
:
if (file_exists($config['current_path'] . $parent . "config.php")) {
$configTemp = include $config['current_path'] . $parent . 'config.php';
$config = array_merge($config, $configTemp);
$cycle = FALSE;
}
it uses include
to feed $configTemp
. I've changed my local config.php
to this an it has worked:
<?php
return array(
'image_max_width' => 800,
'image_max_height' => 600,
'fixed_image_creation' => true,
'fixed_path_from_filemanager' => array('../../../../uploads_m/'),
'fixed_image_creation_name_to_prepend' => array(''),
'fixed_image_creation_to_append' => array(''),
'fixed_image_creation_width' => array(350),
'fixed_image_creation_height' => array('')
);
?>
I'm using PHP 5.6.40
@aroncal thank you, that solved our issue !
separate config.php inside image folder with different message and settings... have used this successfully before (with an older version) but get an error in v9.14.0...
config.php
website says
any ideas?
P.S. ./media/images/ (base folder- works) ./media/images/accommodation/ (sub folder - works) ./media/images/slides/ (contains config.php - shows error as above)
use empty config.php with <?php ?> php tags still produces error so maybe it is a core issue