GuzzleHttp autoloader conflicts
-
Hi!
We use guzzlehttp library in our WordPress setup. After we installed Google Listings & Ads plugin we start getting fatal errors that certain functions from GuzzleHttp namespace are undefined. I investigated this issue and found that your plugin also uses guzzle library but with namespace prefixing. And the reason why we get those fatals is because of composer autoloader uses the same hash keys for static files for original (unprefixed) and your (prefixed) versions of guzzle library. So autoloader loads your’s version of guzzle and skips our’s because it thinks that those files are the same.
So there are two ways to fix this:
1. Change original guzzle package name in composer.json.
2. Change the path to src files of guzzle package.In both cases that will produce different hash keys in autoloader.
- The topic ‘GuzzleHttp autoloader conflicts’ is closed to new replies.