[Mediawiki-l] Magic word 'if' not found when updating ParserFunctions
Lukas Haase
lukashaase at gmx.at
Sat Jun 12 18:55:06 UTC 2010
Hi,
I just upgraded from MediaWiki 1.13 to 1.15.
I also upgraded the extension ParserFunctions which I updated directly
from SVN to the last version:
$ svn info
Path: .
URL:
http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/ParserFunctions
Repository Root: http://svn.wikimedia.org/svnroot/mediawiki
Repository UUID: dd0e9695-b195-4be7-bd10-2dea1a65a6b6
Revision: 53274
Node Kind: directory
Schedule: normal
Last Changed Author: siebrand
Last Changed Rev: 52757
Last Changed Date: 2009-07-04 01:41:53 +0200 (Sat, 04 Jul 2009)
$ svn update
U Expr.php
U ParserFunctions.i18n.magic.php
U ParserFunctions_body.php
U ParserFunctions.i18n.php
U ParserFunctions.php
U funcsParserTests.txt
Updated to revision 67914.
Now I get the following error when I go to my Mediawiki:
Magic word 'if' not found
Backtrace:
#0 /usr/local/share/mediawiki/includes/MagicWord.php(244):
Language->getMagic(Object(MagicWord))
#1 /usr/local/share/mediawiki/includes/MagicWord.php(197):
MagicWord->load('if')
#2 /usr/local/share/mediawiki/includes/parser/Parser.php(4034):
MagicWord::get('if')
#3
/usr/local/share/mediawiki/extensions/ParserFunctions/ParserFunctions.php(72):
Parser->setFunctionHook('if', Array, 2)
#4 [internal function]:
ParserFunctions_HookStub->registerParser(Object(Parser))
#5 /usr/local/share/mediawiki/includes/Hooks.php(117):
call_user_func_array(Array, Array)
#6 /usr/local/share/mediawiki/includes/parser/Parser.php(178):
wfRunHooks('ParserFirstCall...', Array)
#7 /usr/local/share/mediawiki/includes/parser/Parser.php(190):
Parser->firstCallInit()
#8 /usr/local/share/mediawiki/includes/parser/Parser.php(312):
Parser->clearState()
#9 /usr/local/share/mediawiki/includes/Article.php(3557):
Parser->parse('{{Box?|Headline...', Object(Title),
Object(ParserOptions), true, true, 10103)
#10 /usr/local/share/mediawiki/includes/Article.php(979):
Article->outputWikiText('{{Box?|Headline...')
#11 /usr/local/share/mediawiki/includes/Wiki.php(450): Article->view()
#12 /usr/local/share/mediawiki/includes/Wiki.php(63):
MediaWiki->performAction(Object(OutputPage), Object(Article),
Object(Title), Object(User), Object(WebRequest))
#13 /usr/local/share/mediawiki/index.php(116):
MediaWiki->initialize(Object(Title), Object(Article),
Object(OutputPage), Object(User), Object(WebRequest))
#14 {main}
Does anybody know how I could resolve this?
Regards,
Luke
More information about the MediaWiki-l
mailing list