magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.5k stars 9.3k forks source link

2.4.7-p1 incompatible with magento/extension-b2b #38858

Closed edwinljacobs closed 2 months ago

edwinljacobs commented 3 months ago

Preconditions and environment

magento/extension-b2b cannot be installed with magento/product-enterprise-edition:2.4.7-p1

This is due to the following composer error:

╰─$ composer update
Gathering patches for root package.
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - magento/extension-b2b[1.4.0, ..., 1.4.2] require magento/framework >=103.0.6 <=103.0.7 -> satisfiable by magento/framework[103.0.6-beta1, ..., 103.0.7].
    - You can only install one version of a package, so only one of these can be installed: magento/framework[100.0.2, ..., 100.2.0-rc20, 101.0.0-rc21, ..., 101.0.12, 102.0.0, ..., 102.0.7-p3, 103.0.0-beta1, ..., 103.0.7-p1].
    - magento/product-community-edition 2.4.7-p1 requires magento/framework 103.0.7-p1 -> satisfiable by magento/framework[103.0.7-p1].
    - magento/product-enterprise-edition 2.4.7-p1 requires magento/product-community-edition 2.4.7-p1 -> satisfiable by magento/product-community-edition[2.4.7-p1].
    - Root composer.json requires magento/product-enterprise-edition 2.4.7-p1 -> satisfiable by magento/product-enterprise-edition[2.4.7-p1].
    - Root composer.json requires magento/extension-b2b ^1.4 -> satisfiable by magento/extension-b2b[1.4.0, 1.4.1, 1.4.2].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions

So in essence Enterprise needs community which needs magento/framework 103.0.7-p1. magento/extension-b2b needs magento/framework: <= 103.0.7 So we cannot install. I suspect that its just a version constraint issue and there is no incompatibility but ofcourse I am not sure of that.

AS a workaround we can do: "magento/framework": "103.0.7-p1 as 103.0.7" in composer json but I personally am not a fan of this kind of manipulation. I posted this as well in the community forums but no response yet https://community.magento.com/t5/Magento-2-x-Technical-Issues/Commerce-2-4-7-p1-incompatible-with-magento-b2b-extension/m-p/557149#M21933.

Steps to reproduce

Stock 2.4.7-p1 commerce installation composer require magento/extension-b2b should produce the error mentioned below and above.

Expected result

Install magento/extension-b2b without errors

Actual result

Gathering patches for root package.
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - magento/extension-b2b[1.4.0, ..., 1.4.2] require magento/framework >=103.0.6 <=103.0.7 -> satisfiable by magento/framework[103.0.6-beta1, ..., 103.0.7].
    - You can only install one version of a package, so only one of these can be installed: magento/framework[100.0.2, ..., 100.2.0-rc20, 101.0.0-rc21, ..., 101.0.12, 102.0.0, ..., 102.0.7-p3, 103.0.0-beta1, ..., 103.0.7-p1].
    - magento/product-community-edition 2.4.7-p1 requires magento/framework 103.0.7-p1 -> satisfiable by magento/framework[103.0.7-p1].
    - magento/product-enterprise-edition 2.4.7-p1 requires magento/product-community-edition 2.4.7-p1 -> satisfiable by magento/product-community-edition[2.4.7-p1].
    - Root composer.json requires magento/product-enterprise-edition 2.4.7-p1 -> satisfiable by magento/product-enterprise-edition[2.4.7-p1].
    - Root composer.json requires magento/extension-b2b ^1.4 -> satisfiable by magento/extension-b2b[1.4.0, 1.4.1, 1.4.2].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Additional information

No response

Release note

No response

Triage and priority

m2-assistant[bot] commented 3 months ago

Hi @edwinljacobs. Thank you for your report. To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:

yaronish commented 3 months ago

In addition I just want to say that proposed workaround works for PHP 8.2 and doesn't work for PHP 8.3.

www-data@c829a04f430e:/var/www/html$ composer require magento/extension-b2b:"^1.4.2" "magento/framework": "103.0.7-p1 as 103.0.7"
./composer.json has been updated
Running composer update magento/extension-b2b magento/framework
Loading composer repositories with package information                                                                                                       Updating dependencies                                 
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - magento/module-b2b[100.4.0, ..., 100.4.1] require php ~8.1.0||~8.2.0 -> your php version (8.3.7) does not satisfy that requirement.
    - magento/extension-b2b 1.4.2 requires magento/module-b2b 100.4.1 -> satisfiable by magento/module-b2b[100.4.1].
    - Root composer.json requires magento/extension-b2b ^1.4.2 -> satisfiable by magento/extension-b2b[1.4.2].
thomas-kl1 commented 3 months ago

Yes but it's a known issue that B2B is not compatible with php8.3

m2-assistant[bot] commented 3 months ago

Hi @engcom-Dash. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:


engcom-Dash commented 2 months ago

Hi @edwinljacobs

Thanks for reporting and collaboration.

Verified the issue on Magento 2.4.7-p1 but the issue is not reproducible.

We can install 2.4.7-p1 with b2b extension.

Steps to reproduce Stock 2.4.7-p1 commerce installation composer require magento/extension-b2b should produce the error mentioned below and above.

Please take a look at the screenshots I've attached. Let us know if we missed anything.

Screenshot 2024-07-16 at 4 25 37 PM Screenshot 2024-07-16 at 6 20 29 PM
thomas-kl1 commented 2 months ago

hello @engcom-Dash

Yes it has been fixed with the latest b2b package release, so we can close this ticket. However any idea when b2b is going to be fully compatible with php8.3?

Regards,

engcom-Dash commented 2 months ago

Hi @edwinljacobs

We are closing the ticket as per the above comments.

Thanks

lohoy commented 2 months ago

Hello,

I have this issue with PHP 8.3 on Magento 2.4.7-p1.

When the b2b will be compatible with php8.3 ? We are in migration to Magento 2.4.6-p6 to 2.4.7-p1 and this uncompatibility blocks our development.

Have a good day.

Update: Error :

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - magento/module-b2b[100.4.0, ..., 100.4.1-p1] require php ~8.1.0||~8.2.0 -> your php version (8.3.6) does not satisfy that requirement.
    - magento/extension-b2b 1.4.2-p1 requires magento/module-b2b 100.4.1-p1 -> satisfiable by magento/module-b2b[100.4.1-p1].
    - Root composer.json requires magento/extension-b2b 1.4.2-p1 -> satisfiable by magento/extension-b2b[1.4.2-p1].