Title: Uncaught Error: Call to undefined function
Last modified: May 9, 2021

---

# Uncaught Error: Call to undefined function

 *  [maplehoney](https://wordpress.org/support/users/maplehoney/)
 * (@maplehoney)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/uncaught-error-call-to-undefined-function-5/)
 * Hi there,
 * My WooCommerce subscriptions are having “failed-scheduled-actions” wherein it
   fails to collect payment from scheduled due date. Upon checking error logs, the
   reports always show that the error is caused by your plugin.
 * Here is a sample:
 *     ```
       04-28-2021 @ 15:25:50 - scheduled action 166567 (subscription payment) failed to finish processing due to the following error: Uncaught Error: Call to undefined function GuzzleHttp\Psr7\stream_for() in /var/www/vhosts/DOMAIN/httpdocs/wp-content/plugins/post-smtp/Postman/Postman-Mail/google-api-client/vendor/guzzlehttp/psr7/src/MessageTrait.php:126
       Stack trace:
       #0 /var/www/vhosts/DOMAIN/httpdocs/wp-content/plugins/post-smtp/Postman/Postman-Mail/google-api-client/vendor/google/apiclient/src/Google/Http/MediaFileUpload.php(219): GuzzleHttp\Psr7\Request->getBody()
       #1 /var/www/vhosts/DOMAIN/httpdocs/wp-content/plugins/post-smtp/Postman/Postman-Mail/google-api-client/vendor/google/apiclient/src/Google/Http/MediaFileUpload.php(92): Google_Http_MediaFileUpload->process()
       #2 /var/www/vhosts/DOMAIN/httpdocs/wp-content/plugins/post-smtp/Postman/Postman-Mail/PostmanGmailApiModuleZendMailTransport.php(210): Google_Http_MediaFileUpload->__construct(Object(Google_Client), Object(GuzzleHttp\Psr7\Request), 'message/rfc822', 'X-Mailer: Postm...', true, 1048576)
       #3 /var/www/vhosts/DOMAIN/httpdocs/wp-content/plugins/po
       04-28-2021 @ 15:25:50 - action args: subscription_id: 85924
       04-28-2021 @ 15:37:52 - scheduled action 166559 (subscription payment) failed to finish processing due to the following error: Uncaught Error: Call to undefined function GuzzleHttp\Psr7\stream_for() in /var/www/vhosts/DOMAIN/httpdocs/wp-content/plugins/post-smtp/Postman/Postman-Mail/google-api-client/vendor/guzzlehttp/psr7/src/MessageTrait.php:126
       Stack trace:
       #0 /var/www/vhosts/DOMAIN/httpdocs/wp-content/plugins/post-smtp/Postman/Postman-Mail/google-api-client/vendor/google/apiclient/src/Google/Http/MediaFileUpload.php(219): GuzzleHttp\Psr7\Request->getBody()
       #1 /var/www/vhosts/DOMAIN/httpdocs/wp-content/plugins/post-smtp/Postman/Postman-Mail/google-api-client/vendor/google/apiclient/src/Google/Http/MediaFileUpload.php(92): Google_Http_MediaFileUpload->process()
       #2 /var/www/vhosts/DOMAIN/httpdocs/wp-content/plugins/post-smtp/Postman/Postman-Mail/PostmanGmailApiModuleZendMailTransport.php(210): Google_Http_MediaFileUpload->__construct(Object(Google_Client), Object(GuzzleHttp\Psr7\Request), 'message/rfc822', 'X-Mailer: Postm...', true, 1048576)
       #3 /var/www/vhosts/DOMAIN/httpdocs/wp-content/plugins/po
       04-28-2021 @ 15:37:52 - action args: subscription_id: 89330
       04-28-2021 @ 18:01:36 - scheduled action 166571 (subscription payment) failed to finish processing due to the following error: Uncaught Error: Call to undefined function GuzzleHttp\choose_handler() in /var/www/vhosts/DOMAIN/httpdocs/wp-content/plugins/woocommerce-xero/vendor/guzzlehttp/guzzle/src/HandlerStack.php:42
       Stack trace:
       #0 /var/www/vhosts/DOMAIN/httpdocs/wp-content/plugins/woocommerce-xero/vendor/guzzlehttp/guzzle/src/Client.php(65): GuzzleHttp\HandlerStack::create()
       #1 /var/www/vhosts/DOMAIN/httpdocs/wp-content/plugins/woocommerce-xero/vendor/league/oauth2-client/src/Provider/AbstractProvider.php(132): GuzzleHttp\Client->__construct(Array)
       #2 /var/www/vhosts/DOMAIN/httpdocs/wp-content/plugins/woocommerce-xero/vendor/league/oauth2-client/src/Provider/GenericProvider.php(99): League\OAuth2\Client\Provider\AbstractProvider->__construct(Array, Array)
       #3 /var/www/vhosts/DOMAIN/httpdocs/wp-content/plugins/woocommerce-xero/includes/class-wc-xr-oauth20-storage.php(208): League\OAuth2\Client\Provider\GenericProvider->__construct(Array)
       #4 /var/www/vhosts/DOMAIN/httpdocs/wp-content/plugins/wo
       04-28-2021 @ 18:01:36 - action args: subscription_id: 83322
       04-29-2021 @ 09:26:35 - scheduled action 166565 (subscription payment) failed to finish processing due to the following error: Uncaught Error: Call to undefined function GuzzleHttp\choose_handler() in /var/www/vhosts/DOMAIN/httpdocs/wp-content/plugins/woocommerce-xero/vendor/guzzlehttp/guzzle/src/HandlerStack.php:42
       Stack trace:
       #0 /var/www/vhosts/DOMAIN/httpdocs/wp-content/plugins/woocommerce-xero/vendor/guzzlehttp/guzzle/src/Client.php(65): GuzzleHttp\HandlerStack::create()
       #1 /var/www/vhosts/DOMAIN/httpdocs/wp-content/plugins/woocommerce-xero/vendor/league/oauth2-client/src/Provider/AbstractProvider.php(132): GuzzleHttp\Client->__construct(Array)
       #2 /var/www/vhosts/DOMAIN/httpdocs/wp-content/plugins/woocommerce-xero/vendor/league/oauth2-client/src/Provider/GenericProvider.php(99): League\OAuth2\Client\Provider\AbstractProvider->__construct(Array, Array)
       #3 /var/www/vhosts/DOMAIN/httpdocs/wp-content/plugins/woocommerce-xero/includes/class-wc-xr-oauth20-storage.php(208): League\OAuth2\Client\Provider\GenericProvider->__construct(Array)
       #4 /var/www/vhosts/DOMAIN/httpdocs/wp-content/plugins/wo
       04-29-2021 @ 09:26:35 - action args: subscription_id: 87314
       ```
   
 * We have already applied the fixes advised by WooCommerce, however we keep encountering
   the same error and our logs report the same error all the time.
 * How can we fix this, please? We have lost a chunk of our revenue due to these
   missed scheduled payments and have to manually bill our clients since WooCommerce
   cannot resend these missed payments.
 * Thank you!

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

 *  [yehudah](https://wordpress.org/support/users/yehudah/)
 * (@yehudah)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/uncaught-error-call-to-undefined-function-5/#post-14417830)
 * Hi,
 * This is a new installation? if not how long Post SMTP worked without issues with
   woocommerce subscriptions?
 *  Thread Starter [maplehoney](https://wordpress.org/support/users/maplehoney/)
 * (@maplehoney)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/uncaught-error-call-to-undefined-function-5/#post-14418057)
 * Hi there,
 * Had the plugin for a long time now and the first error was reported April 9th.
   
   Is there any other information you’d need?
 * Thank you!

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

The topic ‘Uncaught Error: Call to undefined function’ is closed to new replies.

 * ![](https://ps.w.org/post-smtp/assets/icon-128x128.gif?rev=3209655)
 * [Post SMTP – Complete Email Deliverability and SMTP Solution with Email Logs, Alerts, Backup SMTP & Mobile App](https://wordpress.org/plugins/post-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/post-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-smtp/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [maplehoney](https://wordpress.org/support/users/maplehoney/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/uncaught-error-call-to-undefined-function-5/#post-14418057)
 * Status: not resolved