[pmwiki-users] PIT conflicts with Guestbook (was: PITS does not add a new issue number)

David Sovinski aslan at aslandata.com
Thu Jul 14 16:54:39 CDT 2005


Patrick

Glad you asked.

It looks like there is a second interaction going on.
I have the following in my config.php file
$WikiDir = new PageStore('wiki.d/$Group/$FullName');
If  I comment it out things work the way you indicate. If I uncomment it 
it doesn't work unless I turn off PITS.

Which led me to find a bug in PITS that I'll describe in another email 
but let you know here.
It the above line is left uncommented, PITS only displays Active issues 
in the PITS.PITS document
Suspended issues and Closed issues don't show
(This is true without respect to guestbook)

David Sovinski

Patrick R. Michaud wrote:

>On Thu, Jul 14, 2005 at 04:00:16PM -0500, David Sovinski wrote:
>  
>
>>pm
>>Thank you for looking at this for me/us.
>>
>>I have issued
>>(:$Guestbook:)
>>within the wiki page.
>>And that is what is displayed the "(:Guestbook:)" command instead of 
>>presenting the form.
>>If I comment out PITS then Guestbook works fine
>>    
>>
>
>Hmm, I just tried it on pmwiki.org and it seems to work okay.  See 
>http://www.pmichaud.com/work/pmwiki-2.0.beta47/pmwiki.php?n=Main.WikiSandbox,
>which displays the guestbook entry.  You can also look at
>http://www.pmichaud.com/work/pmwiki-2.0.beta47/pmwiki.php?n=PITS.NewIssue.
>
>Be sure to write (:$Guestbook:) and not (:Guestbook:) in the
>markup.  (Actually, guestbook.php seems to be using a very bizarre
>markup overall, as I would've simply chosen (:guestbook:).)
>
>My local/config.php looks like
>
>    <?php
>      include_once('cookbook/guestbook.php');
>      include_once('cookbook/PITS.php');
>
>so there must be *something* else going on here.  Any thoughts?
>
>Pm
>
>
>  
>
>>Patrick R. Michaud wrote:
>>
>>    
>>
>>>On Wed, Jul 13, 2005 at 11:23:37PM -0500, David Sovinski wrote:
>>>
>>>
>>>      
>>>
>>>>I'm still hoping to get some help to figure out why they conflict.
>>>>...
>>>>"Config One"
>>>>include_once('cookbook/PITS.php');
>>>>include_once('cookbook/guestbook.php');
>>>>PITS will not get a new issue number
>>>>  
>>>>
>>>>        
>>>>
>>>The guestbook.php recipe takes some serious liberties with setting
>>>the value of $pagename -- in particular, it undoes any setting of
>>>$pagename that might've been done by a previous recipe or config.php
>>>setting.  So, guestbook.php needs to be rewritten to not do this;
>>>in the meantime it means it must be loaded before anything else.
>>>
>>>
>>>
>>>      
>>>
>>>>"Config Two"
>>>>include_once('cookbook/guestbook.php');
>>>>include_once('cookbook/PITS.php');
>>>>guestbook does not work but PITS does
>>>>  
>>>>
>>>>        
>>>>
>>>How does the guestbook "not work" -- i.e., what is failing
>>>about the guestbook?
>>>
>>>Pm
>>>
>>>
>>>
>>>
>>>      
>>>
>>    
>>
>
>
>  
>





More information about the pmwiki-users mailing list