Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Javascript Require 500 Error


Reply


3 Posts   919 Views

Avatar
Tetragrammaton

Community Member, 10 Posts

29 August 2011 at 4:38pm

Hey, I've got the following code in my head:

<% require javascript(mysite/javascript/prototype.js) %>
<% require javascript(mysite/javascript/menucontents.js) %>
<% require javascript(mysite/javascript/anylinkmenu.js) %>
<% require javascript(mysite/javascript/menuInit.js) %>

They show up in the source of my page, but when I click through, I get a 500 error. Any ideas as to why?

Thanks

Avatar
Willr

Forum Moderator, 5513 Posts

29 August 2011 at 6:14pm

Check your server's error log. That'll contain more information about the 500 error (could be permissions based).

Avatar
Tetragrammaton

Community Member, 10 Posts

29 August 2011 at 6:20pm

I figured it might be a file permission issue. I'll try messing with them to see if that fixes it.