[dev] brandnew Turba installation throws errors

Michael J Rubinsky mrubinsk at horde.org
Fri Mar 22 20:27:07 UTC 2019


Quoting Sebastian Birnbach <birnbacs at gmail.com>:

> I could not find an appropriate setting in php.ini, could you please be a
> little more specific?
>
> [develop at ixie ~]$ php --version
> PHP 7.2.13 (cli) (built: Jan  1 2019 23:42:23) ( NTS DEBUG )
> Copyright (c) 1997-2018 The PHP Group
> Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
>     with Xdebug v2.6.1, Copyright (c) 2002-2018, by Derick Rethans
>     with Zend OPcache v7.2.13, Copyright (c) 1999-2018, by Zend Technologies
>
>
> Am Fr., 22. März 2019 um 14:48 Uhr schrieb Ralf Lang <lang at b1-systems.de>:
>
>>
>> Am 22.03.19 um 11:11 schrieb Sebastian Birnbach:
>> > On a new horde installation with turba I see these errors upon accessing
>> a
>> > demo entry:
>> >
>> > Mar 22 11:05:26 ixie 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 57796 on line 0
>> of
>> > "/usr/local/share/pear/Horde/Form/Type.php"]
>> > Mar 22 11:05:26 ixie HORDE: [turba] PHP ERROR: Declaration of
>> > Turba_Form_AddContact::validate() should be compatible with
>> > Horde_Form::validate($vars = NULL, $canAutoFill = false) [pid 57796 on
>> line
>> > 5 of "/usr/local/www/horde/turba/lib/Form/AddContact.php"]
>> > Mar 22 11:05:26 ixie 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 57796
>> > on line 0 of "/usr/local/share/pear/Horde/Form/Action/updatefield.php"]
>> > Mar 22 11:05:26 ixie 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 57796 on line 0 of
>> > "/usr/local/share/pear/Horde/Form/Action/updatefield.php"]
>> > Mar 22 11:05:34 ixie 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 35165 on line 0
>> of
>> > "/usr/local/share/pear/Horde/Form/Type.php"]
>> > Mar 22 11:05:34 ixie HORDE: [turba] PHP ERROR: Declaration of
>> > Turba_Form_AddContact::validate() should be compatible with
>> > Horde_Form::validate($vars = NULL, $canAutoFill = false) [pid 35165 on
>> line
>> > 5 of "/usr/local/www/horde/turba/lib/Form/AddContact.php"]
>> > Mar 22 11:05:34 ixie 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 35165
>> > on line 0 of "/usr/local/share/pear/Horde/Form/Action/updatefield.php"]
>> > Mar 22 11:05:34 ixie 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 35165 on line 0 of
>> > "/usr/local/share/pear/Horde/Form/Action/updatefield.php"]
>> > Mar 22 11:05:35 ixie 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 35165 on line 0
>> of
>> > "/usr/local/share/pear/Horde/Form/Type.php"]
>> > Mar 22 11:05:35 ixie 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 35165
>> > on line 0 of "/usr/local/share/pear/Horde/Form/Action/updatefield.php"]
>> > Mar 22 11:05:35 ixie 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 35165 on line 0 of
>> > "/usr/local/share/pear/Horde/Form/Action/updatefield.php"]
>> > Mar 22 11:05:35 ixie 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
>> > 35165 on line 0 of "/usr/local/www/horde/turba/lib/Form/EditContact.php"]
>> >
>> >
>> > I updated the whole installation through
>> > sudo pear upgrade -a -B -c horde
>> > but the errors remain.
>> >
>> > Looks to me like an incompatibility between turba application and base
>> > packages.

Nope. It's because Horde_Form is badly outdated and needs to be  
refactored for PHP 7. Prior to PHP 7 these were E_STRICT warnings..

This should not be affecting functionality though.


>>
>> Hi,
>>
>> likely this can be fixed with relaxed php configuration wrt to
>> strictness / fatality of declarations.
>>
>> Which PHP Version is using?
>>
>> --
>> Ralf Lang
>> Linux Consultant / Developer
>> Tel.: +49-170-6381563
>> Mail: lang at b1-systems.de
>> B1 Systems GmbH
>> Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
>> GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
>>
>> --
>> dev mailing list
>> Frequently Asked Questions: http://wiki.horde.org/FAQ
>> To unsubscribe, mail: dev-unsubscribe at lists.horde.org
>>
> --
> dev mailing list
> Frequently Asked Questions: http://wiki.horde.org/FAQ
> To unsubscribe, mail: dev-unsubscribe at lists.horde.org



-- 
mike
The Horde Project
http://www.horde.org
https://www.facebook.com/hordeproject
https://www.twitter.com/hordeproject
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-keys
Size: 9272 bytes
Desc: PGP Public Key
URL: <https://lists.horde.org/archives/dev/attachments/20190322/29114339/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 821 bytes
Desc: PGP Digital Signature
URL: <https://lists.horde.org/archives/dev/attachments/20190322/29114339/attachment-0003.bin>


More information about the dev mailing list