Reputation: 324640
It is my understanding that a response code of 500 means that the server encountered an error, possibly a misconfiguration or a timeout.
On my current project I've been getting a lot of intermittent 500-responses (about one in every 100 pageloads). But only in Internet Explorer.
What could possibly cause this? The error is apparently completely random. The best we can get from the logs is:
[Tue Jul 24 18:57:09 2012] [error] [client 66.83.159.2] Handler for (null) returned invalid result code 70007
I'm using Apache2.2 and PHP5.4.5.
Upvotes: 2
Views: 4916
Reputation: 21
I know it's an old thread but maybe it helps someone who (like me) finds this on google as one of the first results: If you get a 500-error in one browser and not in the other it may actually not be a server error, but a malfunctioning cookie.
I had the issue where I got a 500 when trying to log in with firefox, but when testing in chrome it worked flawlessly. After clearing the cookies for this page in ff it worked again there too.
Upvotes: 2
Reputation: 41858
Generally something is crashing in the server-side, in this case PHP, so you may want to put in exception blocks and log what would normally go up.
The user should see some useful message, such as Error, please try again, but ultimately this should help you narrow down the problem.
Now, it may be that you will want to return a 500 error, if this is a REST service, but if just returning something a user can see then you should make it more user-friendly.
If you can duplicate it somehow, then use Fiddler2 (http://www.fiddler2.com/fiddler2/), to to get all the back and forth communication between your browser and the server and see if IE is sending something different than other browsers.
Upvotes: 1
Reputation: 7040
500 errors are not necessarily browser specific, but this may be caused by data that is passed to your server from the client.
There should be a php error log in addition to your Apache error log. Check that log or change your settings (on the problematic page) to display errors until you find what you're looking for.
ini_set('error_reporting', E_ALL);
ini_set('display_errors', true);
http://www.php.net/manual/en/errorfunc.configuration.php
Upvotes: 0