258 posts
  • Has been part of the Envato Community for over 5 years
  • Has sold $250,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+4 more
BuchmannDesign says

I have a customer having a problem with one of my themes. I think the main problem is that the javascript isn’t running. So the slider, lightbox, etc. don’t work and the whole site is broken.

The code is pointing to the correct .js files and the .js files do exist. If i navigate directly to them it does open up in the browser.

Without posting any specific code, does anyone have an idea what could be the problem? Could it be a “permissions” issue on the server, or something else kind of technical?

I’ve combed through all the code on their live site and can’t find anything wrong!

Thanks! John

1479 posts The right tools with none of the gimmicks
  • Has referred 50+ members
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+6 more
PixelBin says

Just a quick note before the explanation, but that’s why you should always make sure the site works without Javascript. :)

Anyway, you should make sure the folders are in the same structure on their servers as they are on your HDD . Maybe they put the Javascript folder inside another folder, or renamed it, or something of the sort, and that’s why the target to the file doesn’t work.

Hope this helps a bit.

631 posts
  • Has referred more than 5000 members
  • Has sold $5M+ on Envato Market
  • Has collected 100+ items on Envato Market
  • Had an item featured in a magazine
+9 more
Kriesi says

sounds like the script has an error somewhere inside it that stops it from executing properly. I would recommend to use firebug and check if errors do exist.

Another possible option: does your script use a javascript library like jquery? does your customer use the same version as you do? different versions could also cause problems. ive often encountered this when using wordpress and someone used a plugin that overwrites the version that is shipped with the worpdress installation.

1479 posts The right tools with none of the gimmicks
  • Has referred 50+ members
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+6 more
PixelBin says

Kriesi makes a good point. I’ve encountered errors in Javascript in my themes on Firefox, and everything continued to work fine, but if I looked at the same pages in IE6 /IE7, everything would break and none of the scripts would work.

258 posts
  • Has been part of the Envato Community for over 5 years
  • Has sold $250,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+4 more
BuchmannDesign says

Thanks for all the help! The customer is using the exact same jquery files and .js files as what i supplied with the theme, so that can’t be the problem. The site structure also seems good. When i navigate directly to the .js file, the js code appears on the screen.

I’m not getting any errors with Firebug, but then again, i don’t really know how to use that “console” thing. I’m probably not using it right.

But i am getting a javascript error when testing in IE. Gives me a line number. Wow, IE6 FTW ! :) Problem is the referred line number looks totally fine. Well, at least i have something to go on.

So you think a small JS error will cause ALL javascript to not work on a site?

631 posts
  • Has referred more than 5000 members
  • Has sold $5M+ on Envato Market
  • Has collected 100+ items on Envato Market
  • Had an item featured in a magazine
+9 more
Kriesi says

yea that could happen. another tip i can provide: i ve encountered some of these problems as well: js worked in every browser except for ie. almost always i forgot to remove or add a ; or ,

94 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 10+ members
  • Has sold $5,000+ on Envato Market
  • Has collected 1+ items on Envato Market
+4 more
JimmyP says

Linky? Code? ... Can’t really help without a glimpse at the code :)

1479 posts The right tools with none of the gimmicks
  • Has referred 50+ members
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+6 more
PixelBin says
yea that could happen. another tip i can provide: i ve encountered some of these problems as well: js worked in every browser except for ie. almost always i forgot to remove or add a ; or ,
So true. Those problems I was referring to in an earlier post were also ”,’ and ”;”. Internet Explorer doesn’t like them, so it might as well be messing things up in other browsers.

About that line number… I’d say look within 20 lines of that number, lol. It’s rarely accurate. I found my error within 11 lines of the line number it gave in the error.

258 posts
  • Has been part of the Envato Community for over 5 years
  • Has sold $250,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+4 more
BuchmannDesign says

Thanks everyone! Actually the javascript doesn’t show up in ANY browser. I was off on vacation for a week and i’m finally able to look into this again. Sucks that i have to probably spend all day debugging this for a customer. I figure i’d fix it just in case something is wrong with the theme! :)

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by