title: php white screen of death
body: <p>I have browsed several other questions, and tried various solutions related to error reporting, including </p>
  
  <pre><code>ini_set('display_errors',true);
  error_reporting(E_ALL);
  </code></pre>
  
  <p>but I am still stuck with the white screen of death. This seems to happen only on pages when I use my own object oriented classes. However, the OOP scripts execute successfully, but I am unable to get the HTML to show. Occasionally, I can get it to catch an Exception but it is intermittent.</p>
  
  <p>For example, I have a this method:</p>
  
  <pre><code>public function getSubdomain() {
          $this-&gt;data-&gt;query('SELECT * FROM users WHERE email=:email');
          $this-&gt;data-&gt;bind(':email', $this-&gt;email);
          $this-&gt;data-&gt;execute();
          if($this-&gt;data-&gt;rowCount() == 0)
              throw new Exception('There is no account associated with this e-mail address.');
          $curr = $this-&gt;data-&gt;single();
  
          return $curr['subdomain'];
      }
  </code></pre>
  
  <p>^^ That will execute just fine and I can get it to print from the OOP class using <code>die($curr['subdomain']);</code>, but if I try displaying it on a page using PHP, nothing. No errors, so logs, no source code, absolutely nothing.</p>
  
  <p>I am using MultiViews with Apache, and my DB queries are done using a custom PDO class.</p>
  
  <p>I have run</p>
  
  <pre><code># php -l new.php
  </code></pre>
  
  <p>directly on the server and  it reports</p>
  
  <pre><code>No syntax errors detected in new.php
  </code></pre>
  
  <p>When I run the exact same setup on WAMP locally, it works without a problem, but once I migrated over to my CentOS/Apache/PHP machine, all hell broke loose. MySQL is on a seperate server, but has no problems.</p>
  
  <p>I can provide much more specific code (both my own and conf files from the server) as needed, I just want to avoid anything arbitrary due to the nature of the question. Any suggestions on where to go from here (ie, different methods of error reporting, etc.)? </p>