http-status-code-500

Python script runs via apache when permissions are 755 but gives Error 500 when 777?

I uploaded a basic python script to my shared hosting at Dreamhost, and changed the permissions to 777. It ran fine from the shell (via SSH) but would display a 'Server Error' when called from the browser. In the error.log, the error was 'Premature end of script headers'. I wrote to DreamHost, who (surprisingly quickly) replied by chan...

how to know if my users got a 500 Error?

Hi, my boss says "when I try to serf the website I get a server error... after a reload I get every thing back to normal". I think that he gets 500 error. how can I log it? I want to know when and where it happens. any ideas? ...

500.19 Internal Server Error - RequestFilteringModule config error

I'm working on a site built on the Telligent Community platform. It comes with a zip of the site that I need to setup and build from. I've setup the site and have been working on it, except the default web.config has one thing that breaks the site, unless I comment it out. The line is <requestFiltering allowDoubleEscaping="true" /> in th...

How do you trace 500 server errors with Apache + mod_python + Django?

I'm randomly getting 500 server errors and trying to diagnose the problem. The setup is: Apache + mod_python + Django My 500.html page is being served by Django, but I have no clue what is causing the error. My Apache access.log and error.log files don't contain any valuable debugging info, besides showing the request returned a 500....

Basic post to test web service

I am working on form, which send input to webservice via post and display result. It must be simple, and it works fine on localhost. But when I try to use it agains live I have error 500. Here is my code: WebRequest request = WebRequest.Create("http://localhost:3192/WebServices/Export.asmx/" + uxAction.SelectedValue); ...

httplistener doesn't work on port 80?

The setting: Windows 7, IIS installed and running. The following piece of code: HttpListener listener = new HttpListener(); listener.Prefixes.Add("http://server.com:8080/path"); listener.Start(); Works like charm - any request made against the server is received in my code. However, when I make the following change (moving to port 8...

Error 500 on Google App Engine out of nothing

Hi, I got Error 500 on Google App Engine out nothing. http://oladic.appspot.com/ - this got error. The same code runs flawlessly at: http://blogthere.appspot.com/ and http://912.latest.oladic.appspot.com/ How could this be? ...

How do I hide stack traces in the browser (using Jetty)?

I'm using Jetty as my servlet container. If an exception is thrown in one of my servlets the browser will display an HTTP ERROR 500 with the exception message and a stack trace. For security reasons I need to hide the stack trace. Is there a way to configure this generally? Or do I need to trap all Throwables in my Servlet? Thanks ...

requireSSL="true" gives http 500 server error

in my web.config file when i put the following code for eliminating vulnerability, i get the following error. Code - Error - HTTP 500 Internal Server Error What is the problem? why is this happening? i have asp.net with IIS7. ...

How to change handling of internal server error?

My application produces an internal server error, running on tomcat it prints a stacktrace with the given error. On Oracle it hides the error and post it to application.log. Is it possible to change this setting via the deployment descriptor? 500 Internal Server Error Servlet error: An exception occurred. The current application deplo...

Bad Request to RESTful WCF Service Forces IIS to Recycle App Pool

I am attempting to create and host a simple RESTful WCF Service. The service works perfectly except for 1 situation. I attempt to perform a POST to insert a new object into my static List using the JSON request of: {"sampleItem":{"Id":1,"StartValue":2,"EndValue":3}} If I then change the request to be: {"sampleItemBlah":{"Id":1,"Start...

Testing a Django view cause "AttributeError: 'NoneType' object has no attribute 'handler500'" error

I just wanted to start testing a Django view using the code below: from django.test.client import Client c = Client() response = c.get('/search/keyword') print response.content It just throws out following error message: "/usr/local/lib/python2.6/dist-packages/django/test/client.py", line 286, in get response = self.request(**r) F...

PHP does not return errors at all

I am running PHP and nginx and I use a production version of php.ini. So the variable display_error is set to Off and there is a good reason I want it this way. But for certain files I need to enable error reporting. I used ini_set to turn on error reporting. But a simple code snippet like: <?php error_reporting(E_ALL); ini_set("display...

Fastcgi 500 error on preg_match_all in PHP

I'm trying to set up some exotic PHP code (I'm not an expert), and I get a FastCGI Error 500 on a PHP line containing 'preg_match_all'. When I comment out the line, the page is returned with a 200 (but not how it was meant to be). The code is parsing PHP, HTML and JavaScript content loaded from the database and is composing them to ret...

django media url is not resolved in 500 internal server error template

Hi, I'm using a 500.html template for my app, which is an identical copy of the 404.html with some minor text changes. Interestingly the {{ media_url }} context variable will not be resolved by the server if the 500.html is presented (e.g. when I force an internal server error), resulting in a page without any css loaded. An easy way ...

How to simulate an error 500 in Symfony 1.4?

I created an error500.php file in web/errors/ and would now like to test it. I tried to put this line in one of my actions: $this->getResponse()->setStatusCode(500); Unfortunately it looks like it's ignored. Do you guys have any idea of what's happening here? I'm using Symfony 1.4. Edit: Firebug is telling me that the error is act...

vHost RewriteRule is creating a 500 Error

Hello, Below you will find my current vHost entry that I am using for a site that I currently have under development. This vHost entry works fine when I have it on my local machine, but when I push my code to my staging server that is running this same vHost record I receive a 500 Internal Server error. The machine I'm running this vHo...

500 Internal Server Joomla

Hi, I changed the file permissions on all my files and directories in my Joomla site and I am getting the 500 Internal Server error. What should be the right file permissions settings. Thanks ...

Custom 500 Error Page with ASP.NET 3.5 SP1 WebForms (not MVC) and Routing

Could someone share the technique to get a custom 500 error page displaying in ASP.NET 3.5 WebForms with System.Web.Routing hooked in. I was able to get a 400 Error Page working by creating a catch-all route but don't understand the technique for showing a custom 500 error page. I would like if the URL remained for the page that blew...

CascadingDropDownList not working with anonymous access

Hi everyone, I use a CascadingDropDownList of the AJAXControlToolkit in a ASP.NET MCMS 2002 web application. The CascadingDropDownList works as expected until "Anonymous access" and "Integrated Windows Authentication" flags are both checked (and this is the situation in the production environment) in the Directory Security settings on th...