[pmwiki-users] question about wiki farms

Patrick R. Michaud pmichaud at pobox.com
Wed Sep 5 11:55:56 CDT 2007


On Tue, Sep 04, 2007 at 10:43:49PM -0700, Maria McKinley wrote:
> > "Object" is not the name of a directory.
> > Php writes "Object" when an object is sent to the output.
> >
> > $WikiDir is an object of the class PageStore
> > $WorkDir is a string
> >
> > Perhaps you interchange these variables in some place. ($WikiDir is
> > used when $WorkDir is expected)
> >
> 
> This makes sense. I am sure I did not assign variables correctly, as
> it was not clear to me from the instructions exactly how to do this. I
> am trying to get pmwiki to look in a different directory
> (/var/www/wikifarm/maria) for everything it would normally find in
> wiki.d/. Could someone show me how to do this properly? This is what I
> currently have that isn't working:
> 
> $WikiDir = new PageStore('/var/www/wikifarm/maria/');
> $WorkDir = new PageStore('/var/www/wikifarm/maria/');
> $WikiLibDirs = array(&$WikiDir);

You want:

    $WikiDir = new PageStore('/var/www/wikifarm/maria/{$FullName}');
    $WorkDir = '/var/www/wikifarm/maria';

No need to explicitly set $WikiLibDirs -- PmWiki will get 
the correct setting automatically.

Pm



More information about the pmwiki-users mailing list