Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Broken javascript on live site need help

So I've had a site i work on for an online charter school and it recently got hacked unfortunately. Prior to this, I had the two sites linked but recently had to unlink the student and teacher sites. Now, it seems that the javascript is broken on the site. I am using the zurb foundation 5 framework but cannot figure out what the cause is of the broken javascript. The link is http://ops.emsofl.com

3 Answers

You're getting a Status 500 error(Internal Server Error). I'm guessing it's a permissions issue. I noticed you're linking to your JS from your bower_components folder. You might want to change that.

thats I actually just noticed and fixed it with the IT guy, but what do you mean about linking from your bower_components folder?

Why is linking to the bower folder bad? I just started a Foundation project and it sets itself up like that by default. Is it because you don't want to use default setups to make your site more secure?

EDIT: Nevermind I see your new post with a link to read. Gonna check it out now. Thanks!!!

It debatable but I think you should have a separation between production and development.

The link you've provided is broken.

sorry doesnt need the www

You're using Bower to fetch dependencies.

/bower_components/foundation/js/foundation.min.js

http://stackoverflow.com/questions/23376513/are-you-supposed-to-link-to-bower-components-in-production

Ah so what is the problem with that?