Page 1 of 1

a interesting prob

Posted: Wed Feb 16, 2005 11:15 am
by matthiasone
I added a required_once() call and all the pages are blank. Why is this?

Posted: Wed Feb 16, 2005 11:33 am
by feyd
set error_reporting to E_ALL, check your error logs. I'd bet the file doesn't exist, or you misspelled the function name (as you did here.)

Posted: Wed Feb 16, 2005 11:46 am
by matthiasone
here is the calling code

Code: Select all

<?
require_once('/usr/web/domains/lufkinsection-rr/www/functions/db_fns.php');
require_once('/usr/web/domains/lufkinsection-rr/www/functions/cal_fns.php');
require_once('output_fns2.php');
require_once('calender_fns.php');
require_once('staff_fns2.php');
require_once('contact_fns.php');
require_once('resources_fns.php');
require_once('tree_fns.php');
require_once('outpost_fns2.php');
?>

Posted: Wed Feb 16, 2005 11:49 am
by feyd
did you turn error_reporting on and to E_ALL? Display errors on as well? What did the error logs say?

Posted: Wed Feb 16, 2005 12:13 pm
by Maugrim_The_Reaper
Your pages will be blank if:

1. A require does not find the specified file

and

2. If error reporting is disabled, or not set to report warnings.

Usually a failed require would display a fatal error...
Could you also confirm that one of your required files actually outputs something?