Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When I add content of a mini panels (in Panopoly distro with radix-base theme) is hang forever
Prolem in: radix-script.js
// Bootstrap tooltip.
Drupal.behaviors.radix_tooltip = {
attach: function(context, setting) {
$("[data-toggle='tooltip']").tooltip();
}
}
error is: ""Uncaught TypeError: undefined is not a function"
in line: $("[data-toggle='tooltip']").tooltip();
Please fix it.
Comment | File | Size | Author |
---|---|---|---|
#15 | radix-check-dependencies.diff | 1.24 KB | RobLoach |
#13 | 2323609-radix-tooltip-popover-tab-02.patch | 549 bytes | HaiNguyen007 |
#10 | 2323609-radix-tooltip-popover-tab.patch | 1.37 KB | HaiNguyen007 |
#8 | Selection_847.png | 20.04 KB | HaiNguyen007 |
#2 | Selection_651.png | 18.97 KB | HaiNguyen007 |
Comments
Comment #1
HaiNguyen007 CreditAttribution: HaiNguyen007 commentedComment #2
HaiNguyen007 CreditAttribution: HaiNguyen007 commentedAfter disable bootstrap tooltip cause this error, I receive same error at bootstrap popover:
// Bootstrap popover.
Drupal.behaviors.radix_popover = {
attach: function(context, setting) {
$("[data-toggle='popover']").popover();
}
}
Comment #3
shadcn CreditAttribution: shadcn commentedDo you have jquery update with jquery 1.7 selected?
Comment #4
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedI am getting the first error and I am running OK
jQuery Update jQuery 1.7.1 and jQuery UI 1.10.2
Comment #5
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedit was removed from 7.2 http://cgit.drupalcode.org/radix/commit/?h=7.x-2.x&id=a7fb1fbc04f6440aac...
https://www.drupal.org/node/2212123
Comment #6
shadcn CreditAttribution: shadcn commented@SocialNicheGuru, does it occur on Panopoly or is yours vanilla Drupal?
Comment #7
HaiNguyen007 CreditAttribution: HaiNguyen007 commented@arshadcn : I using: "jQuery Update with jQuery 1.7.1 and jQuery UI 1.8.11"
Comment #8
HaiNguyen007 CreditAttribution: HaiNguyen007 commentedSame error for nav-tabs
Comment #9
SocialNicheGuru CreditAttribution: SocialNicheGuru commented@arshadcn panopoly
Comment #10
HaiNguyen007 CreditAttribution: HaiNguyen007 commentedTemporary patch: disable all code cause to error for temprory fix, & panopoly continue working
Comment #11
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedThe patch works!
Comment #12
bielo CreditAttribution: bielo commentedI use OPen Atrium which comes with Radix as the default theme and I'm getting the same Uncaught TypeError: undefined is not a function.
I've tried the patch and commenting the code out gets rid of the console error, but unfortunately causes other issues, I cannot see some menu options which I assume rely either on the tooltip or popover.
Is there some way to debug this error? Where to look?
Thanks in advance for your time.
Comment #13
HaiNguyen007 CreditAttribution: HaiNguyen007 commentedTemporary patch for radix-7.x-3.0-beta2: disable all code cause to error for temprory fix, & panopoly continue working
Comment #14
RobLoachIt's because Bootstrap is not being loaded. Make sure you're using Bootstrap Library module, and have Bootstrap installed at sites/all/libraries/bootstrap.
This is not a bug with the theme, but a user error. Changing to support request.
Comment #15
RobLoachAnother solution is to check whether or not the Bootstrap functionality is available.
Comment #16
jackbravo CreditAttribution: jackbravo commentedMake sure that if you create a sub-theme you remember to go to /admin/config/development/bootstrap_library and add it to the list of enabled themes.
Comment #17
candelas CreditAttribution: candelas commented@jackbravo thanks. I just upgrade OpenAtrium and lost that in the configuration.
Comment #19
shadcn CreditAttribution: shadcn commentedRob's changes look good. Just committed. Feel free to reopen if this is still happening.
Comment #21
Håvard CreditAttribution: Håvard commented@jackbravo #16
Thanks. Big saver :)
Comment #22
jackbravo CreditAttribution: jackbravo commented#16 is a little difficult to find. Should we open a new issue to try to come up with another solution? Better docs? Adding a check to the drupal status page?
Comment #23
shadcn CreditAttribution: shadcn commentedWe could check if you have bootstrap_library installed and point you to the config page if it is not configured. Can you create a new issue? Thanks.
Comment #24
alexharries CreditAttribution: alexharries commentedPlus one - this started happening to me on Open Atrium when I upgraded to 2.60 - I also had to follow the destructions in #16 to fix it.
Perhaps this is happening for a lot of people? A hook_update_n in one of the OA modules might be a straight-forward fix? :)