I have browsed several other questions, and tried various solutions related to error reporting, including
ini_set('display_errors',true);
error_reporting(E_ALL);
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.
For example, I have a this method:
public function getSubdomain() {
$this->data->query('SELECT * FROM users WHERE email=:email');
$this->data->bind(':email', $this->email);
$this->data->execute();
if($this->data->rowCount() == 0)
throw new Exception('There is no account associated with this e-mail address.');
$curr = $this->data->single();
return $curr['subdomain'];
}
^^ That will execute just fine and I can get it to print from the OOP class using die($curr['subdomain']);
, but if I try displaying it on a page using PHP, nothing. No errors, so logs, no source code, absolutely nothing.
I am using MultiViews with Apache, and my DB queries are done using a custom PDO class.
I have run
# php -l new.php
directly on the server and it reports
No syntax errors detected in new.php
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.
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.)?