[pmwiki-users] Urgent: $DefaultPage stopped working ??

Kathryn Andersen kat_lists at katspace.homelinux.org
Fri May 18 23:27:24 CDT 2007


On Fri, May 18, 2007 at 03:45:42PM -1000, Sivakatirswami wrote:
> Patrick R. Michaud wrote:
> > On Fri, May 18, 2007 at 09:58:27PM +1000, Kathryn Andersen wrote:
> >> Hmmm. How early in your local/config.php file do you have $DefaultPage
> >> defined?  I gather it needs to be pretty early.
> > 
> > The farmconfig.php (or something that it loads) may be
> > calling ResolvePageName() to determine a pagename
> > before $DefaultPage has been set.  
 
> Interesting: Here is the opening of my farmconfig.php file
> 
> <?php
> 
> $FarmPubDirUrl = 'http://wiki.hindu.org/pmwiki/pub';
> 
> ## global passwords here snipped ###
> 
> $EnablePageListProtect = 0;
> 
> include_once("$FarmD/cookbook/cluster.php");
Ah.

Cluster calls ResolvePageName() as part of its initialization.

> include_once("$FarmD/cookbook/wsplus.php");
> include_once("$FarmD/cookbook/zap.php");
> 
> $DefaultPasswords['forms'] = 'nopass';
> 
> $Skin= 'fixflow';
> 
> $WikiDir = new PageStore('wiki.d/{$Group}/{$FullName}');
> 
> etc...

I'm not sure how to solve this problem -- it's the usual chicken-and-egg
problem with ResolvePageName that seems to happen quite a lot.

Kathryn Andersen
-- 
 _--_|\     | Kathryn Andersen	<http://www.katspace.com>
/      \    | 
\_.--.*/    | GenFicCrit mailing list <http://www.katspace.com/gen_fic_crit/>
      v     | 
------------| Melbourne -> Victoria -> Australia -> Southern Hemisphere
Maranatha!  |	-> Earth -> Sol -> Milky Way Galaxy -> Universe



More information about the pmwiki-users mailing list