PHP error: GuzzleHttp does not recognize cURL features
-
Dear Mollie devs,
After seeing several comparable topics, like https://www.ads-software.com/support/topic/uncaught-error-call-to-undefined-function-guzzlehttpchoose_handler/ in this forum, I am posting the following report.
Since the 6.0 update of the Mollie WordPress plugin I am seeing the following PHP errors when visiting the website (hostname replaced with ‘example.com’):
AH01071: Got error 'PHP message: PHP Fatal error: Uncaught RuntimeException: GuzzleHttp requires cURL, the allow_url_fopen ini setting, or a custom HTTP handler. in /var/www/vhosts/example.com/httpdocs/content/plugins/mollie-payments-for-woocommerce/vendor/guzzlehttp/guzzle/src/functions.php:119\nStack trace:\n#0 /var/www/vhosts/example.com/httpdocs/content/plugins/mollie-payments-for-woocommerce/vendor/guzzlehttp/guzzle/src/HandlerStack.php(42): GuzzleHttp\\choose_handler()\n#1 /var/www/vhosts/example.com/httpdocs/content/plugins/mollie-payments-for-woocommerce/vendor/mollie/mollie-api-php/src/MollieApiClient.php(296): GuzzleHttp\\HandlerStack::create()\n#2 /var/www/vhosts/example.com/httpdocs/content/plugins/mollie-payments-for-woocommerce/src/Mollie/WC/Helper/Api.php(46): Mollie\\Api\\MollieApiClient->__construct()\n#3 /var/www/vhosts/example.com/httpdocs/content/plugins/mollie-payments-for-woocommerce/src/Mollie/WC/Helper/Data.php(341): Mollie_WC_Helper_Api->getApiClient()\n#4 /var/www/v...', referer: https://example.com/
Strange and incorrect, because the cURL functions in PHP are actually enabled. The
allow_url_fopen
function is disabled on purpose because of security reasons.Can we use the Mollie plugin without having to allow insecure PHP settings like
allow_url_fopen
?And furthermore, have you considered looking at built-in WordPress functions for these types of requests, like for example https://developer.www.ads-software.com/reference/functions/wp_remote_request/ ?
Best regards,
–Vincent
- The topic ‘PHP error: GuzzleHttp does not recognize cURL features’ is closed to new replies.