Topic on Extension talk:LinkTarget

Call to undefined function wfProfileIn() after 1.35.2 upgrade

6
Summary by S0ring

Upgrade LinkTarget from v.0.1 to v.0.2

S0ring (talkcontribs)

The following error ocurrs after upgrade MW 1.15.1 to 1.15.2 (LinkTarget v0.2.0), is there any way to fix it?


Error from line 44 of /var/www/html/extensions/LinkTarget/LinkTarget.php: Call to undefined function wfProfileIn()

Backtrace:

#0 /var/www/html/includes/HookContainer/HookContainer.php(321): {closure}(OutputPage, ParserOutput)

#1 /var/www/html/includes/HookContainer/HookContainer.php(132): MediaWiki\HookContainer\HookContainer->callLegacyHook(string, array, array, array)

#2 /var/www/html/includes/HookContainer/HookRunner.php(2762): MediaWiki\HookContainer\HookContainer->run(string, array, array)

#3 /var/www/html/includes/OutputPage.php(1968): MediaWiki\HookContainer\HookRunner->onOutputPageParserOutput(OutputPage, ParserOutput)

#4 /var/www/html/includes/OutputPage.php(2016): OutputPage->addParserOutputMetadata(ParserOutput)

#5 /var/www/html/includes/page/Article.php(843): OutputPage->addParserOutput(ParserOutput, array)

#6 /var/www/html/includes/actions/ViewAction.php(74): Article->view()

#7 /var/www/html/includes/MediaWiki.php(527): ViewAction->show()

#8 /var/www/html/includes/MediaWiki.php(313): MediaWiki->performAction(Article, Title)

#9 /var/www/html/includes/MediaWiki.php(940): MediaWiki->performRequest()

#10 /var/www/html/includes/MediaWiki.php(543): MediaWiki->main()

#11 /var/www/html/index.php(53): MediaWiki->run()

#12 /var/www/html/index.php(46): wfIndexMain()

#13 {main}

Tosfos (talkcontribs)

Do you mean 1.35.2? 1.15 isn't supported any more.

S0ring (talkcontribs)

yes, sorry, the error ocurrs after upgrade MW 1.35.1 to 1.35.2

X-Savitar (talkcontribs)

From what I see, the file LinkTarget.php doesn't exist in the latest (v0.2) repo. Maybe upgrade LinkTarget extension itself?

What I see in LinkTarget repo is the file LinkTargetHooks.php which doesn't call any function wfProfileIn().

Can you upgrade LinkTarget and let us know @S0ring?

S0ring (talkcontribs)

Yes, no error occurs in MW 1.35.2 with LinkTarget 0.2

Thank you!

X-Savitar (talkcontribs)

@S0ring, good. I'm glad the issue has been resolved now.

Can we resolve this topic @S0ring? Let me know and I will help you do it. :)