I upgraded to RC5 and my Ajax tabs started generating Javascript errors.

I'm running Drupal 6.19. RC4 works fine. When I upgraded to RC5, I noticed that the Ajax stoppped working. I have 2 Quicktabs blocks on my front page. The first is a "Who's Who" Quicktabs block with Tab1 = The Who's online block and Tab2 = The Who's New block. I have a 2nd Quicktabs block that's called "Recent Posts" that has multiple tabs for views. Tab1 = A view for all posts, Tab2 = A view for all Articles, etc.

These Quicktab Blocks are both set for Ajax. As I said, it works fine for RC4. On a hosted site as well as on a localhost site, when I upgrade to RC5, I see the Quicktabs displaying the first tab correctly. When I click on another tab (in either block), I see the Ajax 'loading' graphic which eventually stops. Then in the bottom left of my browser in the status window (IE8), I see that pesky "!" icon that says "Error on page". When I click it to see the error, it shows me:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; Tablet PC 2.0)
Timestamp: Sun, 12 Sep 2010 19:03:01 UTC

Message: Object doesn't support this property or method
Line: 3068
Char: 5
Code: 0
URI: http://localhost/devsites/sites/default/files/js/js_b2bfd15ea966ee3702d5...

Message: Object doesn't support this property or method
Line: 3068
Char: 5
Code: 0
URI: http://localhost/devsites/sites/default/files/js/js_b2bfd15ea966ee3702d5...

Unfortunately, it's reporting an error on a cached page. I tried doing a Clear All Cache and doing a +F5 and still get the errors.

On my dev box, I uninstalled Quicktabs, deleted the Quicktabs folder in sites/all/modules, and installed Quicktabs (drush dl quicktabs grabbed RC5), ran updatedb, and recreated the Quicktab blocks from scratch. Same error.

Comments

wingflap’s picture

I had Page specific visibility settings for the 2 user blocks inside the "Who's Who" Quicktab conflicting with those of the Quicktab block itself. I removed any page visibility settings from the 2 blocks and set the Quicktab to . Now I'm still getting an error but when I click on the new users block tab, I get an empty block.

FYI, I have views carousel running on the front page. I tried setting the Quicktab to not show on and get the same behavior on other pages.

pramudya81’s picture

Similar case here. RC4 was fine.

RC5 has AJAX issue.

I have several tabs. Each tab for each category view.

Normal behavior would be clicking on another tab would show a loading progress bar. Then the progress bar should disappear after loading finished. Showing us content for particular tab.

While RC5, the loading bar is always there. Even after loading finished. And clicking on other tabs (after the 1st click) are now doesnt work. I must refresh the whole page.

Now I fallback to RC4 until this issue solved.

Regards

madjr’s picture

the major problem is with blocks not loading when using the ajax option

no ajax option loads things fine

nodes and QT also have problems with ajax

the only thing that may work with ajax is inserting some types of views (fixed views only. If it has arguments it may not work either..)

i guess i will need to go back to rc4 too

rc5 and 3.xdev should be tagged as ajax broken.

i wonder if it has to do with it being released on 911 :O (jk)

Edit:
rc4 also has same issues in 2 of my drupal test installs.. :o
dont know what to do now..

wingflap’s picture

@madjr - Did your test installs have RC5 then you set them back to RC4 or was it a fresh install with RC4? I found that I have to completely uninstall QT, install RC4 and set up my tabs all over again for it to work.

madjr’s picture

will try another fresh install with less modules and see if the is still a conflict :o

sadly ajax has a tendency to break very easy...

-------
edit: yea rc4 works now on a fresh drupal install
i will see which module breaks its ajax

madjr’s picture

rc5 works now on a fresh drupal install too

i did find an issue right away:
it conflicts with drupals garland theme color picker.
when you click on the ajax tab, it will reset the colors you choose for garland, to the default blue lagoon

ducdebreme’s picture

subscribing

finex’s picture

I'm using Drupal 6.19 and QT 2.0 rc5 and I'm experiencing the problem reported initially.

P.S: I've also installed jQuery Update 6.x-2.x-dev and jQuery UI 6.x-1.3.

vikramy’s picture

Confirming this error.

I do have four tabs. When I click second one it loads fine but when i click third or fourth, I can just see loading image.. I mean, first ajax load works but next fails..

Error:
Drupal.theme.prototype[func] is undefined

chawl’s picture

subs

XiaN Vizjereij’s picture

Just want to add that in rc5 the tabid is getting added to the node url on ajax tabs. E.G. :

test.com/node0?quicktabs_any-unique-id=second#quicktabs-any-unique-id
test.com/node1?quicktabs_any-unique-id=second#quicktabs-any-unique-id

Reverting to RC4 fixes that issue.

katbailey’s picture

Version: 6.x-2.0-rc5 » 6.x-3.x-dev
Status: Active » Closed (duplicate)

I believe this is a duplicate of #1159486: Incompatible with JS aggregation(optimisation) which has been fixed in the 3.x branch and unless somebody else writes the patch it won't get fixed in the 2.x branch.