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

riverfr0zen - December 10, 2008 - 18:55

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

riverfr0zen - December 10, 2008 - 19:21

Also want to add that when I say jquery 1.2.6, I'm using the files from jquery_update

#3

pauln600 - February 3, 2009 - 15:51

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

unknownguy - March 26, 2009 - 12:17

Hey,

I have had the same problem and it was because my page was loading jquery.js twice. Fixing this resolved the problem.

#5

opteronmx - May 13, 2009 - 17:36

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.

 
 

Drupal is a registered trademark of Dries Buytaert.