Roots Discourse

Parse error: syntax error .../wp-password-bcrypt.php on line 54

After installing composer and setting up my local server I navigate to localhost (using ampps, efw.dev), I expect to get an “Error Establishing a Database Connection” message but instead get:

Parse error: syntax error, unexpected '[' in /Applications/AMPPS/www/efw/vendor/roots/wp-password-bcrypt/wp-password-bcrypt.php on line 54

I have tried updating composer and updating the vendor folder specifically in hopes of it just being an issue with versions. But I seem to be up to date everywhere. Because this is an installed file via the composer installation I am assuming the syntax error is part of a newer version?

Any guidance would be greatly appreciated.

Google this. You’re on an ancient PHP version.

1 Like

Thanks Ben,

duh, I am so embarrassed. Thank you.