Closed (fixed)
Project:
jCarousel
Version:
6.x-2.4
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 Oct 2011 at 21:44 UTC
Updated:
20 Nov 2011 at 22:22 UTC
Jump to comment: Most recent file
Comments
Comment #1
quicksketchIf you have a particular error from your browser's JavaScript console, that would probably help determine the error.
Comment #2
jusyjim commentedHi thanks...
Here's a screen shot of the console.
Comment #3
jusyjim commentedThe message
$ is not defineddoes not apply, that is for a different module that I was testing. Just the other 3...Comment #4
quicksketchCould you disable JavaScript aggregation (admin/settings/performance) and take the screenshot again? Any JavaScript error on the page can bring down all the JavaScript functionality, so the other module you were testing should be disabled if you're not using it.
Comment #5
jusyjim commentedHey, that's interesting... I disable js aggregation and it doesn't cause the error. When I re-enable aggregation the error comes back.
Comment #6
jusyjim commentedSeeing that I can't get the error message you wanted, is there anything else I can do to help you find out. Does the fact that disabling js aggregation fixes the problem help you at all? I would hate to have to keep that disabled. Thanks.
Comment #7
quicksketchI don't have any ideas that I'm 100% certain on, but my guess is that JS aggregation may be breaking because one of the SuperFish JS files doesn't have a blank line at the end of it. I don't *think* this is actually a requirement for the JS aggregator to work, but what's happening is the aggregated JS file contains a syntax error, breaking all other JS on the page. The individual non-aggregated files do not have an error though, it's strange.
Do you have any modules that compress the JS code in addition to aggregating it, such as JSMin? Aggregation itself rarely causes a problem, but attempting to compress the JS frequently causes problems.
Comment #8
jusyjim commentedHi, no JS min or other JS tools.
Here are all the scripts loaded:
Comment #9
quicksketchFrom your screenshot attached to #2, it looks like SuperFish is throwing the error before any other JS on the page finds any errors. My guess is that it's having a snowball effect and breaking the rest of the JS on the page. I would suggest turning back on aggregation, look at the error console again, and try to figure out what is causing the error by looking at the line number of the file that is throwing the error.
Comment #10
jusyjim commentedHi,
I did that and came back with the same errors (below)
I've attached the 2 .js files for your reference.
Comment #11
quicksketchSo the first error makes this problem pretty apparent:
On line 785, the open comment "/*" is put on the end of the line instead of being on the next line. This is probably a bug in Drupal core, but you can fix it either by:
- Putting a new line at the bottom of the Supersubs JS file.
- Putting a new line at the top of the Superfish JS file.
I can't know the exact name of the file from your attachments. But you should be able to figure that out easily enough.
Comment #12
quicksketchClosing this issue after a lack of activity.