Hello Folks,
What means the next line?
[11-Dec-2012 16:10:08] PHP Warning: strtolower() expects parameter 1 to be string, array given in ../roundcubemail-0.8.4/program/include/rcmail.php on line 423
public function get_address_book($id, $writeable = false) { $contacts = null; $ldap_config = (array)$this->config->get('ldap_public'); // The next line is the numer 423 $abook_type = strtolower($this->config->get('address_book_type'));
// 'sql' is the alias for '0' used by autocomplete
if ($id == 'sql')
$id = '0';
// use existing instance
if (isset($this->address_books[$id]) &&
is_object($this->address_books[$id]) && is_a($this->address_books[$id], 'rcube_addressbook') && (!$writeable || !$this->address_books[$id]->readonly) ) { $contacts = $this->address_books[$id]; } else if ($id && $ldap_config[$id]) { $contacts = new rcube_ldap($ldap_config[$id], $this->config->get('ldap_debug'), $this->config->mail_domain($_SESSION['storage_host'])); } else if ($id === '0') { $contacts = new rcube_contacts($this->db, $this->user->ID); } else { $plugin = $this->plugins->exec_hook('addressbook_get', array('id' => $id, 'writeable' => $writeable));
// plugin returned instance of a rcube_addressbook
if ($plugin['instance'] instanceof rcube_addressbook) {
$contacts = $plugin['instance'];
}
// get first source from the list
else if (!$id) {
$source = reset($this->get_address_sources($writeable));
if (!empty($source)) {
$contacts = $this->get_address_book($source['id']);
if ($contacts)
$id = $source['id'];
}
}
}
if (!$contacts) {
raise_error(array(
'code' => 700, 'type' => 'php',
'file' => __FILE__, 'line' => __LINE__,
'message' => "Addressbook source ($id) not found!"),
true, true);
}
// set configured sort order
if ($sort_col = $this->config->get('addressbook_sort_col'))
$contacts->set_sort_order($sort_col);
// add to the 'books' array for shutdown function
$this->address_books[$id] = $contacts;
return $contacts;
}
Regards,
Reymer Vargas
On 12/11/2012 11:16 PM, Reymer Antonio Vargas Solano wrote:
What means the next line?
[11-Dec-2012 16:10:08] PHP Warning: strtolower() expects parameter 1 to be string, array given in ../roundcubemail-0.8.4/program/include/rcmail.php on line 423
public function get_address_book($id, $writeable = false) { $contacts = null; $ldap_config = (array)$this->config->get('ldap_public'); // The next line is the numer 423 $abook_type = strtolower($this->config->get('address_book_type'));
This means that configuration option 'address_book_type' should be set to a string not an array. Fix your config.
Thanks, I'll check our config!
ravs
On Wed, Dec 12, 2012 at 1:14 AM, A.L.E.C alec@alec.pl wrote:
On 12/11/2012 11:16 PM, Reymer Antonio Vargas Solano wrote:
What means the next line?
[11-Dec-2012 16:10:08] PHP Warning: strtolower() expects parameter 1 to be string, array given in
../roundcubemail-0.8.4/program/include/rcmail.php
on line 423
public function get_address_book($id, $writeable = false) { $contacts = null; $ldap_config = (array)$this->config->get('ldap_public'); // The next line is the numer 423 $abook_type = strtolower($this->config->get('address_book_type'));
This means that configuration option 'address_book_type' should be set to a string not an array. Fix your config.
-- Aleksander 'A.L.E.C' Machniak LAN Management System Developer [http://lms.org.pl] Roundcube Webmail Developer [http://roundcube.net]
PGP: 19359DC1 @@ GG: 2275252 @@ WWW: http://alec.pl _______________________________________________ Roundcube Users mailing list users@lists.roundcube.net http://lists.roundcube.net/mailman/listinfo/users
--
From: Reymer Antonio Vargas Solano Sent: Wednesday, December 12, 2012 1:12 PM To: Roundcube Users mailing list Subject: Re: [RCU] strtolower
Thanks, I'll check our config!
ravs
On Wed, Dec 12, 2012 at 1:14 AM, A.L.E.C alec@alec.pl wrote:
On 12/11/2012 11:16 PM, Reymer Antonio Vargas Solano wrote:
What means the next line?
[11-Dec-2012 16:10:08] PHP Warning: strtolower() expects parameter 1 to be string, array given in ../roundcubemail-0.8.4/program/include/rcmail.php on line 423
public function get_address_book($id, $writeable = false) { $contacts = null; $ldap_config = (array)$this->config->get('ldap_public'); // The next line is the numer 423 $abook_type = strtolower($this->config->get('address_book_type'));
This means that configuration option 'address_book_type' should be set to a string not an array. Fix your config.
-- Aleksander 'A.L.E.C' Machniak LAN Management System Developer [http://lms.org.pl] Roundcube Webmail Developer [http://roundcube.net]
PGP: 19359DC1 @@ GG: 2275252 @@ WWW: http://alec.pl _______________________________________________ Roundcube Users mailing list users@lists.roundcube.net http://lists.roundcube.net/mailman/listinfo/users