labjs seems to break boost stats block "popular content", the block is visible when authenticated (no-cache) but displays blank when browsing as anonymous user. You can see this in action at - http://www.megaleecher.net/
labjs seems to break boost stats block "popular content", the block is visible when authenticated (no-cache) but displays blank when browsing as anonymous user. You can see this in action at - http://www.megaleecher.net/
Comments
Comment #1
jcisio commentedI look at your page, there is a
jQuery(document).trigger('fb:init');that generates an error. It needs to be fixed first!This JS block is not in a LABjs wrapper, then jQuery is not available at the execution time. You may want to do it manually. I wanted to parse all JS block in the page.tpl.php, not only $script. But I thought it could lead to more compatibility problem.
Maybe an option in the settings page? Any thought?
Comment #2
deepesh commentedThat seems to be a code from Facebook Connect module, are you sure the issue is with that code because as far as I can recall this was working fine before Labjs.
Comment #3
jcisio commentedI didn't say that the problem is caused by that module. It's just because it is incompatible with LABjs, and it needs fixed. Try to debug and find the error, then try to fix it. After we know how to fix it, we'll decide where to put that fix, in LABjs or in fbconnect.
But, debug and find the error first.
Comment #4
deepesh commentedHi,
I disabled the module "fbconnect" and cleared the boost cache but the issue is still there ! can you pls. check again.
Thanks
Comment #5
jcisio commentedDid you use Firebug to debug it? Currently there are 2 errors:
$.getJSON(Drupal.settings.basePath...var boost_xhr = $.ajax({url: Drupal.settings.basePath...Put those JS block in
$LAB.queue(function() {...});(hack the boost module to do that). If it works, then we know where is the error, I can ask boost.module maintainer to fix it, or LABjs will have special treatment for it. If it doesn't, then continue to look for another error.However, I'll release a new version with a greedier method.
Comment #6
deepesh commentedI am not a web-dev so would not mess with this javascript/php stuff, I would suggest you ask "boost" dev to look into this matter.
Comment #7
jcisio commentedI've committed a new feature. See README.txt for more info.
http://drupal.org/cvs?commit=482684
Comment #8
deepesh commentedUpdated labjs and boost module to latest dev release, cleared boost cache and the problem still exists.
Comment #9
jcisio commentedDid you read README.txt?
Comment #10
jcisio commentedCode was committed in #7