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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

HaiNguyen007’s picture

FileSize
13.79 KB
24.17 KB
HaiNguyen007’s picture

FileSize
18.97 KB

After 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();
}
}

shadcn’s picture

Do you have jquery update with jquery 1.7 selected?

SocialNicheGuru’s picture

I am getting the first error and I am running OK
jQuery Update jQuery 1.7.1 and jQuery UI 1.10.2

// Bootstrap tooltip.
  Drupal.behaviors.radix_tooltip = {
    attach: function(context, setting) {
      $("[data-toggle='tooltip']").tooltip();
SocialNicheGuru’s picture

shadcn’s picture

@SocialNicheGuru, does it occur on Panopoly or is yours vanilla Drupal?

HaiNguyen007’s picture

@arshadcn : I using: "jQuery Update with jQuery 1.7.1 and jQuery UI 1.8.11"

HaiNguyen007’s picture

FileSize
20.04 KB

Same error for nav-tabs

SocialNicheGuru’s picture

@arshadcn panopoly

HaiNguyen007’s picture

Temporary patch: disable all code cause to error for temprory fix, & panopoly continue working

SocialNicheGuru’s picture

The patch works!

bielo’s picture

I 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.

HaiNguyen007’s picture

Temporary patch for radix-7.x-3.0-beta2: disable all code cause to error for temprory fix, & panopoly continue working

RobLoach’s picture

Category: Bug report » Support request

It'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.

RobLoach’s picture

Version: 7.x-3.0-beta1 » 7.x-3.x-dev
Category: Support request » Bug report
Status: Active » Needs review
FileSize
1.24 KB

Another solution is to check whether or not the Bootstrap functionality is available.

jackbravo’s picture

Make 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.

candelas’s picture

@jackbravo thanks. I just upgrade OpenAtrium and lost that in the configuration.

  • arshadcn committed 0dde111 on 7.x-3.x authored by RobLoach
    Issue #2323609 by HaiNguyen007, RobLoach: radix-script.js "Uncaught...
shadcn’s picture

Status: Needs review » Fixed

Rob's changes look good. Just committed. Feel free to reopen if this is still happening.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

Håvard’s picture

@jackbravo #16

Thanks. Big saver :)

jackbravo’s picture

#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?

shadcn’s picture

We 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.

alexharries’s picture

Plus 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? :)