[horde] What dependency unresolved with this problem?

Michael Neurohr mine at michi.su
Sat Sep 2 22:12:59 UTC 2017


Hi,

I just upgraded my Ubuntu server from 14.04 to 16.04. Along with that
upgrade, it upgraded to PHP 7.0.

My Horde installation (via PEAR) works, except one problem:
When trying to open the Admin configuration for the module Horde, I'm
getting the following error. The other configs are working fine.


=======================================================================
A fatal error has occurred
syntax error, unexpected 'new' (T_NEW)
in /usr/share/php/Services/Weather.php:167

 1. Horde_Config_Form->__construct()
/var/www/vhosts/horde/admin/config/config.php:35
 2. Horde_Config->readXMLConfig() /usr/share/php/Horde/Config/Form.php:58
 3. Horde_Config->_parseLevel() /usr/share/php/Horde/Config.php:204
 4. Horde_Config->_parseLevel() /usr/share/php/Horde/Config.php:725
 5. Horde_Config->_parseLevel() /usr/share/php/Horde/Config.php:712
 6. Horde_Config->_getEnumValues() /usr/share/php/Horde/Config.php:602
 7. Horde_Config->_handleSpecials() /usr/share/php/Horde/Config.php:1803
 8. Horde_Registry->callAppMethod() /usr/share/php/Horde/Config.php:1874
 9. Horde_Application->configSpecialValues()
/usr/share/php/Horde/Registry.php:1197
10. Horde_Core_Block_Collection->getBlocksList()
/var/www/vhosts/horde/lib/Application.php:122
11. Horde_Core_Block_Collection->_loadBlocks()
/usr/share/php/Horde/Core/Block/Collection.php:159
12. Horde_Block_Metar->__construct()
/usr/share/php/Horde/Core/Block/Collection.php:500
13. class_exists() /var/www/vhosts/horde/lib/Block/Metar.php:21
14. spl_autoload_call()
15. Horde_Autoloader->loadClass()
16. Horde_Autoloader->_include() /usr/share/php/Horde/Autoloader.php:65

Details
The full error message is logged in Horde's log file, and is shown below
only to administrators. Non-administrative users will not see error details.

ParseError Object
(
    [message:protected] => syntax error, unexpected 'new' (T_NEW)
    [string:Error:private] => ParseError: syntax error, unexpected 'new'
(T_NEW) in /usr/share/php/Services/Weather.php:167
Stack trace:
#0 /usr/share/php/Horde/Autoloader.php(65):
Horde_Autoloader->_include('/usr/share/php/...')
#1 [internal function]: Horde_Autoloader->loadClass('Services_Weathe...')
#2 [internal function]: spl_autoload_call('Services_Weathe...')
#3 /var/www/vhosts/horde/lib/Block/Metar.php(21):
class_exists('Services_Weathe...')
#4 /usr/share/php/Horde/Core/Block/Collection.php(500):
Horde_Block_Metar->__construct('horde')
#5 /usr/share/php/Horde/Core/Block/Collection.php(159):
Horde_Core_Block_Collection->_loadBlocks()
#6 /var/www/vhosts/horde/lib/Application.php(122):
Horde_Core_Block_Collection->getBlocksList()
#7 /usr/share/php/Horde/Registry.php(1197):
Horde_Application->configSpecialValues('blocks')
#8 /usr/share/php/Horde/Config.php(1874):
Horde_Registry->callAppMethod('horde', 'configSpecialVa...', Array)
#9 /usr/share/php/Horde/Config.php(1803):
Horde_Config->_handleSpecials(Object(DOMElement))
#10 /usr/share/php/Horde/Config.php(602):
Horde_Config->_getEnumValues(Object(DOMElement))
#11 /usr/share/php/Horde/Config.php(712):
Horde_Config->_parseLevel(Array, Object(DOMNodeList), 'portal')
#12 /usr/share/php/Horde/Config.php(725):
Horde_Config->_parseLevel(Array, Object(DOMNodeList), '')
#13 /usr/share/php/Horde/Config.php(204):
Horde_Config->_parseLevel(Array, Object(DOMNodeList), '')
#14 /usr/share/php/Horde/Config/Form.php(58): Horde_Config->readXMLConfig()
#15 /var/www/vhosts/horde/admin/config/config.php(35):
Horde_Config_Form->__construct(Object(Horde_Variables), 'horde')
#16 {main}
    [code:protected] => 0
    [file:protected] => /usr/share/php/Services/Weather.php
    [line:protected] => 167
    [trace:Error:private] => Array
...
=======================================================================

The Horde log gives:

=======================================================================
2017-09-02T22:01:30+00:00 WARN: HORDE [horde] PHP ERROR: Declaration of
Horde_Form_Type_country::init($prompt = NULL) should be compatible with
Horde_Form_Type_enum::init($values, $prompt = NULL) [pid 10825 on line 0
of "/usr/share/php/Horde/Form/Type.php"]
2017-09-02T22:01:30+00:00 EMERG: HORDE [horde] ParseError: syntax error,
unexpected 'new' (T_NEW) in /usr/share/php/Services/Weather.php:167
Stack trace:
#0 /usr/share/php/Horde/Autoloader.php(65):
Horde_Autoloader->_include('/usr/share/php/...')
#1 [internal function]: Horde_Autoloader->loadClass('Services_Weathe...')
#2 [internal function]: spl_autoload_call('Services_Weathe...')
#3 /var/www/vhosts/horde/lib/Block/Metar.php(21):
class_exists('Services_Weathe...')
#4 /usr/share/php/Horde/Core/Block/Collection.php(500):
Horde_Block_Metar->__construct('horde')
#5 /usr/share/php/Horde/Core/Block/Collection.php(159):
Horde_Core_Block_Collection->_loadBlocks()
#6 /var/www/vhosts/horde/lib/Application.php(122):
Horde_Core_Block_Collection->getBlocksList()
#7 /usr/share/php/Horde/Registry.php(1197):
Horde_Application->configSpecialValues('blocks')
#8 /usr/share/php/Horde/Config.php(1874):
Horde_Registry->callAppMethod('horde', 'configSpecialVa...', Array)
#9 /usr/share/php/Horde/Config.php(1803):
Horde_Config->_handleSpecials(Object(DOMElement))
#10 /usr/share/php/Horde/Config.php(602):
Horde_Config->_getEnumValues(Object(DOMElement))
#11 /usr/share/php/Horde/Config.php(712):
Horde_Config->_parseLevel(Array, Object(DOMNodeList), 'portal')
#12 /usr/share/php/Horde/Config.php(725):
Horde_Config->_parseLevel(Array, Object(DOMNodeList), '')
#13 /usr/share/php/Horde/Config.php(204):
Horde_Config->_parseLevel(Array, Object(DOMNodeList), '')
#14 /usr/share/php/Horde/Config/Form.php(58): Horde_Config->readXMLConfig()
#15 /var/www/vhosts/horde/admin/config/config.php(35):
Horde_Config_Form->__construct(Object(Horde_Variables), 'horde')
#16 {main} [pid 10825 on line 74 of "/usr/share/php/Horde/ErrorHandler.php"]
=======================================================================

I guess I'm missing a dependency since the upgrade. But which one?

Thanks,
Michael


More information about the horde mailing list