Update Error PHP

Hi, i’m using nethserver and installed voip PBX. It installed Freepbx and its working. Now i want to update and i get some error.
It starts with :
fwconsole
PHP Parse error: syntax error, unexpected ‘class’ (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or ‘{’ or ‘$’ in /var/www/html/freepbx/admin/libraries/Composer/vendor/symfony/translation/Translator.php on line 90
Whoops\Exception\ErrorException: syntax error, unexpected ‘class’ (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or ‘{’ or ‘$’ in file /var/www/html/freepbx/admin/libraries/Composer/vendor/symfony/translation/Translator.php on line 90
Stack trace:

  1. Whoops\Exception\ErrorException->() /var/www/html/freepbx/admin/libraries/Composer/vendor/symfony/translation/Translator.php:90
    [[email protected] translation]#

What to do? Someone has an hint?

what is the version of PHP? it looks the problem from symfony.

Hi, it’s:

[[email protected] ~]# php -v

PHP 5.4.16 (cli) (built: Apr 12 2018 19:02:01)
Copyright © 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright © 1998-2013 Zend Technologies

FreePBX 14 requires php 5.6.

Okay, i update my server and now it seems to be running without errors.
Thanks.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.