New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MAJOR_VERSION undefined class constant in src/utils.php #2744
Comments
This is not a bug? |
Talk with the people writing that tutorial... It seams like you have more than on guzzle installation loaded. |
Just in case anyone bumps into this too: Thanks @Nyholm for the tip. |
Is there any way that we can use Guzzle Library for all the PHP version >= 7.4 I need general for all the PHP version with latest. |
Guzzle version(s) affected: *7.0.1
PHP version: 7.2.24
cURL version: 7.58.0
Description
Getting an undefined class constant error when running the "vendor/bin/wp theme update -all" command from this tutorial
How to reproduce
On GAE standard environment, activate the GCS plugin on the live site and try to run any update on the local version. The error does not exist when GCS plugin is deactivated on live site during updates.
Additional context
vendor/bin/wp theme update --all --path=my-wordpress-projectPHP Fatal error: Uncaught Error: Undefined class constant 'MAJOR_VERSION' in /home/val-wp/vendor/guzzlehttp/guzzle/src/Utils.php:121
The text was updated successfully, but these errors were encountered: