SuiteCRM Error Upgrading 8.0.1 to 8.1.2


I have tried to upgrade SuiteCRM 8.0.1 to 8.1.2 using the following command:
./bin/console suitecrm:app:upgrade -t SuiteCRM-8.1.2

However an error was generated:
PHP Parse error: syntax error, unexpected ‘:’, expecting ‘{’ in /home/hermes/public_html/vendor/symfony/polyfill-php80/bootstrap.php on line 23

Any idea how to fix this error ?


What is your PHP version? Is it within the allowed versions?

There are many people getting that error, not just with SuiteCRM…:
PHP Parse error: syntax error, unexpected ‘:’, expecting ‘{’ in vendor/symfony/polyfill-php80/bootstrap.php on line 23 - Google Search

I have test PHP 7.4 and 8.0 - same error is reported for both versions.


I doubt that this is SuiteCRM-related, but still you might want to report it on the Issues list on Github:

Maybe we need to grab a new version of that 3rd party package that is causing the error…

It just helped me. Thanks

I reported the problem on Github 10 days ago but no one had picked it up yet.

Can you please provide the detail how you fixed this problem if you know the answer?


The problem has been resolved.

I have successfully upgrade to 8.1.3


How exactly was it resolved?

I created and used a phpinfo test page to confirm SuiteCRM webhost was running a supported version of php.

However I did not check the version of php the shell was using to run the upgrade script. In my case the shell was using a different and old version of php which generated the errors.

I updated the version of php the shell was using to 7.4 and then the upgrade script completed the upgrade successful . SuiteCRM appears to run OK with the limited testing done so far.

I hope that helps the community.

1 Like