Downgrade of Gin Admin Theme & Gin Toolbar module after upgrading to D11.2.0

Created on 20 June 2025, 4 days ago

Problem/Motivation

Two websites using D11.1.8 have been updated to D11.2.0 today. During the upgrade process via Composer, the following information is displayed:

  - Downgrading drupal/gin (4.1.0 => 4.0.6)
  - Downgrading drupal/gin_toolbar (2.1.0 => 2.0.0)

Trying to update the Gin Admin Theme to 4.1.0 and 5.0.0 generates the following errors:

user@server:~/public_html$ composer require 'drupal/gin:^4.1'
./composer.json has been updated
Running composer update drupal/gin
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/gin ^4.1 -> satisfiable by drupal/gin[4.1.0].
    - drupal/gin 4.1.0 requires drupal/core ^10.3 || ^11 <11.2 -> found drupal/core[10.3.0, ..., 10.5.0, 11.0.0, ..., 11.1.8] but the package is fixed to 11.2.0 (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.
user@server:~/public_html$ composer require 'drupal/gin:^5.0'
./composer.json has been updated
Running composer update drupal/gin
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/gin ^5.0 -> satisfiable by drupal/gin[5.0.0].
    - drupal/gin 5.0.0 requires drupal/gin_toolbar ^3.0 -> found drupal/gin_toolbar[3.0.0] but it conflicts with your root composer.json require (^2.0).

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.

Steps to reproduce

Type composer update -W

🐛 Bug report
Status

Active

Version

4.1

Component

Code

Created by

🇧🇪Belgium gillesbailleux La Roche-en-Ardenne

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

Comments & Activities

  • Issue created by @gillesbailleux
  • 🇩🇪Germany jurgenhaas Gottmadingen

    Gin 4 (and Gin Toolbar 2) do not support Drupal versions below 11.2 any longer.

    You need to update to Gin 5 and Gin Toolbar 3. You can use this command:

    composer require drupal/gin:^5 drupal/gin_toolbar:^3
    
  • 🇧🇪Belgium gillesbailleux La Roche-en-Ardenne

    Performing your command line fixes the issue. Thank you very much for your quick answer.

    user@server:~/public_html$ composer require drupal/gin:^5 drupal/gin_toolbar:^3
    ./composer.json has been updated
    Running composer update drupal/gin drupal/gin_toolbar
    Loading composer repositories with package information
    Updating dependencies
    Lock file operations: 0 installs, 2 updates, 0 removals
      - Upgrading drupal/gin (4.0.6 => 5.0.0)
      - Upgrading drupal/gin_toolbar (2.0.0 => 3.0.0)
    Writing lock file
    Installing dependencies from lock file (including require-dev)
    Package operations: 0 installs, 2 updates, 0 removals
      - Downloading drupal/gin_toolbar (3.0.0)
      - Downloading drupal/gin (5.0.0)
      - Upgrading drupal/gin_toolbar (2.0.0 => 3.0.0): Extracting archive
      - Upgrading drupal/gin (4.0.6 => 5.0.0): Extracting archive
    Generating autoload files
    47 packages you are using are looking for funding.
    Use the `composer fund` command to find out more!
  • 🇧🇪Belgium gillesbailleux La Roche-en-Ardenne
Production build 0.71.5 2024