akeneo / magento2-connector-community

Akeneo Connector for Magento 2
Open Software License 3.0
80 stars 87 forks source link

Cannot install Akeneo Connector on default Magento 2.4.7 & PHP 8.2 #688

Open nooneelse opened 2 months ago

nooneelse commented 2 months ago

Environment and configuration

 - Default Magento 2.4.7
 - Akeneo Connector Extension 104.3.7
 - PHP 8.2

Steps to reproduce

  1. Install Magento 2.4.7 via composer

Expected result

  1. Normal installation of Akeneo Connector

Actual result

image

`./composer.json has been updated Running composer update akeneo/module-magento2-connector-community Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages.

Problem 1

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions. You can also try re-running composer require with an explicit version constraint, e.g. "composer require akeneo/module-magento2-connector-community:*" to figure out if any version is installable, or "composer require akeneo/module-magento2-connector-community:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.`

zespolit-bj commented 2 months ago

I have the same problem in Magento 2.4.7 + PHP 8.3 setup.

When I indicated that I require a specific version of connector 104.3.7, the message I get indicates a version mismatch for symfony/http-client dependency.

Problem 1

Connector in its composer.json calls out "symfony/http-client: "^5", and the new Magento installation uses version 7.

Requesting for hint to resolve this issue.

akosglue commented 1 month ago

It succeeded for me with the -W option but it downgraded a couple of packages of course, for example psr/http-message, symfony/http-client, symfony/http-kernel etc

nooneelse commented 1 month ago

@akosglue sure but only install version 103.3.1 with error on setup:upgrade image

akosglue commented 1 month ago

how do you mean 'only install version 103.3.1 '? The composer install is successful with connector 104.3.7, php 8.3.0 and magento 2.4.7 (by using the -W switch and so the aforementioned downgrades of a few packages) And setup:upgrade doesn't give an error. On your screenshot it is php 8.2., isn't it the problem maybe?