Page MenuHomePhabricator

Call to undefined method MagicWord::get()
Closed, ResolvedPublic

Description

Upgraded an existing MW installation (with working SemanticDrilldown) to

  • MW 1.35.1
  • PHP 7.4.3
  • MariaDB 10.3
  • SMW 3.2.2
  • SD 2.1

Now I get

Original exception: [bf46939db1434bd5133781e0] /w/Main_Page Error from line 402 of /path/to/wiki/extensions/SemanticDrilldown/includes/SD_Utils.php: Call to undefined method MagicWord::get()
Backtrace:
#0 /path/to/wiki/includes/HookContainer/HookContainer.php(321): SDUtils::handleShowAndHide()
#1 /path/to/wiki/includes/HookContainer/HookContainer.php(132): MediaWiki\HookContainer\HookContainer->callLegacyHook()
#2 /path/to/wiki/includes/HookContainer/HookRunner.php(2923): MediaWiki\HookContainer\HookContainer->run()
#3 /path/to/wiki/includes/parser/Parser.php(1680): MediaWiki\HookContainer\HookRunner->onParserBeforeTidy()
#4 /path/to/wiki/includes/parser/Parser.php(654): Parser->internalParseHalfParsed()
#5 /path/to/wiki/includes/content/WikitextContent.php(374): Parser->parse()
#6 /path/to/wiki/includes/content/AbstractContent.php(590): WikitextContent->fillParserOutput()
#7 /path/to/wiki/includes/Revision/RenderedRevision.php(263): AbstractContent->getParserOutput()
#8 /path/to/wiki/includes/Revision/RenderedRevision.php(235): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached()
#9 /path/to/wiki/includes/Revision/RevisionRenderer.php(215): MediaWiki\Revision\RenderedRevision->getSlotParserOutput()
#10 /path/to/wiki/includes/Revision/RevisionRenderer.php(152): MediaWiki\Revision\RevisionRenderer->combineSlotOutput()
#11 [internal function]: MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}()
#12 /path/to/wiki/includes/Revision/RenderedRevision.php(197): call_user_func()
#13 /path/to/wiki/includes/poolcounter/PoolWorkArticleView.php(216): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput()
#14 /path/to/wiki/includes/poolcounter/PoolCounterWork.php(162): PoolWorkArticleView->doWork()
#15 /path/to/wiki/includes/page/Article.php(810): PoolCounterWork->execute()
#16 /path/to/wiki/includes/actions/ViewAction.php(74): Article->view()
#17 /path/to/wiki/includes/MediaWiki.php(527): ViewAction->show()
#18 /path/to/wiki/includes/MediaWiki.php(313): MediaWiki->performAction()
#19 /path/to/wiki/includes/MediaWiki.php(940): MediaWiki->performRequest()
#20 /path/to/wiki/includes/MediaWiki.php(543): MediaWiki->main()
#21 /path/to/wiki/index.php(53): MediaWiki->run()
#22 /path/to/wiki/index.php(46): wfIndexMain()
#23 {main}

This error show twice on the page and nothing else. So total breaking error.

Event Timeline

I suspect that a change like this one could potentially fix the issue.

Kghbln closed this task as Resolved.EditedMar 15 2021, 7:19 PM
Kghbln updated the task description. (Show Details)

This was fixed with this commit but not yet released. One needs to use either REL1_35 or master for MediaWiki 1.35.x to avoid this issue.