Closed (fixed)
Project:
Modal
Version:
5.1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Feb 2026 at 03:19 UTC
Updated:
6 Mar 2026 at 22:40 UTC
Jump to comment: Most recent
There is an error on Modal 5.1 and D11
On fresh install
Drupal 11
Modal 5.1.x
After the install via composer and drush en modal_page
There is an error related to js_cookie
I didn't investigate better yet
I'm reporting just to have that tracked
Is necessary to update the issue description soon
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 #2
renatog commentedProbably related to #3563079: Error during the install 5.1.x - js_cookie does not exist
Comment #5
nickolajThe `core/js-cookie` library was deprecated in Drupal 10.1 and removed in Drupal 11, causing this error. This patch replaces the dependency with the `drupal/js_cookie` contrib module, matching the approach already used in the 6.0.x branch.
Comment #6
renatog commented@nickolaj thanks for your contribution
Hey, your MR really seems good!
I'm going to add that at #3553252: Plan for the next Modal Releases
Comment #7
renatog commentedComment #9
renatog commentedMerged and launched a new version with this
Public thanks in the release notes for your contribution @nickolaj
https://www.drupal.org/project/modal_page/releases/5.1.8
Comment #11
alfattal commentedThis actually caused the upgrade to version 5.1.8 to fail on Drupal 10 with the error message "Unable to install the Modal module since it requires the JavaScript Cookie Library module" when running
drush si. Please fix or provide a path for successful upgrade.Comment #12
renatog commentedCould be a side-effect, please report a separated issue
drush si@alfattal same request for you
Let's keep in mind that here is an open-source community
@nickolaj had a nice contribution providing a solution
If possible do the same
Instead of asking fixes for others, go ahead and provide a patch with the solution
Thanks