I'm getting error in Drupal 7

Uncaught TypeError: Object [object Object] has no method 'on'
bootstrap.js:147

Comments

heddn’s picture

What browser is this in? Have you debugged it any with Firebug or equivilents? What were you doing to cause this error? What pages, steps, etc. to reproduce the problem.

wanovak’s picture

Make sure you're using the latest version of jQuery (or at least 1.7+) where the 'on' method was introduced.

alexio2170’s picture

Using the latest version of jQuery, but I see the same error (using chrome)
I checked my COnsole Javascript since the user menu on the top right was not working.
Thanks for support.

BrockBoland’s picture

I saw this in Chrome, and the user menu wasn't working for me either. As wanovak noted, you need to be using jQuery 1.7.

For most people, this will mean using the dev version of jQuery Update, which includes 1.7 but doesn't use it by default. You need to go to the config options for jQuery Update (at admin/config/development/jquery_update) and set it to use 1.7…which, in turn, will cause problems with CTools, so you need the latest patch from this issue: #1494860: Views Rewrite Results UI Broken using JQuery 1.7

alexio2170’s picture

I can confirm that downloading jquery-1.7.2.min.js or jquery-1.7.2.js from http://jquery.com/
makes it work (it's the 'on' method developed starting from a certain jquery version)

BrockBoland’s picture

Status: Active » Closed (fixed)

I'm going to close this one: the project page does mention that you need jQuery 1.7, it's just not very prominent and doesn't include instructions on doing so.

andregriffin’s picture

Project: Twitter's Bootstrap » Bootstrap
csmcreative’s picture

Hopefully this will help someone. I was having all of these issues and then I remembered this happening before. I made the default admin theme Seven and all of the jquery issues went away. I don't even have jquery_update. I think it has to do with with the themes. For a quick test, change your admin theme to Seven and see if it helps.