Closed (fixed)
Project:
Bootstrap
Version:
7.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
2 May 2012 at 11:36 UTC
Updated:
22 May 2013 at 06:15 UTC
I'm getting error in Drupal 7
Uncaught TypeError: Object [object Object] has no method 'on'
bootstrap.js:147
Comments
Comment #1
heddnWhat 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.
Comment #2
wanovak commentedMake sure you're using the latest version of jQuery (or at least 1.7+) where the 'on' method was introduced.
Comment #3
alexio2170 commentedUsing 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.
Comment #4
BrockBoland commentedI 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
Comment #5
alexio2170 commentedI 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)
Comment #6
BrockBoland commentedI'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.
Comment #7
andregriffin commentedComment #8
csmcreative commentedHopefully 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.