Page 1 of 1

How do you force error messages, if a page is blank?

Posted: Tue Feb 03, 2015 9:58 am
by simonmlewis
We are trying a new host, but when we use /index.php, which should produce something, it comes up blank.

when we view it on the current live site, it works. When I view it locally, it works. On their, we get a white page with no errors. Even the error log is clear.

It's on cPanel. I best not mentioning the host's name, unless asked.

Have you come across this before?

Code: Select all

<?php
 session_start();
include "dbconn.php"; 
echo "test";
?>
when I put in the session code, that is what kills it.

Re: How do you force error messages, if a page is blank?

Posted: Tue Feb 03, 2015 10:31 am
by Celauran
Try adding this

Code: Select all

ini_set('display_errors', '1');
error_reporting(-1);