Closed (fixed)
Project:
Bootstrap
Version:
8.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
12 Mar 2024 at 14:10 UTC
Updated:
11 Mar 2025 at 13:15 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mnk-0210 commentedupdated patch in #1.
Comment #4
siddharthjain commentedThe above patch applies smoothly and the dependencies has been updated as per this article: https://www.drupal.org/docs/upgrading-drupal/upgrading-from-drupal-8-or-...
Comment #5
siddharthjain commentedComment #8
shelaneComment #9
jcnventuraI think this may need a 2nd commit. This change only moved the libraries from core to the contrib modules, but it doesn't enable the modules. Which means that the newly added libraries are not enabled now, but the theme depends on them.
This may need the following changes:
Comment #11
shelane@jcnventura, yes, you're right. I've added the dependencies to the info file and added an update hook to enable the modules. I'm not sure what to do about the missing jquery libraries that you mentioned though.
Comment #12
jcnventuraThey were declared before in bootstrap.libraries.yml and were removed when the MR was merged. They should be able to be trivially added back, as they are now all provided by the (non-core) jquery_ui module.
Comment #13
elc commentedAdding these are dependencies inside the .info.yml means that the update can never be run - Drupal complains that dependencies are missing, and get stuck in "Verifying requirements" preventing updates from running.
I also can't get the theme's hook_update_N to detect. Is it meant to be named something different because it's a base theme? I had to install the 3x modules manually after patching in.
Comment #14
elc commentedThe name of the module is
jquery_ui_resizableand NOTjquery_ui_resizeableComment #16
shelaneComment #17
grimreaperHi,
Here is a patch from the MR for Composer usage.
I don't have a modal on my website to test just want to apply the patch to have the modules enabled.
Comment #18
grimreaperOn Core 10.3.1, the update is not detected. After applying the patch, drush cr, then drush updb does not detect that there is a pending update.
Comment #19
lmoeniI ran into this issue when I created a newsletter (Simplenews) which threw the warnings that the jquery_ui modules are missing:
Sadly, update hooks do not work in themes as themes do not have the install file like modules do. That's why the update is not detected.
Defining the dependencies in the info.yml breaks the installation process for me:
Unable to install theme: 'theme_name' due to unmet module dependencies: 'jquery_ui, jquery_ui_draggable, jquery_ui_resizable'.Tested with Drupal 10.2.3 and 10.3.1 + Bootstrap 3.31. I would not recommend using the patch. Instead I would install the modules in your own profile/module till there is a working solution for this issue.
Comment #21
shelaneI'm going to go ahead and do a release with this and include in the notes that users must enable these modules since the theme cannot do it through an update hook.
Comment #22
rosk0Marking as fixed as this was released in the 8.x-3.32 and I was able to run updates without issues, status report shows nothing related as well - tested on the latest Drupal core 10.3.2.
Comment #24
loopy1492 commentedWe have upgraded to the most recent version of 3.x and we are also getting this: