Jump to content

Recommended Posts

hey guys i've been having a problem with my server which displays the following:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator to inform of the time the error occurred and of anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

and the problem was when i was calling for a class property which didn't exists...i was calling:

$this->_ports;
//instead of 
$this->_port;

now surly that should of just throw a error as i have error reporting on?

 

error log says:

[Tue Apr 21 19:32:56.998858 2015] [fcgid:warn] [pid 2871:tid 140557745637120] (104)Connection reset by peer: [client 185.4.135.150:44715] mod_fcgid: error reading data from FastCGI server
[Tue Apr 21 19:32:56.998927 2015] [core:error] [pid 2871:tid 140557745637120] [client 185.4.135.150:44715] End of script output before headers: index.php 

so i googled the problem and read to put this in my .htaccess but that hasn't helped

<IfModule mod_fcgid.c>
IdleTimeout 300
ProcessLifeTime 3600
# MaxProcessCount 1000
DefaultMinClassProcessCount 0
DefaultMaxClassProcessCount 100
IPCConnectTimeout 360
IPCCommTimeout 360
BusyTimeout 300
</IfModule>

how can i stop the server from not displaying the page in the near future if i have a simple script error such as this?

 

thank you

Edited by Destramic
Link to comment
https://forums.phpfreaks.com/topic/295741-server-problem/
Share on other sites

Simply accessing a non-existent property will not fatal code unless (a) access goes through __get which fatals by itself or (b) you try to do certain types of actions with that value, such as call a method on it.

 

Your live website should keep those 500 errors in place: displaying error messages to the user is not a good thing. Instead, check your error log, be that the Apache log or a dedicated PHP error log.

Link to comment
https://forums.phpfreaks.com/topic/295741-server-problem/#findComment-1509560
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.