Hello Everyone,

Hope someone can help me out please. I am trying to install drupal 8 on localhost on XAMPP on Windows. But when I try it, I get the error message below. It doesn't even get me to the installation page.

"Parse error: syntax error, unexpected '[', expecting ')' in C:\xampp\htdocs\school\drupal\vendor\guzzlehttp\promises\src\functions.php on line 41"

I will appreciate your help please.

Thanks

Comments

silverwing’s picture

Make sure your php version is greater than 5.5.9
https://www.drupal.org/requirements

richakumari’s picture

Please check your php version.

taurnil.t’s picture

...and I'm still getting "Parse error: syntax error, unexpected '[', expecting ')' in /home4/arseneau/public_html/newdru/vendor/guzzlehttp/promises/src/functions.php on line 41"

Any thoughts?

apaderno’s picture

Check the server is really using that PHP version. If you get that error, it means PHP is not able to handle the new syntax for the array literals, which can only happen if the PHP version is older.