According to the original error message, it never got to that. I went so far as to put up a <wave /> tag with no id, hoping to provoke that error message. It never got there. Always failed on passing the wrong thing to &$parser
On Wed, Oct 7, 2009 at 2:06 PM, Micke Nordin <mickew...@gmail.com> wrote: > > The tic thing is definitely an error on my part though (check under > "Array do's and don'ts"): > > http://se2.php.net/manual/en/language.types.array.php > > You dont think that it is that alone which is causing the problem? > > /Micke > > On 7 Okt, 22:07, Jack Park <jackp...@gmail.com> wrote: >> That may be so. I'm not a php hacker by any means; I just copy what >> seems to work. In two other parser extensions I have, there was no >> '&'. Prior to removing it, I got the error suggested earlier in this >> thread. After removing it, no further repeat of that error, plus >> which, the darn thing started working. Sure, might be something to do >> with windoz php. I dunno. >> >> Jack >> >> On Wed, Oct 7, 2009 at 1:04 PM, Micke Nordin <mickew...@gmail.com> wrote: >> >> > FYI the ampersand makes it so the parser object is passed by reference >> > instead of being copied, so that is a part of PHP and not a typo: >> >http://us3.php.net/references.pass >> >> > That should definitly work and it is what is specified in the >> > MediaWiki docs. >> >> > I don't now what difference putting tics around the arg values make >> > (what kind of tics?), but I'll look in to it. >> >> > /Micke >> >> > On 7 Okt, 19:29, Jack Park <jackp...@gmail.com> wrote: >> >> Good question. >> >> I have two extensions that use the parser thus: >> >> >> function getAppletOutput( $input, $args, $parser ) >> >> >> which contrasts with the wave function: >> >> function waveRender($input, $argv, &$parser) as copied directly from the >> >> file. >> >> >> I just removed the ampersand to >> >> function waveRender($input, $argv, $parser) >> >> and now it's "almost" working. Now I get a flood of errors such as: >> >> >> Use of undefined constant id - assumed 'id' in >> >> C:\\Apache2.2\\htdocs\\mediawiki\\extensions\\GoogleWave\\GoogleWave.php >> >> on line 38,... >> >> >> I then went in and found all the arg[] values and put ticks around them. >> >> It's now working. Seems to take a long time to load my wave, and I now >> >> need to play with width, height, etc, but it appears to have been a >> >> few "typos" in GoogleWave.php that prevented it from working. >> >> >> Thanks >> >> Jack >> >> >> On Wed, Oct 7, 2009 at 1:24 AM, Micke Nordin <mickew...@gmail.com> wrote: >> >> >> > I suspect there is something wrong with you MediaWiki installation and/ >> >> > or your PHP installation as parameter 3 to waveRender is a reference >> >> > to the parser object, that should be sent by the parser hook (by >> >> > MediaWiki, that is). I have no idea as to why this doesn't work >> >> > though... It is not surprising that you get no error message, because >> >> > the problem is that the functions of the extension doesn't get called >> >> > by the parser properly. Does other extensions with parser hooks work >> >> > properly? Try to install any one of these extensions and see if you >> >> > get the same error: >> >> >> >http://www.mediawiki.org/wiki/Category:ParserFirstCallInit_extensions >> >> >> > /Micke >> >> ><snip> > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Wave API" group. To post to this group, send email to google-wave-api@googlegroups.com To unsubscribe from this group, send email to google-wave-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-wave-api?hl=en -~----------~----~----~----~------~----~------~--~---