Web installation SS 4.0.1 - Parse error: syntax error, unexpected ':', expecting ';' or '{' in /public_html/vendor/symfony/filesystem/Filesystem.php on line 727
SqualaDesign opened this issue · 3 comments
SqualaDesign commented
robbieaverill commented
Hey @SqualaDesign would you mind providing the version of PHP you're using please?
robbieaverill commented
Ah, I think I know what has happened here. You've probably downloaded the archive from the SilverStripe website which was built with PHP 7, and you're running PHP 5.6?
To fix this, navigate into your project directory, delete the vendor
folder and run composer install
. This will re-install all of your dependencies, but using versions of packages like symfony/filesystem that are PHP 5.6 compatible.
robbieaverill commented
Closing as a duplicate of silverstripe/silverstripe-framework#7709.
If you need help fixing this, please follow up on that issue.