alexh Posted January 12, 2009 Share Posted January 12, 2009 HI, I've had a look around but didn't find the answer so please redirect if it has been answered already. My website tends to fail on a random basis. I mean: the status bar of Firefox tells me " waiting for www.hwumc.co.uk..." and after about 4 seconds, I've got a beautiful white page instead of the default page (on other browsers, I've got a "Cannot display the page" type of error message). Now, I would tend to think that the server tries to allocate more memory than allowed, however there is absolutely nothing in the logs related to such incident. I have to refresh the page in order to have it displayed. I've tried to see any error messages (ini_set('error_reporting', E_ALL) but that doesn't work either. The server also fails to read a simple script like echo 'hello world'; Any idea anybody? Many thanks Link to comment https://forums.phpfreaks.com/topic/140488-php-failure/ Share on other sites More sharing options...
priti Posted January 12, 2009 Share Posted January 12, 2009 is php supported ?? you can quickly cross-check by creating following test file test.php <?php phpinfo(); ?> Run this and see if it return expected output . Link to comment https://forums.phpfreaks.com/topic/140488-php-failure/#findComment-735178 Share on other sites More sharing options...
alexh Posted January 12, 2009 Author Share Posted January 12, 2009 Thanks for replying. The website has been running on php for about a year now, so yes, it is supported. It's always been doing that but I've always thought it was coming from my code... This failure is totally random. No matter what page you are trying to see. 7 times out of 10 the pages are loaded properly. And the same thing happens (at random too) when form data is processed. phpinfo() works fine 9 times out of 10. Link to comment https://forums.phpfreaks.com/topic/140488-php-failure/#findComment-735182 Share on other sites More sharing options...
kenrbnsn Posted January 12, 2009 Share Posted January 12, 2009 Talk to your hosting company. Ken Link to comment https://forums.phpfreaks.com/topic/140488-php-failure/#findComment-735202 Share on other sites More sharing options...
priti Posted January 13, 2009 Share Posted January 13, 2009 Collect your logs for the day and find what happened !! Link to comment https://forums.phpfreaks.com/topic/140488-php-failure/#findComment-736111 Share on other sites More sharing options...
alexh Posted January 13, 2009 Author Share Posted January 13, 2009 Nothing in the logs. I've contacted the hosting company and they told me there wasn't any problems. So I replied again and waiting for their answer again. Make pressure on the tech support team is the only thing I can do just now. The funny things are: - it does not happen just to me: all my regular users have witnessed it one day or another. - it's not a internet connection issue since I've tried from different access points and even my regular users have accessed the website from different places (and with different computers, and different OSs...) - it's not a browser issue since I have tried the website in a variety of browsers: IE6&7, FF2&3, opera, chrome, safari. - I've tried the website on 4 other servers with different php.ini settings: not a single failure happened on them. - I've tried a blog of mine on that server and the same behaviour appears at random again. So I was just wondering if such thing had happened before to someone else (surely there must be someone..). Or may be should I post this somewhere else on the forum? Thank you for your replies guys and for your time. Link to comment https://forums.phpfreaks.com/topic/140488-php-failure/#findComment-736434 Share on other sites More sharing options...
PFMaBiSmAd Posted January 13, 2009 Share Posted January 13, 2009 What does a phpinfo(); statement show for the error_reporting setting? If it is not set to E_ALL than some types of php detected errors won't be written to the error log and if you are using any @ in your code to suppress errors, remove them as well. On a live server you should set display_errors to OFF to prevent errors from being written to the browser but all error reporting should turned on so that errors get written to the error logs so you have a record of when and what is occurring. Link to comment https://forums.phpfreaks.com/topic/140488-php-failure/#findComment-736463 Share on other sites More sharing options...
alexh Posted January 14, 2009 Author Share Posted January 14, 2009 @ PFMaBiSmAd: error_reporting:6135 I went straight to php.net to see what could be the possible values but 6135 wasn't listed at all. Instead, the closest match I could get was 6143 (E_ALL). So who's right? I've checked this setting on the other servers I have used in order to compare and I got that: alwaysdata: 6143 omnius: 6135 threewheeler: 6135 Link to comment https://forums.phpfreaks.com/topic/140488-php-failure/#findComment-736688 Share on other sites More sharing options...
PFMaBiSmAd Posted January 14, 2009 Share Posted January 14, 2009 6135 is 6143 - 8 (E_NOTICE), so E_NOTICE message are not being reported or logged by default. It's possible that a condition is occurring either on the server or in the script when a request is received that is not being handled correctly by the script that results in either nothing being output or a page that does not terminate (forever loop) but times out instead. The following should have worked. You would need to post the actual code to get help with it - ini_set('error_reporting', E_ALL); What php version? There was one recent php5 version (5.2.4 or .3 if I remember correctly) where they forgot to call the clean up code on fatal parse and runtime errors so errors were not reported when a page terminated due to a fatal error. What are the phpinfo() settings for error logging set as? Link to comment https://forums.phpfreaks.com/topic/140488-php-failure/#findComment-736811 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.