Magento Upgrade – Issue Upgrading from Magento V2.3.3-p1 to V2.4.3

magento-upgrademagento2.4.3upgrade

I am trying to upgrade the Magento V2.3.3-p1 to Magento V2.4.3 after upgraded php V7.4 and Composer V2.x. When using composer update getting below error.

Problem 1
– Root composer.json requires magento/product-community-edition 2.4.3 -> satisfiable by magento/product-community-edition[2.4.3].
– paypal/module-braintree 4.2.4 requires paypal/module-braintree-core 4.2.4 -> satisfiable by
paypal/module-braintree-core[4.2.4].
– paypal/module-braintree-core 4.2.4 conflicts with magento/module-braintree * (gene/module-braintree 3.5.0 replaces
magento/module-braintree 100..).
– magento/product-community-edition 2.4.3 requires paypal/module-braintree 4.2.4 -> satisfiable by
paypal/module-braintree[4.2.4].
– Root composer.json requires gene/module-braintree ^3.5.0 -> satisfiable by gene/module-braintree[3.5.0].

and my composer.json file is

{
    "name": "magento/project-community-edition",
    "description": "eCommerce Platform for Growth (Community Edition)",
    "type": "project",
    "version": "2.1.3",
    "license": [
        "OSL-3.0",
        "AFL-3.0"
    ],
    "require": {
        "magento/product-community-edition": "2.4.3",
        "composer/composer": "@alpha",
        "shipperhq/module-shipper": "^20.45",
        "shipperhq/module-logger": "^20.5",
        "cloudflare/cloudflare-magento": "^1.1",
        "mailchimp/mc-magento2": "^1.0",
        "shipperhq/module-address-autocomplete": "^20.3",
        "gene/module-braintree": "^3.5.0",
        "mirasvit/module-helpdesk": "*",
        "mirasvit/module-affiliate": "*",
        "mirasvit/module-credit": "*",
        "swissup/module-marketplace": "^1.8",
        "swissup/recaptcha": "^1.3",
        "magento/composer-root-update-plugin": "~1.0"
    },
    "require-dev": {
        "phpunit/phpunit": "~9",
        "squizlabs/php_codesniffer": "~3.5.4",
        "phpmd/phpmd": "^2.8.0",
        "pdepend/pdepend": "~2.7.1",
        "lusitanian/oauth": "~0.8.10",
        "sebastian/phpcpd": "~5.0.0",
        "friendsofphp/php-cs-fixer": "~2.16.0",
        "magento/magento2-functional-testing-framework": "^3.0",
        "phpstan/phpstan": ">=0.12.3 <=0.12.23"
    },
    "config": {
        "use-include-path": true
    },
    "autoload": {
        "psr-4": {
            "Magento\\Framework\\": "lib/internal/Magento/Framework/",
            "Magento\\Setup\\": "setup/src/Magento/Setup/",
            "Magento\\": "app/code/Magento/",
            "Zend\\Mvc\\Controller\\": "setup/src/Zend/Mvc/Controller/"
        },
        "psr-0": {
            "": "app/code/"
        },
        "files": [
            "app/etc/NonComposerComponentRegistration.php"
        ]
    },
    "autoload-dev": {
        "psr-4": {
            "Magento\\Sniffs\\": "dev/tests/static/framework/Magento/Sniffs/",
            "Magento\\Tools\\": "dev/tools/Magento/Tools/",
            "Magento\\Tools\\Sanity\\": "dev/build/publication/sanity/Magento/Tools/Sanity/",
            "Magento\\TestFramework\\Inspection\\": "dev/tests/static/framework/Magento/TestFramework/Inspection/",
            "Magento\\TestFramework\\Utility\\": "dev/tests/static/framework/Magento/TestFramework/Utility/"
        }
    },
    "minimum-stability": "alpha",
    "prefer-stable": true,
    "extra": {
        "magento-force": "override"
    }
}

Any help on this?

Best Answer

Remove the “gene/module-braintree”: “^3.5.0" line in composer file is solved the issue. The reason is that paypal/module-braintree-core is included by default and is actually a fork of the Gene Commerce module.

The Paypal module has this in the composer file :

"conflict": {
    "magento/module-braintree": "*",
    "gene/module-braintree": "*"
}

So it’s forcing the error.

Thanks to @barnyshergold in Magento Community Engineering.

Related Topic