On 10/09/2007, Jim Hu jimhu@tamu.edu wrote:
You know, I thought this was more straightforward at first, but looking at my own code I use the global parser.
$wgParser seems to be created in Setup.php
$wgParser = new StubObject( 'wgParser', 'Parser' );
So, it seems like it shouldn't be a "non-object" when you call it. Try an is_object on it and print the result just to be sure??
I checked is_object($wgParser) and it comes back ok. But it's in parser.php where the error is thrown by the call $this->mOptions->getUseTeX(). And I tested it with plain text and it still throws the same error: $wgParser->recursiveTagParse("hello world");