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
Avoid Guzzle 6.5.0 #5326
Comments
More specifically - I get this error any time I attempt to install a plugin or update craft. I'm using an Apache server. When I try to downgrade guzzle - I get this error: Problem 1 |
`PHP error from log file: [10-Dec-2019 15:11:46 UTC] PHP Warning: Use of undefined constant IDNA_NONTRANSITIONAL_TO_ASCII - assumed 'IDNA_NONTRANSITIONAL_TO_ASCII' (this will throw an Error in a future version of PHP) in /home/ambidustrious/domain.com/vendor/craftcms/cms/src/web/Request.php on line 1154 |
Looks like this only affects servers with ICU < 4.6, which is pretty old, and a fix is being worked on, so expecting this will resolve itself in the next day or so, and probably not worth a Craft release. In the meantime if you are getting bit by this, you can force Guzzle < 6.5.0 by adding this to your composer.json: "require": {
"guzzlehttp/guzzle": "~6.4.0",
"...": "..."
} Then run Will keep this open for now and reassess in a couple days. |
Thanks Brandon - That did the trick |
Not thrilled with Guzzle’s reaction time on this, so just released Craft 3.3.18.2 which explicitly excludes Guzzle 6.5.0. The fix is slated for Guzzle 6.5.1, so I’m allowing 6.5.1+ for whenever that does get released. |
Thanks for the intervention @brandonkelly! |
worked for me laravel 5.8.35 this 2 other downgrade: |
Description
A client of mine reported that he could no longer upload photos to an S3 bucket. The upload failed with the following message:
I tracked the issue down to Guzzle 6.5.0 which was just released. They use the constant without checking for its existence. There's an issue on their project for this: guzzle/guzzle#2448
Awaiting a new release from them, I'd recommend Craft to downgrade the included Guzzle to 6.4.1.
Users of Craft can – for now – downgrade manually by invoking:
To give you an idea of the scope of this issue: all CentOS 6 servers for example are affected by this.
Steps to reproduce
Additional info
The text was updated successfully, but these errors were encountered: