• Resolved libationblog

    (@libationblog)


    Going through setup using wp 5.6 and after I save all my values I get the following error:

    Fatal error: Uncaught Error: Call to undefined method GuzzleHttp\Utils::chooseHandler() in /home/qbfqsuu1obuf/public_html/Familyexotics.com/wp-content/plugins/mail-integration-365/libs/vendor/guzzlehttp/guzzle/src/functions.php:53 Stack trace: #0 /home/qbfqsuu1obuf/public_html/Familyexotics.com/wp-content/plugins/official-facebook-pixel/vendor/guzzlehttp/guzzle/src/HandlerStack.php(42): GuzzleHttp\choose_handler() #1 /home/qbfqsuu1obuf/public_html/Familyexotics.com/wp-content/plugins/official-facebook-pixel/vendor/guzzlehttp/guzzle/src/Client.php(65): GuzzleHttp\HandlerStack::create() #2 /home/qbfqsuu1obuf/public_html/Familyexotics.com/wp-content/plugins/mail-integration-365/libs/vendor/league/oauth2-client/src/Provider/AbstractProvider.php(132): GuzzleHttp\Client->__construct(Array) #3 /home/qbfqsuu1obuf/public_html/Familyexotics.com/wp-content/plugins/mail-integration-365/libs/vendor/thenetworg/oauth2-azure/src/Provider/Azure.php(44): League\OAuth2\Client\Provider\AbstractProvider->__construct(Array, Array) #4 /home/qbf in /home/qbfqsuu1obuf/public_html/Familyexotics.com/wp-content/plugins/mail-integration-365/libs/vendor/guzzlehttp/guzzle/src/functions.php on line 53

    There has been a critical error on this website. Please check your site admin email inbox for instructions.

    What should I do?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi, I believe ver. 1.0.4 of the plugin should address this if you’re still seeking to use it.

    Hi Edward,
    You are doing a great job with this free plugin! The instructions are great and easy to follow. I will donate for sure if everything works!
    Unfortunately I have the same problem. I followed the instructions carefully, but after saving the settings I get a critical error.
    I’m running WordPress 5.6 and plugin version 1.0.4.

    Hi Evan, thanks for the message. Having investigated further, it would appear that in libationblog’s case at least, the issue is down to another plugin (Facebook Pixel) loading the same “Guzzle” library via the PHP package manager Composer.

    Both Guzzle and Composer are required for a third party library I’m using that simplifies the OAuth process for connection to Mircosoft’s Graph API. However, it appears WordPress has known issues with dependency management when using Composer, with conflicts arising when plugins try and load the same libraries.

    To get around this I’ve added a unique prefix namespace to Composer’s autoloader function that should avoid any conflicts in future. I’ve also taken the opportunity to update the third party library to the latest version available. All such changes can be found in version 1.1.0 of the plugin. Hopefully this will resolve your issues.

    I should also note that it appears Guzzle officially requires PHP version 7.2.5 and above. As such, I’ve also changed the minimum supported PHP version for the plugin. However, I’ve tested on my own development platform using PHP 7.1.1 and WordPress 5.5.3, and I’ve yet to find an error being thrown.

    Hi Edward,
    Thank you so much for your fast response and the update of the plugin!
    After updating the plugin there is no critical issue anymore and it works for sending mail! Yoohoo! Thanks again! I will donate soon to support you! And I will give you a five star ranking.
    Merry Christmas!

    Thank Evan, glad it’s resolved the issue! Have a great Christmas and New Year!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘critical error on WP 5.6’ is closed to new replies.