From: Dan F. <dfr...@cs...> - 2004-09-28 19:37:49
|
Start dropping breadcrumbs (e.g., "print" statements, or printing to a file). Start in index.php. At the end of it, it includes main.php. Thus, probably look into which functions are called from main.php, and drop breadcrumbs there too. Find a spot where the breadcrumbs are being printed, and another (later) spot where they aren't. Bring those two spots together until you see the exact line where execution ends. Print out some variables near that spot. Dan P.S. Here are a couple functions I dropped into my stdlib.php to help this process: function simpleTrace($bt) { //print_r($bt); $s = ''; foreach ($bt as $i => $elem) { if (!array_key_exists('file', $elem)) { continue; } $s .= " " . $elem['file'] . ':' . $elem['line'] . ':' . $elem['function'] . "\n"; } return $s; } function toDebugFile($s) { $fp = fopen("/tmp/phpwiki-dfrankow.txt", "a"); fwrite($fp, $s . "\n"); fclose($fp); } Then if I want a complete stack trace to a file, I do: toDebugFile(simpleTrace(debug_backtrace())) Daniel Kropveld wrote: > This is the second time I post this question. > I hope this time someone will help me. > > My main question is: How do I get some error report so that at least I > can trace where where things go wrong?? > > DEBUG=1 doesn't seem to work here > > -------- Original Message -------- > Subject: [Phpwiki-talk] fresh installed 1.3.10 gives blank page > Date: Wed, 01 Sep 2004 22:21:57 +0200 > From: Daniel Kropveld <D.K...@xs...> > To: php...@li... > > Hello, > I just installed phpwiki 1.3.10 on fedora core 2, but I get nothing but > a blank page consisting of a mere <html><body></body></html> > > On my RedHat 9.0 i am running a 1.3.6 without problems! > > This is the output of 'php -v' > PHP 4.3.8 (cgi) (built: Jul 16 2004 09:23:33) > > My httpd: > Apache/2.0.50 (Fedora) > > and mysql: > php-mysql-4.3.8-2.1 > mysql-server-3.23.58-9 > > Error logs report no problems > > In MySQL I see a set of 15 tables, but they are all empty. > > Would anyone give me any hint where to look? > > |