Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By menre on
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
php version?
Make sure your php version is greater than 5.5.9
https://www.drupal.org/requirements
Please check your php version
Please check your php version.
My server is running PHP 5.7
...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?
---
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.
https://www.drupal.org/docs/8
https://www.drupal.org/docs/8/system-requirements/overview