Quote:
Originally Posted by Ikuto
It's not a 500 error. It's a
die('<h2>Error</h2>');
command executed by script.
|
Yes, an error in the server script that causes the script to stop processing (or die)
is a 500 error. If you could see the server logs, you would see that the server is returning a 500 code to the browser. It may or may not include some really informative text like
Error. That is exactly the definition of a http 500 error.
If this is the die command when trying to connect to a MySQL database, you could change that die command to something more informative like:
Code:
or die(mysql_error());
or just take out the text string etirely to get the real error message:
----------------------------------------------------------------------
UPDATE: OK, now that you've edited with the actual code, it looks like this must be a function called from a 'die ()' command. The same concept still applies. No one is going to be able to help until you figure out what the function is trying to do that is resulting in the die (). That's where the problem is that's generating the error.