[Pmwiki-users] more questions on WikiCalendar

John Rankin john.rankin
Wed Oct 29 13:13:31 CST 2003

On Thursday, 30 October 2003 3:46 AM, Paul Lewis <paull at usca.edu> wrote:

I have 2 more questions about WikCalendar.

I got the WikiCalendar with publish support working fine. Looks great!

And then for some dumb reason I made a change to local.php ( I removed 
the '#' on the enable WikiTrails setting.).
Now the WikiCalendar won't work. Instead I get an error message that says:

"*Fatal error*: Cannot redeclare handlepublish() in 
*/var/www/html/wiki/local/print-publish.php* on line *63"

To resolve the err I then quickly changed the setting back in local.php 
to make the error go away, BUT the err msg. didn't go away.

So now I'm stuck an err msg and no calendar. :(

I don't understand the error message, but print-publish.php relies on
trails to be enabled, because it uses the trail link pattern to decode
the pages being published. So check to see that trails are working (for 
example by looking at a DocumentationIndex page). This is just a guess,
but are you sure you have correctly re-enabled the trail feature??

However, I would have expected print-publish to just stop working, not
die with an error message. So I'm afraid I'm guessing.


Second question relates to the WikiCalendar and the  Webmenu. I want the 
Calendar to appear with my webmenu but it doesn't.
I made the change in local.php to declare my menu as the default menu 
for all Groups on the whole site,
but it doesn't appear to be working in any other group except the group 
it was originally created for.

What am I doing wrong?

This is how I configure webmenu and by default it loads Main.WebMenu
if it exists. It loads after pgcust.php, so $group is set to the current

$SideWidth = 130;
$WebMenu   = "WebMenu";
$DefaultWebMenu = "$DefaultGroup.$WebMenu";

if (PageExists("$group.$WebMenu") || PageExists($DefaultWebMenu)) {

    $TextStartFmt = "
        <table width='\$BodyWidth' cellpadding='0' cellspacing='0' border='0'>
        <tr><td id='webmenu' valign='top' width='\$SideWidth'>";

    $TextSplitFmt = "</td><td id='wikitext' valign='top'>";

    $TextEndFmt = "</td></tr></table>";

    $HandleBrowseFmt = array (




        "wiki:\$Group.$WebMenu $DefaultWebMenu",








Hope this helps

More information about the pmwiki-users mailing list