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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

Javascript Require 500 Error


Go to End


3 Posts   1485 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, 5523 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.