Re: PHTML files showing as blank pages

From: Date: Tue, 08 Jan 2008 18:06:02 +0000
Subject: Re: PHTML files showing as blank pages
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-266896@lists.php.net to get a copy of this message
On Jan 8, 2008 12:58 PM, tedd <tedd.sperling@gmail.com> wrote: > At 3:37 PM -0800 1/5/08, Brady Mitchell wrote: > >On Jan 5, 2008, at 639AM, A.smith wrote: > >> I'm having a problem getting .phtml files to display in a web browser. I > >>can successfully display a test.php page as per PHP install instructions but > >>the phtml files show up blank > >>(in firefox or IE). > > > >A blank page often means that there's an error of some kind, but > >error reporting is turned off. > > > >Put the following code in the file that's giving you problems to > >turn on errors, then reload the file in your browser to see what you > >get: > > > >ini_set('display_errors',1); > > > >Brady > > > Yes, but even then you can get a blank page -- it depends upon the > type of error. > > I would start with commenting everything out, and then un-commenting > statements in steps until the error(s) cause a blank page. Fix the > errors and try again. Or make sure your die(); and exit; lines actually display an error prior to executing (or, in the case of die(), at the point of execution). And be sure to set <? error_reporting("E_ALL"); ?> to see notices, et cetera, to be sure there aren't undefined variables, et cetera. -- Daniel P. Brown [Phone Numbers Go Here!] [They're Hidden From View!] If at first you don't succeed, stick to what you know best so that you can make enough money to pay someone else to do it for you.

« previous php.general (#266896) next »