Fix: Guzzle Version Error
-
I am getting this fatal error when saving an API key in the plugin:
Fatal error: Cannot use lexical variable $eventName as a parameter name in .../wp-content/plugins/open-badge-factory/vendor/guzzlehttp/guzzle/src/Event/Emitter.php on line 48
Looks like this Guzzle version needs to be bumped up to be compatible with PHP v7.1+. This error is resolved when you use the latest v5.3 guzzle library found here:
https://github.com/guzzle/guzzle/tree/5.3
Simply replace the files here with the latest version of guzzle v5.3:
../vendor/guzzlehttp/guzzle
- The topic ‘Fix: Guzzle Version Error’ is closed to new replies.