Jump to content

PHP: blank page


getmizanur

Recommended Posts

elloo,

 

i have php script that works fine on a dev server however on staging server it is a blank page. i have set 'error_reporting(E_ALL) ' and ini_set('dsiplay_errors', 1) however only information i get is some notices and no fatal errors.

 

i'm aware that php stops executing if there is a fatal error (and appears as blank screen), is there some sort of directive in 'php.ini' which stop php from executing when there are notices. 

 

thanks in advanced

Link to comment
https://forums.phpfreaks.com/topic/220391-php-blank-page/
Share on other sites

Notices CAN stop a page from working. If a notice occurs before a header() or session_start() or set_cookie() or other function that wants to send a header to the browser, then that function call will fail. Of course you should get a notice or warning (I don't know which). So, look for a message about headers already sent.

 

If you post your code and error messages, we may be able spot some potential problems, but my crystal ball is a bit foggy today.

 

Link to comment
https://forums.phpfreaks.com/topic/220391-php-blank-page/#findComment-1141979
Share on other sites

Even if you spelled "display_errors" correctly in your code, ini_set() in a file won't affect PHP if there are parse errors. Which are 99% of the time the causes of blank screens.

You have to change error_reporting and display_errors in your php.ini to be able to see typical parse errors.

Link to comment
https://forums.phpfreaks.com/topic/220391-php-blank-page/#findComment-1141980
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.