Page MenuHomePhabricator

TemplateData.hooks.php:71: MWException: Invalid callback in hooks for ParserFirstCallInit
Closed, DeclinedPublic

Description

Doing what in attachment 16052 minus Wikibase, I get 1404 times MWException: Invalid callback in hooks for ParserFirstCallInit of which 1120 times relating to /srv/vagrant/mediawiki/extensions/TemplateData/TemplateData.hooks.php:71 like for instance

vagrant@nemobis:/vagrant/mediawiki/tests/phpunit$ php5 phpunit.php includes

[...]

  1. ParserTests::testParserTest with data set #1104 ('HTML tag with necessary entities in attributes', '<span title="&amp;amp;">foo</span>', '<p><span title="&amp;amp;">foo</span>

</p>', '', '')
MWException: Invalid callback in hooks for ParserFirstCallInit

/srv/vagrant/mediawiki/includes/Hooks.php:182
/srv/vagrant/mediawiki/includes/GlobalFunctions.php:4031
/srv/vagrant/mediawiki/includes/parser/Parser.php:279
/srv/vagrant/mediawiki/includes/parser/Parser.php:291
/srv/vagrant/mediawiki/includes/parser/Parser.php:4966
/srv/vagrant/mediawiki/includes/parser/Parser.php:4720
/srv/vagrant/mediawiki/includes/StubObject.php:105
/srv/vagrant/mediawiki/includes/StubObject.php:125
/srv/vagrant/mediawiki/includes/content/WikitextContent.php:145
/srv/vagrant/mediawiki/includes/content/WikitextContent.php:145
/srv/vagrant/mediawiki/includes/page/WikiPage.php:2140
/srv/vagrant/mediawiki/extensions/TemplateData/TemplateData.hooks.php:71
/srv/vagrant/mediawiki/includes/Hooks.php:206
/srv/vagrant/mediawiki/includes/GlobalFunctions.php:4031
/srv/vagrant/mediawiki/includes/page/WikiPage.php:1780
/srv/vagrant/mediawiki/tests/parser/parserTest.inc:1493
/srv/vagrant/mediawiki/tests/phpunit/includes/parser/NewParserTest.php:934
/srv/vagrant/mediawiki/tests/phpunit/includes/parser/NewParserTest.php:452
/srv/vagrant/mediawiki/tests/phpunit/includes/parser/NewParserTest.php:683
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42


Version: master
Severity: normal

Details

Reference
bz68699

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:42 AM
bzimport added a project: TemplateData.
bzimport set Reference to bz68699.

Is Wikibase interfering with TemplateData's hook somehow? Marking as WFM as I couldn't reproduce in 15 minutes of fiddling, and there have been no other reports of this as an issue.

(In reply to James Forrester from comment #1)

Is Wikibase interfering with TemplateData's hook somehow?

Maybe; did you have both installed?