Panes disappear/Javascript broken on page when panels tabs is created

SocialNicheGuru - June 22, 2009 - 15:18
Project:Tabs panel style
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:postponed (maintainer needs more info)
Description

1. add these two blocks to a pane
Active forum topics in group
New forum topics in group

2. make the style panels

When you save the panel, javascript for the page is disabled. Also panes are missing.

When I look at the javascript using Firebug

Firebug's log limit has been reached. %S entries not shown. Preferences
elem is undefined
nodeName()()jquery.min.js?y (line 19)
tabify()()ui.tabs.js?y (line 192)
tabs()()ui.tabs.js?y (line 60)
(?)()()ui.tabs.js?y (line 28)
nodeName()()jquery.min.js?y (line 21)
filter()()jquery.min.js?y (line 12)
tabs()()ui.tabs.js?y (line 23)
tabs()(Document 3171)tabs.js?y (line 23)
(?)()()drupal.js?y (line 42)
nodeName()(Object, function(), undefined)jquery.min.js?y (line 20)
attachBehaviors()(Document 3171)drupal.js?y (line 41)
(?)()()drupal.js?y (line 276)
onreadystatechange()()jquery.min.js?y (line 27)
onreadystatechange()()jquery.min.js?y (line 27)
nodeName()([function(), function(), function(), 7 more...], function(), undefined)

#1

EvanDonovan - August 5, 2009 - 20:32

I'm experiencing this issue also. It doesn't happen all the time - it seems to happen only when certain panes are together on a panel. But I can't determine what the precise conditions are.

#2

EvanDonovan - August 5, 2009 - 20:34
Title:Panes dissapear/javascript disabled for page when panels tabs is created» Panes disappear/Javascript broken on page when panels tabs is created

By the way, it seems like this is a jQuery UI bug - not strictly a bug with Tabs Panel Style, or the Tabs module, which is a wrapper for the jQuery UI Tabs plugin.

See http://www.nabble.com/Something-wrong-with-UI-Tabs--td20335616s27240.html & http://www.mail-archive.com/jquery-ui@googlegroups.com/msg00293.html, among others. No solutions, though, unfortunately....

#3

EvanDonovan - August 5, 2009 - 22:33

This is not happening to me anymore. It seems to be erratic. I think possibly it is more likely to happen when there are numerous tabs panel style instances on the same page, and (also possibly) if the tabs panels don't have any content in them.

#4

dereine - August 6, 2009 - 06:05
Status:active» fixed

mh yes the problem is that i couldn't reproduce it yet.

and your problem is solved, so i set it to fix, reopen if you want.

#5

EvanDonovan - August 6, 2009 - 15:13
Status:fixed» postponed (maintainer needs more info)

I think the best chance at reproducing it would be to add multiple mini-panels to a page, where only one has content. I think it would be best to keep this at "postponed" since it is a real bug; we just don't know what causes it.

Btw, I'm glad that you are maintaining this module now; I took a look at the JS yesterday and realized I don't understand it.

#6

EvanDonovan - August 13, 2009 - 15:40

I encountered this problem again the other day. It happened again in a case where I added multiple mini-panels to a page and at least one of the mini-panels did not have content. The panels contained views.

I think I could work around it by adding text to the header of each view to show when the view was empty, but that would mess with my design. So instead, I've decided to use the Quicktabs module to render the tabs on my site. It's actually simpler than mini-panels anyway.

#7

ianchan - August 17, 2009 - 18:54

subscribe

#8

ianchan - August 19, 2009 - 22:27

This is what I've found thus far. If all panels are set to use tabs and one tab does not display content, all panels disappear. If I change one panel to not use tabs or if I ensure that all tabs always have some type of content, the problem goes away.

#9

EvanDonovan - August 20, 2009 - 16:28

I've had this bug occur when I had panes on a panel page that did not use tabs. But the panes that did not use tabs were just regular panes and the ones that used tabs were mini-panels.

I think maybe the best workaround (untested) would be to put text in for all your views that will show up when the view returns no results, but then hide/move the text offscreen in the CSS.

 
 

Drupal is a registered trademark of Dries Buytaert.