Hello to the community :-)

After I read all the readme stuff related to the deprecated core modules stuff, I disabled all unused modules (contact, history) the onle related module at the moment is telephone (which will be replaced when core 11.4 as requirement was set up correctly...

I tried to upgrade my Drupal v11.3.13 to the latest v11.4 stable release as I always do with the

composer update "drupal/core-*" --with-all-dependencies

command.

But after the usual composer update command I am still on v11.3.13 version because composer won't update Drupal correctly because of a conflict.

when I run 

composer show drupal/core-recommended

at the end of the list I find the conflicting item

webflo/drupal-core-strict *

But I don't know if this really is the problem, maybe its something else?

Thank you in advance for your help.

composer.json

{
    "name": "drupal/legacy-project",
    "description": "Project template for Drupal 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": "^2.3",
        "drupal/admin_toolbar": "^3.6",
        "drupal/auto_entitylabel": "^3.4",
        "drupal/backup_migrate": "^5.1",
        "drupal/better_exposed_filters": "^7.1@beta",
        "drupal/block_aria_landmark_roles": "^3.0",
        "drupal/captcha": "^2.0",
        "drupal/ckeditor5_icons": "^1.2",
        "drupal/ckeditor5_plugin_pack": "^1.4",
        "drupal/ckeditor5_premium_features": "^1.6",
        "drupal/colorbox": "^2.1",
        "drupal/core-composer-scaffold": "^11.2",
        "drupal/core-project-message": "^11.2",
        "drupal/core-recipe-unpack": "^11.2",
        "drupal/core-recommended": "^11.2",
        "drupal/core-vendor-hardening": "^11.2",
        "drupal/csv_serialization": "^4.0",
        "drupal/ctools": "^4.1",
        "drupal/custom_breadcrumbs": "^1.1",
        "drupal/db_maintenance": "^3.0@rc",
        "drupal/editor_advanced_link": "^2.3",
        "drupal/eu_cookie_compliance": "^1.2.8",
        "drupal/feeds": "^3.0",
        "drupal/field_group": "^4.0",
        "drupal/fontawesome": "^3.0",
        "drupal/fullcalendar_view": "^5.2",
        "drupal/geolocation": "^3.14",
        "drupal/gin": "^5.0",
        "drupal/gin_login": "^2.1",
        "drupal/imce": "^3.1",
        "drupal/jquery_ui_accordion": "^2.1",
        "drupal/jquery_ui_button": "^2.1",
        "drupal/jquery_ui_checkboxradio": "^2.1",
        "drupal/jquery_ui_controlgroup": "^2.1",
        "drupal/jquery_ui_datepicker": "^2.1",
        "drupal/jquery_ui_slider": "^2.1",
        "drupal/jquery_ui_touch_punch": "^1.1",
        "drupal/juicebox": "^4.0@alpha",
        "drupal/l10n_tools": "^1.0",
        "drupal/linkit": "^7.0",
        "drupal/menu_block": "^1.1.4",
        "drupal/menu_breadcrumb": "^2.0",
        "drupal/metatag": "^2.2",
        "drupal/module_filter": "^5.0",
        "drupal/node_revision_delete": "^2.0",
        "drupal/office_hours": "^1.2.8",
        "drupal/pathauto": "^1.1.14",
        "drupal/pathologic": "^2.0@alpha",
        "drupal/popup_message": "^3.0",
        "drupal/quick_node_clone": "^1.22",
        "drupal/redirect": "^1.12",
        "drupal/responsive_favicons": "^4.0",
        "drupal/riddler": "^3.0",
        "drupal/scheduler": "^2.2",
        "drupal/selective_better_exposed_filters": "^3.0",
        "drupal/simple_sitemap": "^4.2",
        "drupal/single_content_sync": "^1.4",
        "drupal/sitemap": "^2.4",
        "drupal/sitewide_alert": "^3.0",
        "drupal/smtp": "^1.4",
        "drupal/svg_image": "^3.2",
        "drupal/vefl": "^3.2",
        "drupal/views_bulk_operations": "^4.3",
        "drupal/views_data_export": "^1.6",
        "drupal/views_flipped_table": "^3.0",
        "drupal/views_infinite_scroll": "^2.0",
        "drupal/views_slideshow": "^5.0",
        "drupal/webform": "^6.3@beta",
        "drupal/webform_email_confirmation_link": "^1.0"
    },
    "conflict": {
        "drupal/drupal": "*"
    },
    "minimum-stability": "stable",
    "prefer-stable": true,
    "config": {
        "allow-plugins": {
            "composer/installers": true,
            "drupal/core-composer-scaffold": true,
            "drupal/core-recipe-unpack": true,
            "drupal/core-project-message": true,
            "drupal/core-vendor-hardening": true,
            "phpstan/extension-installer": true,
            "dealerdirect/phpcodesniffer-composer-installer": true,
            "php-http/discovery": true,
            "php-tuf/composer-integration": true
        },
        "sort-packages": 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"
            ],
            "profiles/custom/{$name}": [
                "type:drupal-custom-profile"
            ],
            "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/installing-drupal",
                "  * 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"
            ]
        }
    }
}

Comments

ressa’s picture

Thanks for the detailed summary, I tried the composer.json and get the same result. I think you should create an issue, so the Drupal core developers can maybe take a look at it: https://www.drupal.org/project/issues/drupal

