mollie / WooCommerce

Official Mollie extension for WooCommerce
https://wordpress.org/plugins/mollie-payments-for-woocommerce/
Other
131 stars 53 forks source link

Guzzle / PHP Fatal error: Uncaught Error: Call to undefined function _PhpScoper #235

Closed nickurt closed 6 years ago

nickurt commented 6 years ago

Hello,

After that we tried to enable the Mollie Subscriptions Gateway [for WooCommerce Subscriptions] we hitted this error/exception [HTTP 500], after that, most pages are broken and gives every time this error in log.

How can we solve this?

18008#0: *17758 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to undefined function _PhpScoper5b6804f9734c8\GuzzleHttp\choose_handler() in [..]/httpdocs/wp-content/plugins/mollie-payments-for-woocommerce/includes/mollie-api-php/vendor/guzzlehttp/guzzle/src/HandlerStack.php:37

Stack trace:

#0 [..]/httpdocs/wp-content/plugins/mollie-payments-for-woocommerce/includes/mollie-api-php/vendor/guzzlehttp/guzzle/src/Client.php(64): _PhpScoper5b6804f9734c8\GuzzleHttp\HandlerStack::create()

#1 [..]/httpdocs/wp-content/plugins/mollie-payments-for-woocommerce/includes/mollie-api-php/src/MollieApiClient.php(144): _PhpScoper5b6804f9734c8\GuzzleHttp\Client->__construct(Array)

#2 [..]/httpdocs/wp-content/plugins/mollie-payments-for-woocommerce/includes/mollie/wc/helper/api.php(46): Mollie\Api\MollieApiClient->__construct()

#3 [..]/httpdocs/wp-content/plugins/mollie-payments-for-woocommerce/includes/mollie/wc/" while reading response header from upstream

The used software/versions we are using ...

WordPress - 4.9.8 WooCommerce - 3.4.4 WooCommerce Subscriptions - 2.3.2 Mollie Payments for WooCommerce - 4.0.1

PHP 7.2.8 Nginx

Thanks

davdebcom commented 6 years ago

What other plugin are you using on that site?

If you need to roll-back, find the previous versions here: https://wordpress.org/plugins/mollie-payments-for-woocommerce/advanced/#previous-versions

f3bruary commented 6 years ago

I was getting this during the update. Nothing seems to be broken though.

[06-Aug-2018 19:27:36 UTC] PHP Fatal error:  Uncaught Error: Class '_PhpScoper5b6804f9734c8\GuzzleHttp\Client' not found in /var/www/html/wp-content/plugins/mollie-payments-for-woocommerce/includes/mollie-api-php/src/MollieApiClient.php:144
Stack trace:
#0 /var/www/html/wp-content/plugins/mollie-payments-for-woocommerce/includes/mollie/wc/helper/api.php(46): Mollie\Api\MollieApiClient->__construct()
#1 /var/www/html/wp-content/plugins/mollie-payments-for-woocommerce/includes/mollie/wc/helper/status.php(153): Mollie_WC_Helper_Api->getApiClient(false)
#2 /var/www/html/wp-content/plugins/mollie-payments-for-woocommerce/includes/mollie/wc/helper/settings.php(177): Mollie_WC_Helper_Status->getMollieApiStatus()
#3 /var/www/html/wp-content/plugins/mollie-payments-for-woocommerce/includes/mollie/wc/helper/settings.php(299): Mollie_WC_Helper_Settings->getPluginStatus()
#4 /var/www/html/wp-includes/class-wp-hook.php(286): Mollie_WC_Helper_Settings->addGlobalSettingsFields(Array)
#5 /var/www/html/wp-includes/plugin.php(203): WP_Hook->apply_filters(Array, Array)
#6 in /var/www/html/wp-content/plugins/mollie-payments-for-woocommerce/includes/mollie-api-php/src/MollieApiClient.php on line 144
ahmed-sigmalux commented 6 years ago

This is breaking our sites, too.

davdebcom commented 6 years ago

It will take some more time to investigate this with Mollie in the Mollie API PHP client. So I reverted the changes. Please update to 4.0.2 which I just released. Also see: https://github.com/mollie/WooCommerce/wiki/Composer-Guzzle-conflicts

Please email me on mollie@paytium.nl if you need further assistance.