Closed (fixed)
Project:
Quick Tabs
Version:
6.x-2.0-rc3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 May 2009 at 21:22 UTC
Updated:
4 Jun 2009 at 14:40 UTC
I am running Drupal 6.12 with acquia marina theme. Ajax tab loads work on the front page of my site. On other pages (all pages except the front page) the js and css files fail to load. As a result all styling and Ajax functionality are lost. I have temporarily worked around the styling issue by manually including the css files on pages other than the front page.
I have reproduced this error for
1. logged in and anonymous users in,
2. IE7, Firefox3.0.10 and Chrome
You can see this error at http://sectorspace.org/members/community-pics I really need the tabs to load via Ajax. Any ideas?
Thanks in advance for taking a look.
Comments
Comment #1
pasqualleThat sounds really similar to: #342459: Block cache problem (Not showing for anonymous or authenticated users)
do you have block cache enabled?
Comment #2
aikaterine commentedForgot to mention -
Sorry, I forgot to mention that I initially tried to include the js at the theme level, which threw the 'Drupal.settings.quicktabs is undefined' error as jQuery.extend was not being updated with the Quicktag settings. I decided that it would be best to report this and see if someone could help me work through a better fix than brute force. So I removed the manual insertion of the js. Which is why the 'Drupal.settings.quicktabs is undefined' error is no longer thrown on the link above.
The question then, is why are the js and css files only loading on the front page?
Thanks again.
Comment #3
aikaterine commentedThanks for looking.
No block cache is not enabled.
I think I tried the suggestions in the link you quoted already, but will read through it again to make sure. Things are a bit blurry at this stage.
Comment #4
aikaterine commentedPasqualle,
I had come across your link before and none of the things mentioned in it has fixed my issue. To provide a little more info and hopefully get some questions answered right off the bat:
All quicktab blocks have cache set to -1.
block cache is not (and has not ever been) enabled.
I had previously added FALSE for the $cache parmeter in drupal_add_js to try and force the js to load on every page
I changed the theme to Garland & Minelli
None of the above worked.
Comment #5
pasquallecan you try to clear the cache and test the page after that?
Comment #6
aikaterine commentedAlready done. I did it (cleared the cache) again and still no joy.
Comment #7
aikaterine commentedAfter some further investigation, I discovered that the js and css files were not loading when I called the quicktab block from within page.tpl.php. I tried using these two calls:
and
Both displayed the content, but neither triggered whatever code exists to load the css and js files. If I used admin->build->block to assign the quicktab block to a region, then the scripts are loaded. However, a new problem has appeared. Now, none of the content is loaded in tabs other than the first tab.
There should be some way to call the module from within a tpl.php file - and have it work correctly. Is there?
The new issue (content not loading in addittional tabs) can be seen on the link listed above. As you can see, the tabs now use Ajax, but there is no content beyond the first tab. It appears to be the same problem as #455054: Views tables are not being populated when Quick Tabs AJAX loading is active. Any ideas?
Comment #8
pasqualleanything which requires additional js or css files will not work from page.tpl.php. If you use any other theme template, the quicktab will show up correctly.
I wrote a comment how to display quicktab from page.tpl.php here: #332895-13: render quicktab programatically
Comment #9
aikaterine commentedPasqualle,
Thank you for pointing me to your fix. It worked. Do you know how the issue #455054: Views tables are not being populated when Quick Tabs AJAX loading is active was resolved? It appears to be fixed on the site, and I am now having the same problem.
Thanks again.
Comment #10
pasqualleas I see the issue #455054 is still not fixed, as on that site the ajax is turned off for that quicktab.
but this issue is fixed..