Ingenico-ePayments / connect-extension-magento2

Ingenico Connect based Shopping Cart Extension for Magento 2.x
https://epayments.developer-ingenico.com/documentation/ecommerce-extensions/magento-2/
MIT License
4 stars 4 forks source link

Error: "Could not establish connection to Worldline Connect platform" in production mode - PHP 8.1 #29

Closed sergiuec closed 1 year ago

sergiuec commented 1 year ago

Hello, There is a deprecated function in sdk. It's reproducible only in production mode.

report.EMERGENCY: Unable to perform request using communicator configuration: Deprecated Functionality: curl_multi_exec(): Passing null to parameter #2 ($still_running) of type int is deprecated in /vendor/ingenico-epayments/connect-sdk-php/lib/Ingenico/Connect/Sdk/DefaultConnection.php on line 206 [] []

Fixed by defining the $runing variable before passing it to curl_multi_exec

@@ -202,6 +202,7 @@ private function executeCurlHandleShared($multiHandle, $curlHandle) { $running = 0;

PHP 8.1.17 Module Version: 3.0.2 Magento Version: Commerce Cloud 2.4.5-p2

bertterheide commented 1 year ago

@sergiuec which version of the SDK are you using? This should be fixed in 6.36.0 and you should be able to upgrade to that version without problems.

sergiuec commented 1 year ago

Looks like the version is: 6.38.0 composer.lock:

"name": "ingenico-epayments/connect-sdk-php",
"version": "6.38.0"

the command: composer update ingenico-epayments/connect-sdk-php returns "Nothing to install, update or remove"

In case may be useful this is the source from composer.lock:

"source": {
    "type": "git",
    "url": "https://github.com/Ingenico-ePayments/connect-sdk-php.git",
    "reference": "xx"
},
bertterheide commented 1 year ago

@sergiuec thanks. I’ll inform the team that develops the SDK.

bertterheide commented 1 year ago

@sergiuec since this should be fixed in the SDK I'm going to close this issue. Is that okay with you?

rob-spoor commented 1 year ago

Release 6.38.2 of the SDK should fix this issue.