Parse Error: syntax error, unexpected '['

I’m getting a “Parse Error: syntax error, unexpected ‘[’” message.

Hi,

I would think you’ve made a mistake by some bbcode, so that the Interpreter runs out with this error.

It was a clean install on a test site using the code from the sitecake “Website Integration” section…

can you show the code that you used by getting this error.
your information is cutted exactly by the info where the error is existent.
the error message of the php interpreter regulary writes further " in [filename].php on line 123"…

Sorry, I should’ve been more clear. I downloaded and installed the sitecake files, and created a new index.html file. I’ve not done any actual coding yet. The index.html file uses the basic code in the instructions from the “website integration” page of the docs. The full error I get is:
Parse error: syntax error, unexpected ‘[’ /sitecake/2.3.4/src/app.php on line 32

Ok, I don’t have the sources here, but I can imagine that you use a php version lower than 5.4 and the script uses something like this
$array = [ 'val1', 'val2' ];

if it is so, you have to change your php version to 5.4+, better 5.6 or 7.
another possibility is to change the code into this:
$array = array( 'val1', 'val2' );

otherwise please post the code from line 30 to 35 of the app.php

I was using 5.4 but I went ahead and pushed it up a couple points and it started working. Thanks for your help.