Closed (fixed)
Project:
Colorbox
Version:
2.1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Aug 2024 at 10:08 UTC
Updated:
8 Dec 2025 at 23:35 UTC
Jump to comment: Most recent
This constraint is different from the one here.
This means that when using Drupal 9, composer require drupal/colorbox will install 2.1.1 but it is not really compatible with Drupal 9.
composer require drupal/core:^9.0
composer require drupal/colorbox # This will install an incompatible version
You don't need to add a drupal/core dependency in composer.json. drupal.org will automatically add it when creating the Composer package (based on core_version_requirement).
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
Comment #3
prudloff commentedComment #4
mjpa commentedHad the same issue and had to pin to a specific version in composer.json.
This fixes the issue and https://www.drupal.org/docs/develop/using-composer/add-a-composerjson-file recommends not having the core requirement.
I assume this won't stop composer bringing in 2.1.0 / 2.1.1 for D9 unless they're removed somehow and re-released?
Comment #5
paulmckibbenThanks to you both for identifying and fixing this issue. This was just fixed in #3500053: Syntax error in 2.1.1 on D9/PHP7 - composer json allows install even though not supported.