Author Topic: Errors during install/configure  (Read 4014 times)

Offline Padow

  • Newbie
  • *
  • Posts: 3
Errors during install/configure
« on: March 13, 2016, 07:25:21 PM »
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.

Code: [Select]
  /**
  * 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;
  }

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,882
    • SKaero - Custom Roundcube development
Re: Errors during install/configure
« Reply #1 on: March 13, 2016, 09:09:38 PM »
What Roundcube version are you trying to install and what PHP version are you using?

Offline Padow

  • Newbie
  • *
  • Posts: 3
Re: Errors during install/configure
« Reply #2 on: March 13, 2016, 10:32:42 PM »
Roundcubemail 1.1.4 from the EPEL7 channel
php 5.4.16

Offline alec

  • Hero Member
  • *****
  • Posts: 1,365
Re: Errors during install/configure
« Reply #3 on: March 14, 2016, 03:36:51 AM »
This error may happen when installer can't read config/defaults.inc.php file

Offline Padow

  • Newbie
  • *
  • Posts: 3
Re: Errors during install/configure
« Reply #4 on: March 14, 2016, 10:15:30 PM »
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.