Conflicts with your root composer.json Question

Can anyone explain to me what do I need to fix this error as I tried to upgrade the plugins

 Problem 1
    - Root composer.json requires offline/oc-mall-plugin ^3.2 -> satisfiable by offline/oc-mall-plugin[v3.2.1].
    - offline/oc-mall-plugin v3.2.1 requires rainlab/location-plugin ^1.2 -> found rainlab/location-plugin[v1.2.0, ..., v1.2.5] but it conflicts with your root composer.json require (^2.0).

Not without full composer.json and error log, but my guess is that installed RainLab.Location plugin is newer (v2.0) than version required (v1.2).

1 Like

Here is the full composer.json file

{
    "name": "october/october",
    "description": "Built using October CMS: The Laravel-Based CMS Engineered For Simplicity",
    "type": "project",
    "homepage": "https://octobercms.com",
    "license": "proprietary",
    "require": {
        "php": "^8.0.2",
        "october/rain": "^3.6",
        "laravel/framework": "^9.0",
        "october/all": "^3.6",
        "renatio/backupmanager-plugin": "^5.1",
        "renatio/seomanager-plugin": "^5.0",
        "renatio/formbuilder-plugin": "^4.0",
        "rainlab/pages-plugin": "^2.0",
        "offline/oc-site-search-plugin": "^1.7",
        "rainlab/blog-plugin": "^1.7",
        "rainlab/deploy-plugin": "^2.2",
        "pkurg/customfields-plugin": "^2.2",
        "ratmd/bloghub-plugin": "^1.3",
        "janvince/smallgdpr-plugin": "^1.27",
        "october/drivers-plugin": "^2.0",
        "rainlab/sitemap-plugin": "^1.2",
        "rainlab/googleanalytics-plugin": "^2.0",
        "rainlab/forum-plugin": "^2.0",
        "rainlab/user-plugin": "^3.0.4",
        "rainlab/translate-plugin": "^2.2",
        "rainlab/location-plugin": "^2.0",
        "rainlab/builder-plugin": "^2.0",
        "responsiv/uploader-plugin": "^1.0",
        "offline/oc-mall-plugin": "^3.2"
    },
    "require-dev": {
        "phpunit/phpunit": "^8.5|^9.0"
    },
    "scripts": {
        "post-root-package-install": [
            "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "@php artisan key:generate --ansi"
        ],
        "post-autoload-dump": [
            "System\\Console\\ComposerScript::postAutoloadDump"
        ],
        "post-update-cmd": [
            "System\\Console\\ComposerScript::postUpdateCmd"
        ],
        "pre-package-uninstall": [
            "System\\Console\\ComposerScript::prePackageUninstall"
        ],
        "test": [
            "phpunit --stop-on-failure"
        ]
    },
    "config": {
        "preferred-install": "dist",
        "allow-plugins": {
            "composer/installers": true,
            "php-http/discovery": false
        }
    },
    "autoload": {
        "psr-4": {
            "App\\": "app",
            "System\\Console\\": "modules/system/console"
        }
    },
    "minimum-stability": "stable",
    "prefer-stable": true,
    "repositories": {
        "octobercms": {
            "type": "composer",
            "url": "https://gateway.octobercms.com",
            "only": ["october/*", "*-plugin", "*-theme"]
        }
    }
}

What are the cmd method to clean up and fix the error?

It looks like the offline/oc-mall-plugin needs to add support for rainlab/location-plugin at version 2.

How to completely remove offline.mall and get rid of the warning " There are missing dependencies needed for the system to run correctly." which is the mall plugin?

Maybe there is a theme that wants it. Check the theme.yaml file in the themes for Offline.Mall and the warning should go away.

Yes, Offline.Mall v3.2.x currently requires older RainLab versions:

        "rainlab/location-plugin": "^1.2",
        "rainlab/user-plugin": "^2.1",
1 Like

Thank to everyone who respond to my questions. Since the theme developer for the mall plugin is lagged behind and decided to switch to rainlab’s blog theme to align with their plugins that I use.

1 Like