Blank Screen Error Php
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings
Black Screen Error
and policies of this site About Us Learn more about Stack blue screen error Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs
White Screen Error
Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; green screen error it only takes a minute: Sign up PHP's white screen of death up vote 55 down vote favorite 29 Now that I'm starting to get back into PHP, I'm starting to remember why I gave it up in the first place. The most annoying thing on my plate at the moment is what I've come to term "PHP's white screen black screen error in windows 7 of death". When PHP gets a fatal error due to syntax or whatever, it seems like it will always die without actually sending anything to the browser. I've added the following to my .htaccess, and it seems to work most of the time, but it doesn't work in these cases. php_value display_errors 1 php_value display_startup_errors 1 php_value error_reporting 2147483647 # E_ALL Am I missing something? At the moment I feel like I need to hit refresh every few lines of code I write, lest I make a mistake and have to search through many pages trying to track down that one little mistake I made... EDIT: For example, given the two lines of code below: $foo = array(':language' => $languageId; $foo = array(':language' => $languageId); The first will exhibit the white screen of death (ie, nothing at all printed to the browser), while the second will execute happily. php error-handling error-reporting wsod share|improve this question edited Dec 10 '12 at 5:23 hakre 133k26215386 asked Sep 25 '09 at 3:36 Matthew Scharley 61.2k39149196 Also see stackoverflow.com/q/8450
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About
Black Screen Error Loading Operating System
Us Learn more about Stack Overflow the company Business Learn more about hiring black screen error repair tool developers or posting ads with us Drupal Answers Questions Tags Users Badges Unanswered Ask Question _ Drupal Answers is a
Black Screen Error Windows 8
question and answer site for Drupal developers and administrators. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers http://stackoverflow.com/questions/1475297/phps-white-screen-of-death are voted up and rise to the top How to see the error messages when I get the white screen of death? up vote 20 down vote favorite 6 How can I see the error messages when the site I am working on gets a white screen? wsod share|improve this question edited Oct 2 '13 at 14:12 kiamlaluno♦ 66.4k897192 asked Jul 21 '11 at 18:36 sokratis 1,17132338 http://drupal.stackexchange.com/questions/7560/how-to-see-the-error-messages-when-i-get-the-white-screen-of-death add a comment| 5 Answers 5 active oldest votes up vote 26 down vote accepted Put this at the bottom of settings.php: error_reporting(-1); // Have PHP complain about absolutely everything $conf['error_level'] = 2; // Show all messages on your screen, 2 = ERROR_REPORTING_DISPLAY_ALL. ini_set('display_errors', TRUE); // These lines just give you content on WSOD pages. ini_set('display_startup_errors', TRUE); share|improve this answer answered Jul 21 '11 at 18:39 Mike 84211026 This is great for development sites though I prefer /var/log/apache2/error.log for live sites. This works though. :) –Citricguy Feb 3 '12 at 5:25 add a comment| up vote 16 down vote The White Screen of Death (Completely Blank Page) resource on drupal.org will step you through the steps to see the error message as well as common problems that cause them. "Invisible" Errors If error reporting is turned off, you could be getting a fatal error but not seeing it. On a production site, it is common to have error reporting turned off. If that is the case and PHP has hit an unrecoverable error, neither an error nor content will be displayed, therefore you end up with a completely blank page. What you can do abou
2 Getting started with PHP 3 The 12 Days of PHP 4 PHP Q&A 5 Learn PHP in 8 Weeks About.com About Tech PHP/MySQL Troubleshooting My page has loaded all white, what did I http://php.about.com/od/troubleshooting/f/white_page_php.htm do wrong? Nenad Aksic/E+/Getty Images By Angela Bradley PHP/MySQL Expert Share Pin Tweet Submit Stumble Post Share By Angela Bradley Question: My page has loaded all white, what did I do wrong?You've uploaded your PHP page, and went to view it. Instead of seeing what you expected you see nothing. A blank screen (often white), no data, no error, no title, nothing. You view the source.... it's blank. What happened?Answer: screen error The most common reason for this problem is that you're missing a character somewhere. By simply leaving out a ' or } or ; somewhere, your PHP won't work. You don't get an error, you will simply get a blank screen.There is nothing more frustrating than looking through thousands of lines of code for the one missing ; that is messing the whole thing up. But what can be done? black screen error PHP Error Reporting. You can learn a lot about what is going wrong from the error messages PHP gives you. If you aren't currently getting error messages, this tutorial shows you how to turn on PHP error reporting. Test your code often. If you're testing each piece as you add it, then at least if you encounter this problem you know generally where to look for it... in whatever you just added or changed. continue reading below our video The Most Popular Camera Apps Try a color-coded editor. A lot of PHP editors (many even free) color code your PHP as you enter it. This helps you pick out lines that don't end, because you'll have large chunks of code in the same color. It's non-intrusive for those of us who prefer to code with no bells-and-whistles, but helpful when troubleshooting. Comment it out. One way to isolate the problem is to comment out large chunks of your code. Start at the top, and comment out all but the first couple lines, then echo () a test message right above the comment. If it echos fine, then the problem is below. Move the start of your comment and your test echo downwards as you work through your document, un