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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-wave-api?hl=en -~----------~----~----~----~------~----~------~--~---
