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
Ryan Hellerud
3,635 PointsBroken 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

David Tonge
Courses Plus Student 45,640 PointsYou'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.

David Tonge
Courses Plus Student 45,640 PointsThe link you've provided is broken.
Ryan Hellerud
3,635 Pointssorry doesnt need the www

David Tonge
Courses Plus Student 45,640 PointsYou're using Bower to fetch dependencies.
/bower_components/foundation/js/foundation.min.js
Ryan Hellerud
3,635 PointsAh so what is the problem with that?
Ryan Hellerud
3,635 PointsRyan Hellerud
3,635 Pointsthats I actually just noticed and fixed it with the IT guy, but what do you mean about linking from your bower_components folder?
Colin Marshall
32,861 PointsColin Marshall
32,861 PointsWhy 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!!!
David Tonge
Courses Plus Student 45,640 PointsDavid Tonge
Courses Plus Student 45,640 PointsIt debatable but I think you should have a separation between production and development.