rikibu’s picture

Hey ressa, thanks for replying..

I am investigating more to find out requirements...

I think it has something to do with an installed additional module

When I use "composer prohibits" to check some things up I found one of my modules which causes the issue (not recognizeable as incompatible on the Drupal UI so far)

the ckeditor5_icons module seems only to work with Drupal

>=11.0 <11.4.0-stable

that could mean, module is not working on D11.4.0? this could be the issue? but I never had to investigate such thing and I am completely noob in this ...

but its not sure if this is the correct thing that avoids the D11.4 update.

I have to investigate more from a backup state to clear things up

 

ressa’s picture

Ah yes, you're right! Like you write, the problem is probably the strange format (<11.4.0-stable) in the CKEditor 5 icons module version syntax, which Composer cannot understand. Like you suggested, I checked with prohibits:

$ composer prohibits drupal/core-recommended 11.4
drupal/core-recommended 11.4.0 requires         drupal/core (11.4.0)                              
drupal/legacy-project   -      does not require drupal/core (but 11.3.13 is installed)            
drupal/core-recommended 11.4.0 requires         asm89/stack-cors (~v2.4.0)                        
drupal/legacy-project   -      does not require asm89/stack-cors (but v2.3.0 is installed)        
drupal/core-recommended 11.4.0 requires         php-tuf/composer-stager (~v2.1.0)                 
drupal/legacy-project   -      does not require php-tuf/composer-stager (but v2.0.2 is installed) 
Not finding what you were looking for? Try calling `composer require "drupal/core-recommended:11.4" --dry-run` to get another view on the problem.
Composer [prohibits drupal/core-recommended 11.4] failed, composer command failed: exit status 1. stderr=

... and tried the suggested command:

$ composer require drupal/core-recommended:11.4 --dry-run
The "11.4" constraint for "drupal/core-recommended" appears too strict and will likely not match what you want. See https://getcomposer.org/constraints
./composer.json has been updated
Running composer update drupal/core-recommended
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires drupal/core-recommended 11.4 -> satisfiable by drupal/core-recommended[11.4.0].
    - drupal/core-recommended 11.4.0 requires drupal/core 11.4.0 -> found drupal/core[11.4.0] but the package is fixed to 11.3.13 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.

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

Installation failed, reverting ./composer.json and ./composer.lock to their original content.
Composer [require drupal/core-recommended:11.4] failed, composer command failed: exit status 2. stderr=

I saw the the package is fixed to 11.3.13 (lock file version) by a partial update which I usually fix by deleting composer.lock. I then got this:

$ composer require drupal/core-recommended:11.4 --dry-run
The "11.4" constraint for "drupal/core-recommended" appears too strict and will likely not match what you want. See https://getcomposer.org/constraints
./composer.json has been updated
Running composer update drupal/core-recommended
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires drupal/ckeditor5_icons ^1.2 -> satisfiable by drupal/ckeditor5_icons[1.2.0, 1.2.1, 1.2.2].
    - Root composer.json requires drupal/core-recommended 11.4 -> satisfiable by drupal/core-recommended[11.4.0].
    - drupal/ckeditor5_icons[1.2.0, ..., 1.2.1] require drupal/core ^9.5 || >=10.0 <10.6.0-stable || >=11.0 <11.3.0-stable -> satisfiable by drupal/core[10.5.12, 11.2.14].
    - drupal/ckeditor5_icons 1.2.2 requires drupal/core ^9.5 || ^10 || >=11.0 <11.4.0-stable -> satisfiable by drupal/core[10.5.12, 10.6.11, 10.6.12, 11.2.14, 11.3.12, 11.3.13].
    - drupal/core-recommended 11.4.0 requires drupal/core 11.4.0 -> satisfiable by drupal/core[11.4.0].
    - You can only install one version of a package, so only one of these can be installed: drupal/core[10.5.12, 10.6.11, 10.6.12, 11.2.14, 11.3.12, 11.3.13, 11.4.0].

And after deleting the CKEditor 5 Icons module with composer remove drupal/ckeditor5_icons it updated to Drupal 11.4.

So maybe either uninstall and delete the CKEditor 5 Icons module, or create an issue and ask the maintainer to make it Drupal 11, and maybe Drupal 12 ready using the standard syntax: core_version_requirement: ^9.5 || ^10 || ^11 || ^12?

rikibu’s picture

Hey ressa,

first of all, huge sorry for my late reply.

Thanks for testing and confirming my thoughts and creating that issue to the related ckeditor5 icons project.

I try to upgrade to Drupal v11.4 after removing the related module...

ressa’s picture

No problem @rikibu, I hope you succeed with getting updated to 11.4. Though, I did not create the issue, I just shared it here.

lionsea’s picture

If you have similar issues, try this process below:

1. Problem1 (or 2,3,..)  has modules or not.

2. If modules, run $ composer show drupal/that_module_name , and check the required Drupal version.
If you are trying to install Drupal 11 and the module requires Drupal 10 or below, that is the issue.

3. Also run $ grep that_module_name composer.json, and check if that module is included in the composer.json even though it is not compatible with Drupal 11

4. remove the module because it is not used in Drupal 11

lionsea’s picture

Hi, if you have conflict errors or core-related/Synphony-related errors, completely removing drush before upgrade would help sometimes.