[Pmwiki-users] Pmwiki error logs?
Knut Alboldt
mailing
Fri Sep 24 06:53:25 CDT 2004
At 01:12 24.09.2004, MC wrote:
>Hi,
>
>Does PMWiki write out error logs anywhere? I'm still troubleshooting
>my uploads prob. and looking for clues.
I've a special webpage to call pmwiki.php in test-mode, where I set the
error-log to a accessable file within my htdocs (maybe a speacial dir,
passwordprotected by .htaccess), so I can browse with my webbrowser. Second
I create this logfile for each single web-request:
You could try something like:
testwiki.php =
<?php
$phplogdir = "path/to/any/accessable/dir/within/your/htdocs";
ini_set("error_log",$phperrorlogdir."/".$_SERVER['HTTP_HOST'].".PHP.".$FarmName.".".time().".log.txt");
ini_set("log_errors","1");
# init PHP-log: collect some system and referer data
error_log("FarmFieldName=".$FarmFieldName);
error_log("REMOTE_ADDR=".$_SERVER["REMOTE_ADDR"]);
require_once("pmwiki.php");
# to get a complete vardump at the end of each wiki-page uncomment
the following:
/***
$DEBUGSTYLE =
'style="background-color:darkgreen;color:yellow;font-size:16px;font-weight:bold;margin-top:1px;margin-bottom:1px;"
width=500%';
echo "<PRE $DEBUGSTYLE >";
echo "<HR/>DUMPING ALL PHP-VARS:\n<HR/>";
echo htmlentities(print_r($GLOBALS,true));
echo '<HR/></PRE>';
***/
error_log("DEBUG: DUMPVARS(): ".print_r($GLOBALS,true));
?>
Knut
More information about the pmwiki-users
mailing list