[pmwiki-users] Urgent: $DefaultPage stopped working ??
Hans
design5 at softflow.co.uk
Sat May 19 01:24:17 CDT 2007
Saturday, May 19, 2007, 5:27:24 AM, Kathryn Andersen wrote:
>> 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.
Perhaps simply generally do not load any scripts from farmconfig.php,
but load them instead from a wiki's config.php, and after $DefaultName
and other customisations are set, i.e. put your include_once lines
near the bottom of the config.php files.
If there was a reason why all these cookbook scripts need to be
loaded from farmconfig.php I apologise, as I read only these last
posts.
~Hans
More information about the pmwiki-users
mailing list