Drupal.settings.tabs is undefined

mErilainen - July 1, 2009 - 08:04
Project:Tabs (jQuery UI tabs)
Version:6.x-1.2
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

I'm not sure if this is related to Vertical tabs, but I haven't got his problem before enabling this module.

If I have a page which uses vertical tabs (e.g. edit profile, edit node), sometimes Drupal won't load ANY Javascript. IE7 says that there is an error and I get this when I open the console:
"Drupal.settings.tabs.speed error" is null or not an object

With Firefox the problem happens way less frequently, but using Firebug I get more info when it occurs.

Error: invalid object initializer
Source File: http://hlab.ee.tut.fi/piiri/user/register
Line:
63

Error: Drupal.settings.tabs is undefined
Source File: http://hlab.ee.tut.fi/piiri/sites/hlab.ee.tut.fi.piiri/modules/tabs/tabs... 5

Looking into the first error I get this

jQuery.extend(Drupal.settings, { "basePath": "/piiri/", "tabs": { "slide": false, "fade": true, "speed": "fast", "auto_height": false ...

which continues for 20 lines or so. As you might notice, we have a multi-site installation of Drupal.

Looking briefly to vertical tabs code, I cannot see any value set for speed variable (which seems to be causing this problem), but I'm not a JS guru and don't know where the problem might hide.

#1

mErilainen - July 1, 2009 - 08:10

I'm not sure if the problem is the same but here is some discussion with similar problem
http://drupal.org/node/286171#comment-1202193

#2

Dave Reid - November 6, 2009 - 20:39
Project:Vertical Tabs» Tabs (jQuery UI tabs)
Version:6.x-1.0-beta3» 6.x-1.2

Wrong module. This is a problem with the Tabs module.

 
 

Drupal is a registered trademark of Dries Buytaert.