[horde] syntax error, unexpected 'new' (T_NEW) - but might be a PHP7 incompatibilty issue

Jan Schneider jan at horde.org
Tue Mar 28 17:22:52 UTC 2017


Zitat von Volker Then <horde40 at volkerthen.com>:

> Hi,
>
> calling admin/config/config.php?app=horde gives an error:
>
> A fatal error has occurred
>
> syntax error, unexpected 'new' (T_NEW)
>
> 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
>
>
> Similiar error when opening the test page test.php:
>
>
> A fatal error has occurred
>
> syntax error, unexpected 'new' (T_NEW)
>
> in /usr/share/php/File/Fstab.php:110
>
> 1. Horde_Test->pearModuleCheck() /var/www/h4/test.php:135
> 2. class_exists() /var/www/h4/lib/Test.php:619
> 3. spl_autoload_call()
> 4. Horde_Autoloader->loadClass()
> 5. Horde_Autoloader->_include() /usr/share/php/Horde/Autoloader.php:65
>
> ParseError Object
> (
>     [message:protected] => syntax error, unexpected 'new' (T_NEW)
>     [string:Error:private] => ParseError: syntax error, unexpected  
> 'new' (T_NEW) in /usr/share/php/File/Fstab.php:110
>
>
>
> Is this related to PHP7? Any workaround possible?
>
> Thanks,
>
> Volker

Neither of these 3rd-party packages are PHP7-ready. Uninstall  
Services_Weather and File_Fstab.

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



More information about the horde mailing list