Roundcube Community Forum

 

Errors during install/configure

Started by Padow, March 13, 2016, 07:25:21 PM

Previous topic - Next topic

Padow

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;
  }


SKaero

What Roundcube version are you trying to install and what PHP version are you using?

Padow

Roundcubemail 1.1.4 from the EPEL7 channel
php 5.4.16

alec

This error may happen when installer can't read config/defaults.inc.php file

Padow

Thanks for the input. 

I did have a permissions issue, which fixed the error but did not fix the configuration generation.  I was able to fix that by removing the EPEL roundcubemail package and downloading the latest tarball.