Parse error

Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /var/xxxxxxxxxxxxxxxxxxxxxxxxxxxxx/httpdocs/vendor/elgg/elgg/engine/classes/Elgg/Di/ServiceProvider.php on line 127

 

Advice pls

I have just installed elgg and got the above

 

  • Which version of Elgg are you trying to install?

    One possible reason for the error is that your PHP version does not fulfill the requirement of the Elgg version you are trying to install. For example, Elgg 2.3 requires PHP version 5.6 at minimum.