axhi Posted September 4, 2008 Share Posted September 4, 2008 hey, i've been doing php for a while but I am still sure i'm not that good. a site i did for friends www.sconnietours.com randomly will go BLANK white, and I have to reload the mail files, like my header, footer, and index and content mail files to fix it. can anyone help me? thank-you in advance! Link to comment https://forums.phpfreaks.com/topic/122653-page-goes-white/ Share on other sites More sharing options...
genericnumber1 Posted September 4, 2008 Share Posted September 4, 2008 often a page going completely white will be a fatal error occurring, but you do not have errors displayed (display them for debugging!). Since you say it's intermittent you should consider what variables are changing and figure out what is causing the error... since you haven't shown us any code and the site you linked looks to be working fine, there's not much we can do to help Link to comment https://forums.phpfreaks.com/topic/122653-page-goes-white/#findComment-633363 Share on other sites More sharing options...
tibberous Posted September 4, 2008 Share Posted September 4, 2008 Yeah - I have a server where errors are off and it is a pain in the ass to debug. If you have errors off, make sure you have logging on, so you can at least check out the error_log files when it died. Link to comment https://forums.phpfreaks.com/topic/122653-page-goes-white/#findComment-633380 Share on other sites More sharing options...
vicodin Posted September 4, 2008 Share Posted September 4, 2008 Or setup like a virtual server for development and have it on E_ALL... Thats what i did cause i got sick of searching for errors Link to comment https://forums.phpfreaks.com/topic/122653-page-goes-white/#findComment-633386 Share on other sites More sharing options...
lanmonkey Posted September 4, 2008 Share Posted September 4, 2008 yeah, at the top of the script put: error_reporting(E_ALL); make sure you remove it when your site goes live though, you wouldnt want normal users seing any php errors. Link to comment https://forums.phpfreaks.com/topic/122653-page-goes-white/#findComment-633476 Share on other sites More sharing options...
aschk Posted September 4, 2008 Share Posted September 4, 2008 Your apache log will contain the errors (providing error logging in apache is ON for this website). Link to comment https://forums.phpfreaks.com/topic/122653-page-goes-white/#findComment-633478 Share on other sites More sharing options...
axhi Posted September 5, 2008 Author Share Posted September 5, 2008 ok, so i should put the files up somewhere on the server for error debugging. and how do I do that exactly? Aka, what do I have to add to my pages to ensure that error reporting is on for all to see. Thanks again for all your help! Link to comment https://forums.phpfreaks.com/topic/122653-page-goes-white/#findComment-634138 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.