Magento – Magento 2 – Readiness check fails on Check Component Dependency

extensionsmagento2

I have Magento Community 2.2. installed on managed VPS (Hetzner).
I am trying to install component and before installation it starts "Readiness check".
All checks out except for:

Check Component Dependency

We found conflicting component dependencies. Hide detail

For additional assistance, see component dependency help .

I don't get any details on error.

WHAT I HAVE TRIED

I have followed instructions from here: https://devdocs.magento.com/guides/v2.2/comp-mgr/trouble/cman/component-depend.html

POSSIBLE CAUSE
I was running installation of a module through composer and when asked for authorization (public and private keys) i have saved them in composer.json.
Since this is one of possible reasons listed in their documentation (changing of composer.json) all it says is to "edit composer.json" but it doesn't say how or what…
I have opened composer.json but I didn't find any keys there…


UPDATE

I have 2 locations for file composer.json:

  • \public_html\composer.json
  • \public_html\var\composer.json

Also have 2 locations for file auth.json:

  • \public_html\composer_home\auth.json
  • \.composer\auth.json

I appreciate help with this 🙂


Sorry for updates, I am slowly remembering everything I did 🙂

I have tried to install this: – Iazel_RegenProductUrl – https://github.com/elgentos/regenerate-catalog-urls

I have installed this: – OlegKoval_RegenerateUrlRewrites – https://github.com/olegkoval/magento2-regenerate_url_rewrites

While installing through SSH I had some memory problems and got Killed in process.
I found a way to run commands again and installed 1 module listed above.

Module wasn't working as expected so I have tried to install one from Magento Marketplace https://marketplace.magento.com/itcolony-seooverwrite.html. This is where I got error with "Readiness check" and started to investigate on possible causes and solutions.

After that I checked composer.json and saw both modules (Iazel_RegenProductUrl and OlegKoval_RegenerateUrlRewrites) are listed in require: section so I deleted the line where Iazel_RegenProductUrl because I thought it caused problems (since install got killed).

Here it my composer.json:

{
    "name": "magento/project-community-edition",
    "description": "eCommerce Platform for Growth (Community Edition)",
    "type": "project",
    "version": "2.2.7",
    "license": [
        "OSL-3.0",
        "AFL-3.0"
    ],
    "require": {
        "magento/product-community-edition": "2.2.7",
        "composer/composer": "@alpha",
        "olegkoval/magento2-regenerate-url-rewrites": "^1.4"
    },
    "require-dev": {
        "phpunit/phpunit": "~6.2.0",
        "squizlabs/php_codesniffer": "3.2.2",
        "magento/magento2-functional-testing-framework": "2.3.8",
        "phpmd/phpmd": "@stable",
        "pdepend/pdepend": "2.5.2",
        "friendsofphp/php-cs-fixer": "~2.2.1",
        "lusitanian/oauth": "~0.8.10",
        "sebastian/phpcpd": "2.0.4"
    },
    "autoload": {
        "psr-4": {
            "Magento\\Framework\\": "lib/internal/Magento/Framework/",
            "Magento\\Setup\\": "setup/src/Magento/Setup/",
            "Magento\\": "app/code/Magento/"
        },
        "psr-0": {
            "": [
                "app/code/",
                "generated/code/"
            ]
        },
        "files": [
            "app/etc/NonComposerComponentRegistration.php"
        ],
        "exclude-from-classmap": [
            "**/dev/**",
            "**/update/**",
            "**/Test/**"
        ]
    },
    "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": "stable",
    "repositories": {
        "0": {
            "type": "composer",
            "url": "https://repo.magento.com/"
        }
    },
    "extra": {
        "magento-force": "override"
    }
}

Best Answer

For this problem you have to delete these lines in Composer.json, and it is solved:

"require-dev": {
        "allure-framework/allure-phpunit": "~1.2.0",
        "friendsofphp/php-cs-fixer": "~2.13.0",
        "lusitanian/oauth": "~0.8.10",
        "magento/magento-coding-standard": "~1.0.0",
        "magento/magento2-functional-testing-framework": "~2.3.14",
        "pdepend/pdepend": "2.5.2",
        "phpmd/phpmd": "@stable",
        "phpunit/phpunit": "~6.5.0",
        "sebastian/phpcpd": "~3.0.0",
        "squizlabs/php_codesniffer": "3.3.1"
    },
Related Topic