Thread tagged as: Error, Installation, Api

Possible problem on latest core


I downloaded the latest perch version to build a new site and as I went to add my first page, based on a template I got this error

Parse error: syntax error, unexpected '[', expecting ')' in /mydomain/central/core/apps/content/modes/page.edit.pre.php on line 57

I managed to get a page up and when I went to view the page options it came back up. I tried a fresh install of the core folder and it appeared again.

Andrew Cetnarskyj

Andrew Cetnarskyj 0 points

  • 5 years ago

Actually, you may want to check your running the latest version of PHP. This error is expecting an array() but the new shorthand [] was being used.

Updating php will resolve the problem.

Rachel Andrew

Rachel Andrew 394 points
Perch Support

Andrew - please post your Diagnostics Report if you would like us to help. Thanks!

Ugh, sorry my bad it was a setting in my MAMP.

Thanks for the reply