Problem/Motivation

If I do run

composer require 'drupal/group_content_menu_bundles:^1.0@alpha'

Then I do see this error:

Problem 1
- Root composer.json requires drupal/group_content_menu_bundles ^1.0@alpha -> satisfiable by drupal/group_content_menu_bundles[1.0.0-alpha1, 1.0.0-alpha2, 1.0.0-alpha3, 1.0.0-alpha4].
- drupal/group_content_menu_bundles[1.0.0-alpha1, ..., 1.0.0-alpha3] require drupal/group_content_menu 3.0.x-dev -> found drupal/group_content_menu[dev-3.0.x, 3.0.x-dev (alias of dev-3.0.x)] but the package is fixed to 3.0.5 (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.
- drupal/group_content_menu_bundles 1.0.0-alpha4 requires drupal/menu_item_extras ^2.19 -> satisfiable by drupal/menu_item_extras[2.19.0, 2.x-dev].
- drupal/menu_item_extras[2.19.0, ..., 2.x-dev] require drupal/core ^9.4 || ^10.0 -> found drupal/core[9.4.0-alpha1, ..., 9.5.x-dev, 10.0.0-alpha1, ..., 10.5.x-dev] but the package is fixed to 11.1.1 (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.

The error occurs, because group_content_menu_bundles requires version 2.19.0 of the menu_item_extras module. This module version does not support Drupal 11.

Steps to reproduce

Just run

composer require 'drupal/group_content_menu_bundles:^1.0@alpha'

Proposed resolution

Require the latest stable version of menu_item_extras. Currently version 3.1.0. This version supports Drupal 11.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

peter majmesku created an issue. See original summary.

jepster_’s picture

If I do install group_content_menu_bundles with the issue fork, which is just requiring menu_item_extras in version 3.1.0, then I do get that error:

drush en group_content_menu_bundles -y
The following module(s) will be installed: group_content_menu_bundles, menu_item_extras

// Do you want to continue?: yes.

In SqlContentEntityStorageSchema.php line 1843:

The SQL storage cannot change the schema for an existing field (bundle in menu_link_content entity) with data.

Failed to run drush en group_content_menu_bundles -y: exit status 1

Do you know any solution for this already?

tim-diels’s picture

Title: Drupal 11 version requires Drupal 10 version of menu_item_extras » Support menu_item_extras 3.x
Category: Bug report » Support request
Status: Active » Needs work

I think we need to ask for support for the menu_item_extras 3.x

There could be issues identified and can be bundled here if needed.
For me the issue that let me to this issue is #3282717: "Parent link" option unusable in group_content_menu menus where the menu parent item is empty.

So I suggest we ask for support for the 3.x version of menu_item_extras

I'll test the error that is described here and see if everything can be installed and works as needed.

tim-diels changed the visibility of the branch group_content_menu_bundles-3507648/1.0.x to hidden.

tim-diels’s picture

Status: Needs work » Needs review

I've tested this but can't reproduce the error.

Re-added 2.x support or you can't easily switch between the versions and some maybe still are on 2.x of the module. By adding the extra version constraint with | it will allow to install on Drupal 11 and update the requirements.

tim-diels’s picture

For now I use the next to include this in our project:

In composer.json

{
    "type": "vcs",
    "url": "https://git.drupalcode.org/issue/group_content_menu_bundles-3507648.git"
},

Then run composer require drupal/group_content_menu_bundles:1.0.x-dev#8866cc33b62186f7bc1da621a7105ec3c039c838

Make sure you have the dependencies added to your composer.json.

jepster_’s picture

For me this looks like a possible solution. Thanks for providing your changes.

Can anyone of the maintainers please take a look?

jepster_’s picture

Status: Needs review » Reviewed & tested by the community
tim-diels’s picture

Pinged both maintainers on slack to see if they can have a look.

alecsmrekar’s picture

Thanks, merged and tagged alpha5.

alecsmrekar’s picture

alecsmrekar’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.