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


3 Posts   857 Views


29 August 2011 at 4:38pm Community Member, 10 Posts

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?



29 August 2011 at 6:14pm Forum Moderator, 5511 Posts

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


29 August 2011 at 6:20pm Community Member, 10 Posts

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