minware Posted November 15, 2010 Share Posted November 15, 2010 I have quite a lengthy php code that is bringing up the blank screen of death. I've put error_reporting(E_ALL) at the top but nothing. I can't see obvious errors while looking through the code and can't print it here as it's very long and uses a few include files. How else can I see what errors are occuring? Quote Link to comment https://forums.phpfreaks.com/topic/218713-blank-screen-of-death/ Share on other sites More sharing options...
revraz Posted November 15, 2010 Share Posted November 15, 2010 ini_set('display_errors',1); Quote Link to comment https://forums.phpfreaks.com/topic/218713-blank-screen-of-death/#findComment-1134349 Share on other sites More sharing options...
minware Posted November 15, 2010 Author Share Posted November 15, 2010 Thanks but that didn't bring up anything either I'm afraid. I have no access to php.ini and tried htaccess file but that didn't work Quote Link to comment https://forums.phpfreaks.com/topic/218713-blank-screen-of-death/#findComment-1134351 Share on other sites More sharing options...
rwwd Posted November 15, 2010 Share Posted November 15, 2010 There may not be errors occurring, there may be an unhandled if/else clause some where that you are invoking, but not handling, this is why having an if/else handled correctly will pay huge dividends in the long run whilst you develop your code. If only we had step into/step over eh! Rw Quote Link to comment https://forums.phpfreaks.com/topic/218713-blank-screen-of-death/#findComment-1134352 Share on other sites More sharing options...
minware Posted November 15, 2010 Author Share Posted November 15, 2010 There may not be errors occurring, there may be an unhandled if/else clause some where that you are invoking, but not handling, this is why having an if/else handled correctly will pay huge dividends in the long run whilst you develop your code. If only we had step into/step over eh! Rw Could you clarify what unhandling means, I've checked through all the if else brackets and loops and they are all in the right place and start andf end properly Quote Link to comment https://forums.phpfreaks.com/topic/218713-blank-screen-of-death/#findComment-1134355 Share on other sites More sharing options...
revraz Posted November 15, 2010 Share Posted November 15, 2010 I would say start cutting your code up into sections, echo some spots out and see how far you get. Quote Link to comment https://forums.phpfreaks.com/topic/218713-blank-screen-of-death/#findComment-1134361 Share on other sites More sharing options...
minware Posted November 15, 2010 Author Share Posted November 15, 2010 I would say start cutting your code up into sections, echo some spots out and see how far you get. That worked thanks! I copy and pasted sections of code into another file one after the other and tested it after each addition and found near the very bottom, instead of having 2 forward slashes // infront of a comment I had one /, so it thought it was code! Very pleased it's fixed but annoyed there wasn't an easier way to know that! Cheers, Steve Quote Link to comment https://forums.phpfreaks.com/topic/218713-blank-screen-of-death/#findComment-1134368 Share on other sites More sharing options...
revraz Posted November 15, 2010 Share Posted November 15, 2010 A good editor would show you that Quote Link to comment https://forums.phpfreaks.com/topic/218713-blank-screen-of-death/#findComment-1134370 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.