-
- 93 Posts
Hello,
Problem with a fresh install of Revo on Media Temple servers - parse error in modx.class.php - it goes through all the usual db checks fine - lovely green ticks.
And when when close to completion at;
/setup/index.php?action=complete
It gives this error;
Parse error: syntax error, unexpected '[' in /nfs/c04/h01/mnt/xxxxx/domains/test2.merseytribe.co.uk/html/core/model/modx/modx.class.php on line 283
Details
Apache: 2.2.22
MySQL: 5.1.66
PHP: 5.6.21
Modx Rev 2.7.0
I've got a few other Modx Rev sites, all running 2.7.0 and they are working fine. But I've tried this now on 2 sub domains, used a couple of different dbs and also downloaded and unzipped the Modx package twice in case of a file corruption but still the same error messages for all attempts.
Any ideas ?
Thanks, David
Are you sure you're on PHP 5.6, and not on 5.3 or earlier? Line 283 of modx.class.php uses short array syntax which is for 5.4 and up.