syntax error
thopd88 opened this issue · 7 comments
An error occurred when the test failed and I take a look to Apache log :
PHP Parse error: syntax error, unexpected 'finally' (T_STRING), expecting catch (T_CATCH) in /var/www/html/jobe/application/controllers/restapi.php on line 228
System: CentOS 7
Installed:
apache
php
libapache2-mod-php
php-mcrypt
mysql-server
php-cli
octave
nodejs
git
python3
openjdk-9-jre
python3-pip
fp-compiler
pylint3
Jobe requires php 5.5 or later.
-- Richard
Yes I installed php 7. I switched back to ubuntu then, but still dont undertand why we have this error
I don't understand either. The message:
PHP Parse error: syntax error, unexpected 'finally' (T_STRING), expecting catch (T_CATCH) in
/var/www/html/jobe/application/controllers/restapi.php on line 228)
looks to me like it can only come from a version of PHP prior to 5.5. Can you please confirm what OS you're currently running on Jobe, the version of PHP it's using, what the output is from running the command
python3 simpletest.py
from within the jobe home directory, and what gets logged to the Apache error log while running that command.
What's the output from the command
php --version
?
Centos 7 apparently still comes with the outdated PHP 5.4. Your options:
- Don't use Centos. Ubuntu 16.04 is recommended.
- Upgrade PHP on Centos.
- Install Docker and run the Docker image of Jobe, JobeInABox
Richard