[turba] PHP error messages in syslog

Jan Schneider jan at horde.org
Thu Jul 5 20:52:52 UTC 2018


Zitat von Hans Dingemans <spaarder at hotmail.nl>:

> Hello,
>
>
> Since a long time I have these error messages in my syslog:
>
> HORDE: [turba] PHP ERROR: Declaration of  
> Turba_Driver_Vbook::_add(array $attributes, array $blob_fields =  
> Array) should be compatible with Turba_Driver::_add(array  
> $attributes, array $blob_fields = Array, array $date_fields = Array)  
> [pid 8983 on line 0 of "/usr/share/horde/turba/lib/Driver/Vbook.php"]
>
> It comes up when browsing the address book, at the moment I click on  
> one of my address book entries.
>
> I upgraded to the current horde/turba versions, and now it has changed to:
> Jul  4 12:19:08 cloudserver HORDE: [turba] PHP ERROR: Declaration of  
> Horde_Form_Type_country::init($prompt = NULL) should be compatible  
> with Horde_Form_Type_enum::init($values, $prompt = NULL) [pid 10863  
> on line 0 of "/usr/share/php/Horde/Form/Type.php"]
> Jul  4 12:19:08 cloudserver HORDE: [turba] PHP ERROR: Declaration of  
> Horde_Form_Action_updatefield::getActionScript(&$form, &$renderer,  
> $varname) should be compatible with  
> Horde_Form_Action::getActionScript($form, $renderer, $varname) [pid  
> 10863 on line 0 of "/usr/share/php/Horde/Form/Action/updatefield.php"]
> Jul  4 12:19:08 cloudserver HORDE: [turba] PHP ERROR: Declaration of  
> Horde_Form_Action_updatefield::setValues(&$vars, $sourceVal,  
> $arrayVal = false) should be compatible with  
> Horde_Form_Action::setValues(&$vars, $sourceVal, $index = NULL,  
> $arrayVal = false) [pid 10863 on line 0 of  
> "/usr/share/php/Horde/Form/Action/updatefield.php"]
> Jul  4 12:19:08 cloudserver HORDE: [turba] PHP ERROR: Declaration of  
> Turba_Form_EditContact::renderActive($renderer, $vars, $action,  
> $method) should be compatible with  
> Horde_Form::renderActive($renderer = NULL, $vars = NULL, $action =  
> '', $method = 'get', $enctype = NULL, $focus = true) [pid 10863 on  
> line 0 of "/usr/share/horde/turba/lib/Form/EditContact.php"]
>
> I only have one localized adaption to my configuration, and that is  
> the use of multiple email addresses instead of one. My  
> /etc/horde/turba/backends.local.php:
> <?php
> unset($cfgSources['localsql']['map']['email']);
> $cfgSources['localsql']['map']['emails'] = 'object_emails';
> $cfgSources['localsql']['tabs'][_("Communications")] =  
> array('emails', 'homeEmail', 'workEmail',
>                                      'homePhone', 'homePhone2',
>                                      'workPhone', 'workPhone2', 'carPhone',
>                                      'radioPhone', 'companyPhone',
>                                      'assistPhone', 'homeFax',
>                                      'cellPhone', 'fax', 'pager',  
> 'imaddress',
>                                      'imaddress2', 'imaddress3');
> $cfgSources['localsql']['search'] = array( 'name', 'emails');
>
>
> ....but renaming this file does not solve the problem, so I don't  
> think the problem is there.
>
> I have php5 and php7 both installed on my system, but since these  
> are Declaration errors it doesn't make sense that this would be  
> causing this kind of problem.
>
> Anyone any clues on what is going wrong, and how to solve it?
>
> Big thanks!

Remove E_STRICT from the PHP error_reporting level in the Horde configuration.

-- 
Jan Schneider
The Horde Project
https://www.horde.org/



More information about the turba mailing list