Hi,
I am seeing the following error message on chrome console :
'Uncaught ReferenceError: jQuery is not defined'
The relevant html section is :
\x3C/script>") //--> It seems to come from fb_page_alter()/fb.module. Not sure if this is a local setup issue. In that case please close the issue with my apologies. (All other jquery functionality of my site is working fine). Thanks, /jay
Comments
Comment #1
Dave Cohen commentedI don't think your description worked. Try using
<code>tags.AFAIK, jQuery should be defined by Drupal. Haven't seen this error myself.
Comment #2
kvhdude commentedoops. sorry. here is the html :
thanks,
/jay
Comment #3
Dave Cohen commentedHmmm... that stuff at the end seems to come from jquery_update module. I think the two modules are not working well together.
To confirm this, could you disable that module and see if the error goes away?
If so, and you still want both modules enabled, I think you need to change the order in which they add code to the bottom of the page. Try setting the module weight of jquery_update to be, say, -20 (that's negative 20). That way it's code which defines jQuery should come first.
Comment #4
kvhdude commentedDave,
Thanks for your response.
The error persists upon disabling jquery update module.
/jay
Comment #5
Dave Cohen commentedWhat theme are you using? Try a drupal default theme and see if it works.
I looked at one of my Drupal 7.x sites' source, and I see
near the very beginning. Right before drupal.js is included.
Your post shows those lines at the end of the page, below
</body>. That's odd.Comment #6
hanskuiters commented@Dave Cohen: I had the same error (in a custom module). Setting the module weight to a high number did it for me. Thank you for posting
The order of javascript in his page could be caused by copying the code from Firefox. This browser orders the code in a different way.
Comment #7
socialnicheguru commentedI am putting certain js scripts in footer and I get this error.
Edit:
how do I change the weight of this code provided by dff? I get the error because this code is executed before js is read.
This is no longer relavent:
which fb js file do I have to include in the header to enable this to happen correctly?