Hi. I'm trying to configure roundcube on centos 7 generally following [url]http://arstechnica.com/information-technology/2014/04/taking-e-mail-back-part-4-the-finale-with-webmail-everything-after/3//url]
I'm getting an error on the installer page. This error repeats about 30 times in the plugins section. If I try to ignore the error, an incomplete configuration is provided on the config screen (ends after spell check lines, no database information is included in the config). i've searched for the answer but I am not coming up with any hits. Anyone have any ideas?
Warning: in_array() expects parameter 2 to be array, null given in /usr/share/roundcubemail/program/include/rcmail_install.php on line 591
Line 591 is the long line in the code below with in_array in the line.
/**
* Return a list with available subfolders of the plugins directory
* (with their associated description in composer.json)
*/
function list_plugins()
{
$plugins = array();
$plugin_dir = INSTALL_PATH . 'plugins/';
foreach (glob($plugin_dir . '*') as $path)
{
if (is_dir($path) && is_readable($path.'/composer.json'))
{
$file_json = json_decode(file_get_contents($path.'/composer.json'));
$plugin_desc = $file_json->description ?: 'N/A';
}
else
{
$plugin_desc = 'N/A';
}
$name = substr($path, strlen($plugin_dir));
$plugins[] = array('name' => $name, 'desc' => $plugin_desc, 'enabled' => in_array($name, $this->config['$plugins']));
}
return $plugins;
}