Open jpwab opened 2 years ago
Same error here, but it's not because of php8.1 but a conflict in php-http/guzzle6-adapter vs guzzlehttp/guzzle 7
Yes, same problem. Please fix this issue.
I created a patch for this.
--- /dev/null
+++ ../Helper/Authenticator.php
@@ -5,7 +5,6 @@
use Akeneo\Pim\ApiClient\AkeneoPimClientInterface;
use Akeneo\Pim\ApiClient\AkeneoPimClientBuilder;
use Akeneo\Connector\Helper\Config as ConfigHelper;
-use Http\Adapter\Guzzle6\Client;
use Http\Factory\Guzzle\StreamFactory;
use Http\Factory\Guzzle\RequestFactory;
@@ -64,7 +63,7 @@
/** @var AkeneoPimClientBuilder $akeneoClientBuilder */
$akeneoClientBuilder = new AkeneoPimClientBuilder($baseUri);
- $akeneoClientBuilder->setHttpClient(new Client());
+ $akeneoClientBuilder->setHttpClient(new \GuzzleHttp\Client());
$akeneoClientBuilder->setStreamFactory(new StreamFactory());
$akeneoClientBuilder->setRequestFactory(new RequestFactory());
Install the patch as
"akeneo/module-magento2-connector-community": {
"fix Guzzle6 Client": "patches/akeneo-module-magento2-connector-community-helper-authenticator-php.patch"
},
And add the following in the composer replace section
"php-http/guzzle6-adapter": "*"
Hello @jpwab , @anvanza @PieterCappelle ,
We have officially released the compatibility for Magento 2.4.4 and PHP 8.1 in the latest 103.0.0 version of the connector. Thanks a lot for your feedback on the possible issues and fixes to apply!
Regards,
Environment and configuration
Steps to reproduce
Expected result
Actual result