Jump to content

Blank screen of death


minware

Recommended Posts

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
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.