[pmwiki-users] Problems causedf by recent PmWiki updates

marc gmane at auxbuss.com
Mon Mar 12 11:03:06 CDT 2007


Patrick R. Michaud said...
> On Mon, Mar 12, 2007 at 03:13:55PM -0000, marc wrote:
> > marc said...
> > > I'm having to spend a fair bit of time debugging problems caused by 
> > > recent changes to PmWiki. I went from beta 31 to beta 34, and this is 
> > > where the problems occurred. I can run everything up to the save before 
> > > the beta 34 update - taken literally before updating - and all is okay, 
> > > thereafter I've hit quite a few snags that have taken quite a lot of 
> > > time to resolve.
> > > 
> > > One set of issues was due to the changes in stdmarkup.php. This caused 
> > > quite a few local markup functions to fail. Most of these I have 
> > > resolved by changing the Markup() "when" parameter to 'directives'. 
> > > However, I don't have a full regression testing suite, so I'm not yet 
> > > sure whether I've cleared all the problems.
> 
> What were the Markup() functions previously using for the $when parameter?

Mostly 'inline'.

> > > However, one problem has me stumped. My login process uses authuser with 
> > > authentication against a database and has worked fine until beta 34. 
> > > However, now I can login everywhere except the farm's home page. This 
> > > happens on all farms in a wiki.
> >
> > Sorry, I meant to mention that authuser.php is the cause of the problem. 
> > A fully up to date installation will work fine by reverting to 
> > authuser.php from beta 31.
> 
> The authuser.php script used to call the ResolvePageName() function --
> this was removed in beta32.  So, it may simply be that you need to
> add
> 
>    $pagename = ResolvePageName($pagename);
> 
> prior to calling authuser.php .  However, I don't entirely understand
> why this would be needed here -- something else must be going on to
> cause a problem here.

Adding back the ResolvePageName() in or before authuser.php fixes the 
problem.

As I mentioned, removing the 'get rid of main' code removes the problem; 
so it seems that it is associated with that code. I call this before 
authuser, but placing it after made no difference.

'get rid of main' does:

  $pagename = MakePageName('Main.HomePage', $pagename);

So, presumably,

  $pagename = ResolvePageName(MakePageName('Main.HomePage', $pagename));

should fix the problem, which it seems to.

-- 
Cheers,
Marc




More information about the pmwiki-users mailing list