Problem/Motivation
Using Leaflet v10.3.12 on a D11.3.2 instance equipped with PHP 8.4.16, the latest version v10.4.0 cannot be installed via Composer.
Steps to reproduce
composer update -W
composer require 'drupal/leaflet:^10.4'
Detail of the attempts to upgrade and then install Leaflet v10.4.0:
user@server:~/public_html$ composer update -W
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Writing lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Generating autoload files
48 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
No security vulnerability advisories found.
user@server:~/public_html$ composer require 'drupal/leaflet:^10.4'
./composer.json has been updated
Running composer update drupal/leaflet
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/leaflet ^10.4 -> satisfiable by drupal/leaflet[10.4.0].
- drupal/leaflet 10.4.0 requires drupal/core ^10.3 || 11 -> found drupal/core[10.3.0, ..., 10.6.2, 11.0.0] but the package is fixed to 11.3.2 (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.
Problem 2
- drupal/leaflet_more_markers is locked to version 1.1.3 and an update of this package was not requested.
- drupal/leaflet 10.4.0 requires drupal/core ^10.3 || 11 -> found drupal/core[10.3.0, ..., 10.6.2, 11.0.0] but the package is fixed to 11.3.2 (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/leaflet_more_markers 1.1.3 requires drupal/leaflet * -> satisfiable by drupal/leaflet[10.4.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.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | Capture d’écran du 2026-01-10 21-44-58.png | 10.09 KB | gillesbailleux |
| #8 | composer-json-updated.txt | 5.57 KB | gillesbailleux |
| #2 | composer-json.txt | 5.54 KB | gillesbailleux |
| #7 | Capture d’écran du 2026-01-10 23-55-33.png | 24.69 KB | gillesbailleux |
Comments
Comment #2
gillesbailleuxThe composer.json file (in .txt format) shows the use of Leaflet related modules.
Comment #3
gillesbailleuxThe Geofield module v10.3.0 remains in the module list though it is not present in the composer.json file.
Comment #4
itamair commentedthx @gillesbailleux, nice catch.
New Leaflet module version 10.4.1 should have fixed this issue.
Please confirm it, eventually.
Comment #5
camhowardHaving a similar problem updating Leaflet from 10.3.12 to 10.4.0 or 10.4.1.
Site is using Drupal 11.3.2 and PHP 8.4.10.
Getting the same "Problem 1" error message reported by @gillesbailleux.
composer.json reports:
composer.lock reports:
I'm not sure why the composer.json version for leaflet is lower than the composer.lock file.
Drupal's available updates page reports:
Comment #6
gillesbailleuxGreetings Italo,
Performing the
composer update -Wcommand installs Leaflet v10.4.1 gracefully.Now, the available updates warns me that geofield module v10.3.1 is available but it is not installed. Performing
composer update -Wandcomposer require 'drupal/geofield:^10.3'do not install the module as shown below:Do I have to open an issue on the Geofield issue list?
Comment #7
gillesbailleuxThe latest Geofield version appears in the Drupal Available updates section.
Comment #8
gillesbailleuxThe geofield_module is now in the updated composer.json file.
Comment #9
gillesbailleuxI mark this issue as fixed as the leaflet_module v10.4.1 is installed.
The issue related to the 10.3.1 version of the geofield_module is in this issue: https://www.drupal.org/project/geofield/issues/3566835
Comment #11
camhowardI tried again several hours after my first three attempts and Leaflet 10.4.1 is now installed.
Is there a delay between the time a new version displays on the project page the and site's "Available updates" page and the time Composer can access it?
Thanks!
Comment #12
itamair commentedyes, sorry @gillesbailleux for this also, but I am providing general updates to these modules that align with Drupal core version ^10.3 || ^11
The new geofield 10.3.2 release should now be correctly installable.
Ref: https://www.drupal.org/project/geofield/issues/3566835#comment-16407629
Comment #14
gillesbailleuxGreetings @itamair,
The v10.3.2 of the geofield_module is installed and works as designed so I marked the issue I created as fixed: https://www.drupal.org/project/geofield/issues/3566835#comment-16407651