Closed (outdated)
Project:
jQuery Update
Version:
6.x-2.0-alpha1
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
27 Oct 2008 at 19:57 UTC
Updated:
8 Mar 2017 at 15:37 UTC
Jump to comment: Most recent
Hi. I'm using Pixture Reloaded with no problem in Firefox and Midora (Webkit-based browser). But, when I try to load the same site in IE6, I get a "'jQuery' is undefined" error on line 25, which is the line in the head that calls jQuery.extend().
I found a report of this same issue in the Salamander theme: http://drupal.org/node/170590 and http://drupal.org/node/170579 . The latter recommends adding drupal_add_js('jQuery.js', ...) or similar to page.tpl.php, but that doesn't seem to help, since it just adds a
, which is already present. Outside of Drupal, people who report this problem sometimes suggest running jQuery.noconflict(), but I haven't tried this or worked out the details yet. Thanks, Andrew.
Comments
Comment #1
Jeff Burnz commentedI'm trying to recreate it but I can't on a default install (http://drupalstaging.com/pixture2/)
Do you have a link to your installation? Any other JS stuff going on etc?
I'll read those other threads, any thing else you might think might be a contributing factor?
Comment #2
Andrew Schulman commentedOK, I found the reason. I had inserted a
<base>tag that turned out to be bad, and that was confusing IE.So this is not a defect in pixture_reloaded. Sorry for the noise.
Andrew.
Comment #3
Andrew Schulman commentedFor the archive: This was also caused by the infamous IE6 digest authentication bug. The bug and fix are described in #128962: HTTP 400 - BAD REQUEST - (A resolution).
Comment #4
Jeff Burnz commentedThanks for the feedback, this may be helpful for other users. I appreciate the time you took to come back and post about this.
Comment #5
xjessie007 commentedI am having the same issue. In my case, the problem seems to be that Drupal does not forward the js file to the browser, but I do not know how to fix it.
This is what I get in Explorer 8.
When I look on line 30, it says:
This is how the jquery.js file is called in the web page code
When I attempt to go to the http://localhost/sites/all/modules/jquery_update/replace/jquery.js page, I get error 403. My filesystem download method is set to private (I am not sure if that relates to it). Would anyone have any idea how to fix this, please? I am runnind Drupal 6.19.
Comment #6
Jeff Burnz commentedShifting this over to the Jquery Update queue, see if you can get some feedback there - sorry, I can't answer your question directly.
I don't know which version you are using so I am guessing :)
Comment #7
xjessie007 commentedThanks. I am using jQuery Update 6.x-1.1 and jQuery 1.2.6.
I have a new finding. When the jQuery Update 6.x-1.1 module is disabled, jQuery is referenced as follows:
and no error msg appears. Then, when the jQuery Update 6.x-1.1 module is enabled, jQuery is referenced as follows:
and I get the "jQuery is undefined" error message. I am not sure what to do. Should I copy the /sites/all/modules/jquery_update/replace/jquery.js file over the /misc/jquery.js file, disable the jquery update module and leave it that way? (Sorry for a stupid question, do I need jquery at all? I installed the jquery update module just because I saw a message on the website status page that I should do it, but I do not see any difference in the site functionality (except the error message) with or without the module.)
Comment #8
xjessie007 commentedComment #9
agileware commentedI'm seeing this as well. I will investigate and see if I can find the source.
Also, I'm using 6.x-2.0-alpha1 so it doesn't just affect 6.x-1.1
Also, this seems to only affect IE versions less than 8.
Comment #10
agileware commentedMy issue seems to have been solved by using the regular version of the jquery file instead of the minified version.
Not ideal but if it fixes the problem it's not the end of the world.
Comment #11
agileware commentedScratch that last one, it actually seems to have been fixed by turning off javascript aggregation (regardless of using minified or development jQuery), which is definitely not ideal but at least for now it is working for me.
Comment #12
stmathew commentedPut jquery script tags before any .js script tags that use jquery. This will fix the IE error. Although Firefox does not complain - the included js files fail gracefully.
Comment #13
agileware commentedThanks for the tip.
But if everything comes from the $scripts variable and drupal_add_js() doesn't have a weight option in drupal 6 how can you make sure (I would assume drupals js system would already handle adding jquery first for within the $scripts variable).
I'll also double check for any scripts outside of the $scripts variable.
Comment #14
centas commentedhad same issue with version 6.x-1.1, solved by suggestion of Agileware: disabled the javascript aggregation.
unfortunately Drupal is not very friendlu with jQuery.
Comment #15
jnettikI'm having this same problem. Problem is if I disable the aggregation, my page won't load at all in ie8 and below. I think that has to do with IE's script limit, correct?
Comment #16
caspercash commentedi am also experiencing this kind of problem in IE when the highslide js functionality is enabled. works great in FF and chrome but unfortunately in IE, it doesn't work at all.. the js error 'jQuery' is undefined still appears. I think there is some conflict with the jQuery and highslide.js in IE. But mysteriously, it doesn't have any problem on other browsers except IE. any ideas?
Comment #17
splitsplitsplit commentedI had this problem. My problem was how I was calling the JS.
Adding the JS to my theme like this:
drupal_add_js('sites/all/themes/mytheme/facetaccordians.js', 'file');Worked fine. However I wanted it to be conditional so modern browsers didn't have to have an extra JS file. The only way I managed to get this was adding the stylesheet straight into the html.php file.
The following was also suggested somewhere, however this caused the undefined problem.
Comment #18
markhalliwellDrupal 6 reached EOL (end-of-life) on February 24, 2016.