Problem Description
/usr/share/roundcube/bin/cleandb.sh is failing with
PHP Warning: strlen() expects parameter 1 to be string, array given in /etc/roundcube/config.sympl.inc.php on line 21
The offending code is:
* Set the default server host, if not already set.
*/
if ( !array_key_exists('default_host', $config) or
strlen($config['default_host']) == 0 ) {
$config['default_host'] = 'localhost';
}
I also see that config.inc.php says
$config['default_host'] = array("localhost:143");
so is the right fix to change config.sympl.inc.php to change the text
if ( array_key_exists('default_host', $config) or
!empty($config['default_host']) {
or should the definition in config.inc.php be altered to just a string? This may be my settings, I think I had to install roundcube ‘by hand’ because back in the mists of time it didn’t install properly.
Environment
- Sympl Version 10.0:
- Sympl Testing Version? No
- Debian Version Buster:
- Hardware Type? Virtual
- Hosted On? Mythic Beasts