[horde] syntax error, unexpected 'new' (T_NEW) - but might be a PHP7 incompatibilty issue
Michael J Rubinsky
mrubinsk at horde.org
Tue Mar 28 17:51:25 UTC 2017
Quoting 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
PEAR's Services_Weather is not compatible with PHP 7. You should uninstall it.
> 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
Ditto.
> Is this related to PHP7?
Yes.
> Any workaround possible?
Uninstall both packages. If you need the functionality of
PEAR_Services_Weather, you can use Horde_Service_Weather instead. Not
aware off hand of a replacement for Fstab.
>
> Thanks,
>
> Volker
>
>
>
> --
> Horde mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-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: smime.p7s
Type: application/pkcs7-signature
Size: 3282 bytes
Desc: S/MIME Signature
URL: <https://lists.horde.org/archives/horde/attachments/20170328/d8edae35/attachment.bin>
More information about the horde
mailing list