Last modified: 2014-05-20 08:36:30 UTC
Lots of Parser.php fatal errors. Fatal error: Call to a member function merge() on a non-object in Parser.php on line 1965. Fatal error: Call to a member function getTargetLanguage() on a non-object in Parser.php on line 948.
Another one: Fatal error: Call to a member function registerWatcher() on a non-object in Parser.php on line 295.
(In reply to TeleComNasSprVen from comment #0) > Lots of Parser.php fatal errors. Where? In which exact MediaWiki version? How to reproduce?
(In reply to Andre Klapper from comment #2) > (In reply to TeleComNasSprVen from comment #0) > > Lots of Parser.php fatal errors. > > Where? In which exact MediaWiki version? How to reproduce? Version 1.23 I think I tried to do $parser = new Parser(); $replacedtext = $parser->replaceInternalLinks( $wikitext );
Which *exact* version? Is that 1.23-rc1 or 1.23-rc2? > I think I tried to do Where? Complete steps to reproduce would be helpful. :)
(In reply to TeleComNasSprVen from comment #3) > I think I tried to do > $parser = new Parser(); > $replacedtext = $parser->replaceInternalLinks( $wikitext ); You're not supposed to do that. Yeah, the Parser sucks, we know. :) You initialized a Parser object with null $mOptions field (that should be a ParserOptions instance) and call funny methods on it, so you get fatals. That's expected, if unfortunate, behavior. replaceInternalLinks() should really be a private method, it expects to only be called from within parse() (which sets $mOptions).