[pmwiki-users] Some comments about (:logbook:) v 0.3
Daniel Friedmann
list at linuxing.de
Sun Mar 12 17:55:51 CST 2006
Hello EuGeNe
> Following "private" discussions with a couple of PmWiki users interested
> in (:logbook:) I have pursued the dev. a bit further and am happy (not
> sure if I should be pleased yet) to announce the release of v 0.3.
Some comments on your updated cookbook:
1.
My logbook on http://spampal.de/pmwiki/pmwiki.php/Main/WikiSandbox has
some problems with the correct date of the say. Today is actually
Sunday, 13 March 2006. Logbook, however, tells me that 13 March is a
Saturday which is wrong. FYI, I translated the days into German but how
can I also translate the month? Well, I'm using a US Windows XP so maybe
that's why the date is shown in English.
[-]Mar 06[+]
Mo Di Mi Do Fr Sa So
01 02 03 04 05 06 07
08 09 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31
2.
There seems to be a big problems with the session_start variable. When I
use (:logbook:) near the end of Main.SideBar I get these 4 lines of
error message twice on top of Main.SideBar:
Warning: session_start(): Cannot send session cookie - headers already
sent by (output started at
/var/www/spampal.de/htdocs/pmwiki/pmwiki.php:878) in
/var/www/spampal.de/htdocs/pmwiki/cookbook/logbook.php on line 60
Line 878 of pmwiki.php:
function PrintFmt($pagename,$fmt) {
global $HTTPHeaders,$FmtV;
if (is_array($fmt))
{ foreach($fmt as $f) PrintFmt($pagename,$f); return; }
if ($fmt == 'headers:') {
foreach($HTTPHeaders as $h) (@$sent++) ? @header($h) : header($h);
return;
}
$x = FmtPageName($fmt,$pagename);
if (strncmp($fmt, 'function:', 9) == 0 &&
preg_match('/^function:(\S+)\s*(.*)$/s', $x, $match) &&
function_exists($match[1]))
{ $match[1]($pagename,$match[2]); return; }
if (strncmp($fmt, 'file:', 5) == 0 &&
preg_match("/^file:(.+)/s",$x,$match)) {
$filelist = preg_split('/[\\s]+/',$match[1],-1,PREG_SPLIT_NO_EMPTY);
foreach($filelist as $f) {
if (file_exists($f)) { include($f); return; }
}
return;
}
if (preg_match("/^markup:(.*)$/",$x,$match))
{ print MarkupToHTML($pagename,$match[1]); return; }
if (preg_match('/^wiki:(.+)$/', $x, $match))
{ PrintWikiPage($pagename, $match[1], 'read'); return; }
if (preg_match('/^page:(.+)$/', $x, $match))
{ PrintWikiPage($pagename, $match[1], ''); return; }
echo $x; <=== line 878 (pmwiki-2.1.beta38)
}
Line 60 of logbook.php:
session_start();
After the edit of Main.SideBar looks fine but when I reload the main
page a few times session_start gets wrong data and the error is shown.
The logbook on WikiSandbox, however, doesn't cause this error message.
3.
Could you highlight the actual date so that everyone knows where to
click on that day?
I've never ever used a blog so far and really don't know if I will
continue using logbook but I'd love to get answers and maybe a bugfix
for my problems with it. Thank you!
--
Regards
Daniel
More information about the pmwiki-users
mailing list