Closed (works as designed)
Project:
Colorbox
Version:
2.2.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Jan 2026 at 17:19 UTC
Updated:
28 Jan 2026 at 00:01 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
gillesbailleuxThe bug is on a D11.3.2 dev instance, equipped with PHP 8.4.17: https://reinhardstein.bailleux.ovh/fr/agenda/castelflora
The bug might come from the formatter used in the views, which is implemented with the GridStack module.
Comment #3
jmaties commentedHave you installed the new library-fork?
drush colorbox:pluginComment #4
gillesbailleuxPerforming the drush command displays the following:
Comment #5
gillesbailleuxHere is the the composer.json file (in .txt format).
Comment #6
gillesbailleuxThe composer.json file does not mention the ^2.2 release:
"drupal/colorbox": "^2.1"Comment #7
gillesbailleuxPerforming the
composer require 'drupal/colorbox:^2.2'command now displays"drupal/colorbox": "^2.2"in the composer.json file.Comment #8
paulmckibbenIf you are using colorbox 2.2.x, you must use the new fork of the Colorbox library. The 2.2.x branch is not compatible with the legacy library. If you must use the legacy library, please stay on the 2.1.x branch.
Did you remove and replace your colorbox library?
Try deleting the entire web/libraries/colorbox directory, and then use the drush command to re-install it:
drush colorbox:plugin
Comment #9
gillesbailleuxThe bug is not related to the gridstack formatter mentioned above as I created a node with the usual ColorBox Responsive formatter which does not display a Colorbox gallery: https://reinhardstein.bailleux.ovh/fr/colorbox-gallery
Comment #10
paulmckibben@gillesbailluex When I use Chrome developer tools on your URL, I can see you are using the legacy Colorbox plugin, which is NOT compatible with the 2.2.x branch of the Colorbox module. Please either downgrade the Colorbox module to 2.1.x or delete and replace the colorbox library according to my earlier instructions.
Comment #11
gillesbailleuxDeleting the colorbox library and typing the drush command displays the following:
Comment #12
paulmckibben@gillesbailleux It looks like your server doesn't have php-zip installed.
You can also download and install the colorbox plugin manually according to the instructions in the README.md file.
You can download it from https://github.com/TurbojetTechnologies/colorbox/archive/master.zip
Comment #13
gillesbailleuxSo the problem is that, after deleting the old Colorbox library and performing the
drush colorbox:plugincommand, there is a new colorbox folder in /public_html/web/libraries but this folder contains only one file: colorbox.zipComment #14
paulmckibben@gillesbailleux, again, it sounds like your server does not have the required php-zip extension, and so it cannot unzip the file.
I suggest you delete the zip file and download the plugin manually from https://github.com/TurbojetTechnologies/colorbox/archive/master.zip
Comment #15
gillesbailleuxUnzipping the library fixed the issue! Awaiting more information from @didier-misson about the lack of php-zip lack on the server.
Comment #16
paulmckibbenGlad to hear you were able to make it work.
I have updated the project page to try and make it clearer that version 2.2.x requires you to update your colorbox plugin to the Turbojet fork.
Comment #18
gillesbailleux@paulmckibben: thank you very much for your time and patience solving this issue.
Comment #19
gillesbailleuxUpdate about #14 comment from @paulmckibben: I confirm that the required php-zip extension for PHP 8.4.x was NOT installed on the server (now the extension is installed).
Comment #20
kmontyThe 2.2.0 release probably should have had more complete upgrade notes and been a major release, not a minor, as this automatically broke installs.
It might be a good idea to start using composer rather than relying on Drush for installing dependencies. That would have saved some hassle.