in reply to why am i getting script error 500

I'll re-iterate what waldner suggests - you should find clues as to what's going on in the error log of your web server.

Some more pointers...