Error: $(".drupal-tabs:not(.tabs-processed)", context).addClass is not a function
CristinaM - December 6, 2008 - 16:50
| Project: | Javascript Tools |
| Version: | 5.x-1.2 |
| Component: | Tabs |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Hi,
I had the error that $(menu + ' li.collapsed:not(.activemenu-processed)') is null in activemenu.js when creating new chat content (module phpfreechat).
I put a check and executed the related code if the var is not null.
After this, firebug give me another error, another null var ($('#search-theme-form, #search-block-form')) in activesearch.js . I put a check also there and third error, in tabs.js, is
$(".drupal-tabs:not(.tabs-processed)", context).addClass is not a function
addClass('tabs-processed')
It seems js does not recognise jQuery but include paths are fine.
I have the latest versions of jQuery, jstools etc.
Regards,

#1
I'm getting a quite similar error. To be more specific, the error actually occurs on every page load on the Firefox error console -
Error: $(".drupal-tabs:not(.tabs-processed)", context).addClass("tabs-processed").addClass("tabs").each(function () {if ($(this).is(".tabs-navigation")) {Drupal.tabsNavigation(this);}}).tabs is not a function
Source File: http://msdrupal/modules/jstools/tabs/tabs.js
Line: 19
Using:
Firefox 3.0.4
jstools 5.x.1.2
jquery 1.2.6
#2
Also want to add that when I say jquery 1.2.6, I'm using the files from jquery_update
#3
I get a similar error
$('.quicktabs_wrapper:not(.quicktabs-processed)', context).addClass is not a function (line 6)
when I include the Prototype Javascript Framework file prototype.js (http://www.prototypejs.org/).
Great module - very useful...
Paul N.
#4
Hey,
I have had the same problem and it was because my page was loading jquery.js twice. Fixing this resolved the problem.
#5
Thanks unknownguy, I had the same problem here!
I was manually calling jquery.js trough drupal_add_css in template.php, I commented that line and now it works.