Uncaught Error: Call to undefined function
-
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!
- The topic ‘Uncaught Error: Call to undefined function’ is closed to new replies.