[pmwiki-users] Re: Wiki Calendar

Manish Ranade manish at thunderdata.com
Thu Feb 10 16:16:35 CST 2005


I tried [:upper:][0-9] in PageTitlePattern, it didnt work but it worked when I
changed 

$PageTitlePattern="[[:upper:]][[:alnum:]]*(?:-[[:alnum:]]+)*";

to 

$PageTitlePattern="[[:upper:][:alnum:]][[:alnum:]]*(?:-[[:alnum:]]+)*";


Thanks John

-Manish

John Rankin <john.rankin at affinity.co.nz> wrote:

> On Friday, 11 February 2005 8:25 AM, Manish Ranade <manish at thunderdata.com>
> wrote:
> >Hi,
> >
> >I am trying to install the WikiCalendar for one of our websites. 
> >URL: http://www.familyoutreach-cc.org/wiki/CalendarFOR/Calendar
> >
> >When I click on the date it shows me the error saying
> >
> >PmWiki can't process your request
> >
> >'CalendarFOR/20050201' is not a valid PmWiki page name
> >
> >We are sorry for any inconvenience.
> 
> The problem appears to be that PmWiki is rejecting page titles
> that start with a number, even though according to action=diag
> PageTitlePattern is [A-Z0-9]...
> 
> I verified this by trying the following addresses:
> http://www.familyoutreach-cc.org/wiki/CalendarFOR/A20050212?action=diag
> http://www.familyoutreach-cc.org/wiki/CalendarFOR/20050212?action=diag
> 
> The first worked, the second didn't. I can't see why not, I'm afraid.
> 
> Can you try an experiment? Patch the pmwiki.php code that defines
> $PageTitlePattern so the first piece reads [[:upper:][0-9]] instead
> of [[:upper:]]
> 
> If that makes the problem go away, we'll know the page name test is
> happening before the wikilog script is redefining the title pattern.
> 
> If it doesn't fix it, I will be even more confused. As far as I can see,
> the error message comes just before pmwiki.php issues its action command,
> after all local variables have been set.
> 
> John
> >
> >I have single Pmwiki(0.6) installation for all our websites, in other
words,
> >local directory holds the config files for all the websites and skins
> >directory holds the template and style sheets for all the
> >websites. 
> >
> >I have wikilog directory under local, and publish directory under skins
> >directory. 
> >
> >As per John Rankin's suggestion I added 
> >
> >$PageNamePattern =
> >"($GroupNamePattern)([.\\/])($PageTitlePattern)";
> >
> >after $PageTitlePattern in wikilog.php and I added $EnableDiag = 1 in the
> >config file for that website, but that didnt work
> >
> >Am I missing something?
> >
> >Thanks
> >Manish
> >
> >
> >----------------------------------------------------------
> >Manish Ranade
> >
> >Thunder Data Systems
> >Phone: 361.883.6464
> >
> >
> >
> 

----------------------------------------------------------
Manish Ranade
Web Programmer

Thunder Data Systems
Phone: 361.883.6464





More information about the pmwiki-users mailing list