Parse error: syntax error, unexpected '?' in ... xxx.php

From semantic-mediawiki.org
< Installation‎ | Troubleshooting
Administrator manualInstallationInstallation/TroubleshootingParse error: syntax error, unexpected '?' in ... xxx.php

Parse error: syntax error, unexpected '?' in ... "update.php" on a PHP 7.x system

This means that you use PHP 5.6 as a command line default and try to run "update.php". The version check for PHP will not help you in giving useful feedback as you will receive a syntax error. 1

→ To resolve this you have to make sure that command line also uses PHP 7.x. Check back with your web hosting provider to make sure.

References

  1. ^  Semantic MediaWiki: GitHub issue gh:smw:4148