Roots Discourse

WPCLI + bedrock

Hi

I am using WPCLI. And getting the error below.

-bash-4.2$ wp db check                                                                                           
PHP Parse error:  syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARI
ABLE) or '{' or '$' in /var/www/u916199/data/www/site/stage/vendor/roots/wp-config/src/Config.php on line 37 

PHP 7.2 running on Apache. Shared hosting.

I’m having this same issue. It happens with all wp-cli commands. The same site works fine when running locally (with Laravel Homestead) and on a different server, so I assume it has something to do with the server. This definitely isn’t the first issue like that I’ve run into on this project.

Current server config is through Plesk running PHP 7.3.15 with nginx.

Hey,
for me that was an autoloader error, I mean not the one from composer, but in what order other plugins load.

This topic was automatically closed after 42 days. New replies are no longer allowed.