View more context

 

Ken Sander

Working in my Mac dev enviroment with MAMP and PHP 7. OSX ships with php 5.4 so I was faking the php version in Silverstripe’s composer file with platform config — <https://getcomposer.org/doc/06-config.md#platform&gt;

That all worked fine but tonight upgrading some sites to 4.4.4 and getting the error:

PHP Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' i in VendorPlugin.php when I run composer update

I updated composer as well, so not sure if it’s something with that.

Don’t really want to install PHP 7 and update path for mac CLI version as it’s not needed as MAMP handles all that.

Show 2 attachment(s)
getcomposer.org  
Config - Composer

A Dependency Manager for PHP

getcomposer.org  
Config - Composer

A Dependency Manager for PHP

Hide attachment content
nightjarnz

@Ken Sander then you're choosing to use an end of life PHP version, where support over 3 years ago.

null

> OSX ships with php 5.4 How old is your version of OSX? o.o

nightjarnz

@null > MAMP Not sure if this refers to the general setup, or the "package" install

jkersu

So I'm trying to migrate existing assets to use S3 storage. I've copied the files from my local .protected folder and have moved them into the protected folder on the S3 bucket. I've also moved the other public files into the public folder on the S3 bucket. I've then installed the silverstripe-s3 module. But the files in AssetAdmin are saying File Not Found.. am I missing a step?

Firesphere

By faking the PHP version, you have an incompatible installation, PHP7 is not compatible with PHP5