PHP Parse error: syntax error, unexpected ‘?’ in helpers.php 233

If I had to guess, I’d say you installed the PPA 7.1.8 as CLI only (php7-cli). You’re getting your version info from that, but your libapache2-mod-php package is still 14.04 main which is 5.6. Check your phpinfo in your browser to confirm the version. You might also consider migrating to Ubuntu 16.04 to get PHP 7.0 in main.

Leave a Comment