[pmwiki-users] processing order

marc gmane at auxbuss.com
Mon Feb 18 05:45:28 CST 2008

Peter & Melodye Bowers said...
> I have a MarkupExpression I am putting together which reads a given page,
> checks for a certain value, and if it doesn't find it then it writes the
> value to the end of the page.
> I am finding inconsistent results with it where often it somehow writes the
> value *before* the read, even though there's no possibility that I can see
> that that could happen based on my code.  And the strangest thing is that I
> have all this code heavily debugged both with MessageFmt[]/(:messages:) as
> well as using straight echo statements.  The WikiShEcho() function clearly
> is *NOT* processing according to both types of debugging statements and yet
> the value is getting written to the page before the WikiShGrep tries to read
> it.
> Is there any kind of situation in which directives (like markup expressions)
> get processed twice in a single browse of a page?  Or (more surprising) that
> echo statements could somehow be suppressed during an earlier invocation of
> the MX?

Have you followed the instructions from:


The problem might also stem from the format of the content you are 
returning to PmWiki - whether it is markup, a directive, HTML, etc. - 
where Keep($result) might be necessary.

Hope that gives you some ideas to work with.


More information about the pmwiki-users mailing list