Cannot update from Drupal Core: 10.2.10 to 10.3.6

Created on 4 November 2024, 4 months ago

Problem/Motivation

Trying to upgrade core from 10.2.10 to 10.3.x

I had a pinned version at 10.2. To unpin my version of core I ran:

composer require drupal/core-recommended drupal/core-composer-scaffold drupal/core-project-message --update-with-all-dependencies

per https://www.drupal.org/docs/updating-drupal/updating-drupal-core-via-com... → .

Now in composer.json I see:

"drupal/core-composer-scaffold": "^11.0",
"drupal/core-project-message": "^11.0",
"drupal/core-recommended": "^10.2",

When I run composer update "drupal/core-*" --with-all-dependencies I get:

Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove

And if I try to update to 10.3.6 specifically (not recommended I know) by running

composer require drupal/core-recommended:10.3.6 drupal/core-composer-scaffold:10.3.6 drupal/core-project-message:10.3.6 --update-with-all-dependencies I get:

Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - Root composer.json requires drupal/core-recommended 10.3.6 -> satisfiable by drupal/core-recommended[10.3.6].
    - drupal/core-recommended 10.3.6 requires drupal/core 10.3.6 -> found drupal/core[10.3.6] but these were not loaded, likely because it conflicts with another require.

I'm not sure how to proceed. I don't want to upgrade to 11.x yet, I just want to get the site to 10.3.x.

composer.json below

{
    "name": "drupal/legacy-project",
    "description": "Project template for Drupal 8 projects with composer following drupal/drupal layout",
    "type": "project",
    "license": "GPL-2.0-or-later",
    "homepage": "https://www.drupal.org/project/drupal",
    "support": {
        "docs": "https://www.drupal.org/docs/user_guide/en/index.html",
        "chat": "https://www.drupal.org/node/314178"
    },
    "repositories": [
        {
            "type": "composer",
            "url": "https://packages.drupal.org/8"
        }
    ],
    "require": {
        "composer/installers": "^1.9",
        "drupal/admin_toolbar": "^3.0",
        "drupal/administerusersbyrole": "^3.0",
        "drupal/bartik": "^1.0",
        "drupal/bootstrap4": "^3.0",
        "drupal/bulk_user_registration": "^2.0",
        "drupal/ckeditor_html_embed": "^1.0",
        "drupal/ckeditor_iframe": "^3.0@alpha",
        "drupal/ckeditor_plugin_report": "^1.0",
        "drupal/classy": "^1.0",
        "drupal/config_update": "^2.0@alpha",
        "drupal/core-composer-scaffold": "^11.0",
        "drupal/core-project-message": "^11.0",
        "drupal/core-recommended": "^10.2",
        "drupal/core-vendor-hardening": "^9",
        "drupal/csv_serialization": "^3.0 || ^4.0",
        "drupal/ctools": "^4.1",
        "drupal/field_permissions": "^1.1",
        "drupal/flood_control": "^2.2",
        "drupal/gin": "^3.0",
        "drupal/login_security": "^2.0",
        "drupal/pathauto": "^1.8",
        "drupal/persistent_login": "^1.3",
        "drupal/r4032login": "^2.0",
        "drupal/s3fs": "^3.3",
        "drupal/scheduler": "^1.3",
        "drupal/seven": "^1.0",
        "drupal/stable": "^2.0",
        "drupal/tac_lite": "^1.5",
        "drupal/toolbar_menu": "^3.0",
        "drupal/twig_debugger": "^1.1",
        "drupal/upgrade_status": "^4.0",
        "drupal/views_bulk_operations": "4.2.3",
        "drupal/views_data_export": "^1.4",
        "drupal/vrssfa": "^2.0",
        "drush/drush": "^12",
        "kint-php/kint": "^3.3"
    },
    "conflict": {
        "drupal/drupal": "*"
    },
    "minimum-stability": "dev",
    "prefer-stable": true,
    "config": {
        "sort-packages": true,
        "allow-plugins": {
            "composer/installers": true,
            "drupal/core-composer-scaffold": true,
            "drupal/core-project-message": true,
            "drupal/core-vendor-hardening": true,
            "zaporylie/composer-drupal-optimizations": true
        }
    },
    "extra": {
        "drupal-scaffold": {
            "locations": {
                "web-root": "./"
            }
        },
        "installer-paths": {
            "core": [
                "type:drupal-core"
            ],
            "libraries/{$name}": [
                "type:drupal-library"
            ],
            "modules/contrib/{$name}": [
                "type:drupal-module"
            ],
            "profiles/contrib/{$name}": [
                "type:drupal-profile"
            ],
            "themes/contrib/{$name}": [
                "type:drupal-theme"
            ],
            "drush/Commands/contrib/{$name}": [
                "type:drupal-drush"
            ],
            "modules/custom/{$name}": [
                "type:drupal-custom-module"
            ],
            "themes/custom/{$name}": [
                "type:drupal-custom-theme"
            ]
        },
        "drupal-core-project-message": {
            "include-keys": [
                "homepage",
                "support"
            ],
            "post-create-project-cmd-message": [
                "<bg=blue;fg=white>                                                         </>",
                "<bg=blue;fg=white>  Congratulations, you’ve installed the Drupal codebase  </>",
                "<bg=blue;fg=white>  from the drupal/legacy-project template!               </>",
                "<bg=blue;fg=white>                                                         </>",
                "",
                "<bg=yellow;fg=black>Next steps</>:",
                "  * Install the site: https://www.drupal.org/docs/8/install",
                "  * Read the user guide: https://www.drupal.org/docs/user_guide/en/index.html",
                "  * Get support: https://www.drupal.org/support",
                "  * Get involved with the Drupal community:",
                "      https://www.drupal.org/getting-involved",
                "  * Remove the plugin that prints this message:",
                "      composer remove drupal/core-project-message"
            ]
        }
    },
    "require-dev": {
        "zaporylie/composer-drupal-optimizations": "^1.1"
    }
}
💬 Support request
Status

Active

Version

10.2 ✨

Component

composer

Created by

🇺🇸United States bkerwin

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024