View Full Version : Resolved 500 server error accessing php file
03-14-2010, 05:00 PM
The page cannot be displayed
There is a problem with the page you are trying to reach and it cannot be displayed.
Please try the following:
HTTP 500 - Internal server error
when accessing the file at: http://www.gonumerology.com/__lgn-9636907_nn_63/_lgn_96314278.php
Here is the code of this file. It worked for a bit and then just started displaying this error out of the blue.
03-14-2010, 05:07 PM
This isn't a problem with the script, it's a server error. If you are using a hosting company then their server went down, if you host it yourself, it's yours.
Usually comes back up within 30 minutes to 2 hours.
I don't see anything in that script that would cause it.
The Web server (running the Web Site) encountered an unexpected condition that prevented it from fulfilling the request by the client (e.g. your Web browser) for access to the requested URL.
This is a 'catch-all' error generated by the Web server. Basically something has gone wrong, but the server can not be more specific about the error condition in its response to the client. In addition to the 500 error notified back to the client, the Web server should generate some kind of internal error log which gives more details of what went wrong. It is up to the operators of the Web server site to locate and analyse these logs.
Any client (e.g. your Web browser) goes through the following cycle when it communicates with the Web server:
* Obtain an IP address from the IP name of the site (the site URL without the leading 'http://'). This lookup (conversion of IP name to IP address) is provided by domain name servers (DNSs).
* Open an IP socket connection to that IP address.
* Write an HTTP data stream through that socket.
* Receive an HTTP data stream back from the Web server in response. This data stream contains status codes whose values are determined by the HTTP protocol. Parse this data stream for status codes and other useful information.
This error occurs in the final step above when the client receives an HTTP status code that it recognises as '500'.
This error can only be resolved by fixes to the Web server software. It is not a client-side problem. It is up to the operators of the Web server site to locate and analyse the logs which should give further information about the error.
03-14-2010, 05:13 PM
Well the server should be working fine:
The main index page shows up without issues http://gonumerology.com and all the other pages work as well, just this one doesn't, so it's definitely problem with the file.
03-14-2010, 06:30 PM
FIXED. The database update call was in the wrong place - after the while loop when it should have been inside it.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.