<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Verdana; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Verdana; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Verdana; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">hi Peter</span></span></span></div><div>thanks</div><div><br></div><div>i actually just figured this part out (sort of) - i saw that in Fox, Hans made his UpdatePage() function work by limiting which functions it calls, by throwing the wanted function(s) into a 4th slot '$fnlist' - UpdatePage($pagename, $old, $new, $fnlist)</div><div>i found that throwing in something like array('SaveAttributes') seemed to prevent the errors.</div><div><br></div><div>however, once that proved errorless, i was saddened to find that UpdatePage &amp; SaveAttributes are not the problem, so my quest continues (see the next post : )</div><div><br></div><div>thanks for the help!</div><div>adam</div><div><br></div><div><br></div><div><div>On 16 Jun 2009, at 3:40 PM, Peter Bowers wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div class="gmail_quote">On Tue, Jun 16, 2009 at 4:29 PM, adam overton <span dir="ltr">&lt;<a href="mailto:a@plus1plus1plus.org" target="_blank">a@plus1plus1plus.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <div><div><span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Verdana; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Verdana; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Verdana; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Verdana; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Verdana; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div> ...</div></span></span></span></span></span></div></div></blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div><span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Verdana; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Verdana; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Verdana; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Verdana; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Verdana; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div> the workaround that i thought could work but currently gives me errors goes something like this - instead of having fox/foxedit redirect=1 (i.e. to the same page), have it redirect to the same page with ?action=updatePage where the appropriate functions are called. here's my code in config.php:</div> <div><br></div><div><div>if ($action=="updatePage") {</div><div><span style="white-space: pre;">        </span>$thispage = ReadPage($pagename);</div><div><br></div><div><span style="white-space: pre;">        </span>//WritePage($pagename, $thispage);</div> <div><span style="white-space: pre;">        </span>UpdatePage($pagename, $thispage, $thispage);</div><div><span style="white-space: pre;"></span></div></div></span></span></span></span></span></div></div></blockquote><div><br> I can't speak to the rest of it, but I know I had a bit of a go-round with UpdatePage() being called in config.php (back in March, but it looks like a lot of the discussion was off-list).  My conclusion was that UpdatePage() requires certain variables to be set before it can be called and those initializations occur after config.php is called.  I "peeled a couple layers" trying to manually do the initializations in config.php before calling UpdatePage() and then determined I needed to pursue an alternate solution...<br> <br>Quoting from <a href="http://www.pmwiki.org/wiki/PmWiki/Functions">http://www.pmwiki.org/wiki/PmWiki/Functions</a>:<br><br><code>UpdatePage()</code> cannot be called directly from config.php because there are necessary initializations which occur later in pmwiki.php. It is not enough to just load stdconfig.php. If you want to use <code>UpdatePage()</code> you will need to do it within a custom markup, a custom markup expression, or a custom action.<br><br>-Peter <br></div></div></blockquote></div><br></body></html>