Error_log once uploaded to the server

Hi All,

I have this issue once i uploaded all the code to the server, below are the error log,

[03-Sep-2020 09:56:37 UTC] PHP Parse error: syntax error, unexpected ‘:’, expecting ‘{’ in /home/investal/sample/vendor/symfony/polyfill-php80/bootstrap.php on line 23
[03-Sep-2020 09:57:11 UTC] PHP Parse error: syntax error, unexpected ‘:’, expecting ‘{’ in /home/investal/sample/vendor/symfony/polyfill-php80/bootstrap.php on line 23
[03-Sep-2020 09:57:11 UTC] PHP Stack trace:
[03-Sep-2020 09:57:11 UTC] PHP 1. {main}() /home/investal/sample/frontend/web/index.php:0
[03-Sep-2020 09:57:11 UTC] PHP 2. require() /home/investal/sample/frontend/web/index.php:5
[03-Sep-2020 09:57:11 UTC] PHP 3. ComposerAutoloaderInitced7a67ede8a74d05419c25b3d77f605::getLoader() /home/investal/sample/vendor/autoload.php:7
[03-Sep-2020 09:57:11 UTC] PHP 4. composerRequireced7a67ede8a74d05419c25b3d77f605() /home/investal/sample/vendor/composer/autoload_real.php:59

Kindly guide me how to solve it

Thanks.

Best Regards,
Ying Chor

What’s your PHP version? Looks like it’s old one.

@samdark Get from composer.json is showing “php”: “>=5.6.0” this is the old version? If not what version i may need to use? Please advise. Thanks.

The polyfill you’re getting error for requires at least 7.0.8: https://github.com/symfony/polyfill-php80/blob/master/composer.json#L23. It is not the part of the framework so I can’t help with getting rid of it. That’s something about your application.