• Resolved Josh Kohlbach

    (@jkohlbach)


    Hi team… seeing some undefined function errors here:

    [29-Oct-2021 00:04:45 UTC] PHP Fatal error: Uncaught Error: Call to undefined function GuzzleHttp\choose_handler() in /var/www/html/wp-content/plugins/wp-stateless/lib/Google/vendor/guzzlehttp/guzzle/src/HandlerStack.php:42
    Stack trace:
    #0 /var/www/html/wp-content/plugins/wp-stateless/lib/Google/vendor/guzzlehttp/guzzle/src/Client.php(65): GuzzleHttp\HandlerStack::create()
    #1 /var/www/html/wp-content/plugins/wp-stateless/lib/Google/src/Google/Client.php(1157): GuzzleHttp\Client->__construct(Array)
    #2 /var/www/html/wp-content/plugins/wp-stateless/lib/Google/src/Google/Client.php(1112): wpCloud\StatelessMedia\Google_Client\Google_Client->createDefaultHttpClient()
    #3 /var/www/html/wp-content/plugins/wp-stateless/lib/Google/src/Google/Client.php(381): wpCloud\StatelessMedia\Google_Client\Google_Client->getHttpClient()
    #4 /var/www/html/wp-content/plugins/wp-stateless/lib/Google/src/Google/Client.php(860): wpCloud\StatelessMedia\Google_Client\Google_Client->authorize()
    #5 /var/www/html/wp-content/plugins/wp-stateless/lib/Google/src/Google/Service/Resource.ph in /var/www/html/wp-content/plugins/wp-stateless/lib/Google/vendor/guzzlehttp/guzzle/src/HandlerStack.php on line 42

    These errors were showing when used in conjunction on a site with WooCommerce Memberships when editing a Membership Plan.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Josh Kohlbach

    (@jkohlbach)

    Narrowed to your Elementor integration which hooks into save_post and tries to delete CSS files. For some reason this is firing on WooCommerce Products and isn’t defensive enough to tell that it doesn’t need to do its thing.

    You guys might want to look into this.

    Thread Starter Josh Kohlbach

    (@jkohlbach)

    Hi team, any chance you can fix this?

    @jkohlbach I’m currently on a project that is encountering the same issue – I inherited a whole stack of woocommerce / elementor / addons and am trying to get GCP bucket running using wp-stateless and hitting that guzzle error. Did you find a solution for this?

    Thread Starter Josh Kohlbach

    (@jkohlbach)

    3 months is a long time so forgive me but my memory is a bit hazy. I think I ended up updating Guzzle or something along those lines.

    Hope that helps.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Guzzle undefined function’ is closed to new replies.