Last modified: 2014-06-17 21:25:33 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T68254, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 66254 - Use of deprecated wfMsg* functions (deprecated since MediaWiki 1.21)
Use of deprecated wfMsg* functions (deprecated since MediaWiki 1.21)
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
SemanticDrilldown (Other open bugs)
master
All All
: Unprioritized normal (vote)
: ---
Assigned To: Yaron Koren
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-06 10:59 UTC by Joel K. Pettersson
Modified: 2014-06-17 21:25 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Joel K. Pettersson 2014-06-06 10:59:32 UTC
Enabling the debug toolbar, I get the following output on "Browse data" with the latest Semantic Drilldown version, running on MediaWiki 1.24alpha.

-------------------------------------------------------------------------------

Console:

Deprecated	Use of wfMsg was deprecated in MediaWiki 1.21.
Backtrace:

    SD_BrowseData.php line 53 calls wfMsg()
    SpecialPage.php line 379 calls SDBrowseData->execute()
    SpecialPageFactory.php line 510 calls SpecialPage->run()
    Wiki.php line 288 calls SpecialPageFactory::executePath()
    Wiki.php line 603 calls MediaWiki->performRequest()
    Wiki.php line 452 calls MediaWiki->main()
    index.php line 46 calls MediaWiki->run()

	SDBrowseData::execute
Deprecated	Use of wfMsgReal was deprecated in MediaWiki 1.21.
Backtrace:

    GlobalFunctions.php line 1508 calls wfMsgReal()
    SD_BrowseData.php line 53 calls wfMsg()
    SpecialPage.php line 379 calls SDBrowseData->execute()
    SpecialPageFactory.php line 510 calls SpecialPage->run()
    Wiki.php line 288 calls SpecialPageFactory::executePath()
    Wiki.php line 603 calls MediaWiki->performRequest()
    Wiki.php line 452 calls MediaWiki->main()
    index.php line 46 calls MediaWiki->run()

	wfMsg
Deprecated	Use of wfMsgGetKey was deprecated in MediaWiki 1.21.
Backtrace:

    GlobalFunctions.php line 1606 calls wfMsgGetKey()
    GlobalFunctions.php line 1508 calls wfMsgReal()
    SD_BrowseData.php line 53 calls wfMsg()
    SpecialPage.php line 379 calls SDBrowseData->execute()
    SpecialPageFactory.php line 510 calls SpecialPage->run()
    Wiki.php line 288 calls SpecialPageFactory::executePath()
    Wiki.php line 603 calls MediaWiki->performRequest()
    Wiki.php line 452 calls MediaWiki->main()
    index.php line 46 calls MediaWiki->run()

	wfMsgReal
Deprecated	Use of wfMsg was deprecated in MediaWiki 1.21.
Backtrace:

    SD_BrowseData.php line 1018 calls wfMsg()
    QueryPage.php line 547 calls SDBrowseDataPage->getPageHeader()
    SD_BrowseData.php line 122 calls QueryPage->execute()
    SpecialPage.php line 379 calls SDBrowseData->execute()
    SpecialPageFactory.php line 510 calls SpecialPage->run()
    Wiki.php line 288 calls SpecialPageFactory::executePath()
    Wiki.php line 603 calls MediaWiki->performRequest()
    Wiki.php line 452 calls MediaWiki->main()
    index.php line 46 calls MediaWiki->run()

	SDBrowseDataPage::getPageHeader
Deprecated	Use of wfMsg was deprecated in MediaWiki 1.21.
Backtrace:

    SD_BrowseData.php line 399 calls wfMsg()
    SD_BrowseData.php line 1023 calls SDBrowseDataPage->printCategoriesList()
    QueryPage.php line 547 calls SDBrowseDataPage->getPageHeader()
    SD_BrowseData.php line 122 calls QueryPage->execute()
    SpecialPage.php line 379 calls SDBrowseData->execute()
    SpecialPageFactory.php line 510 calls SpecialPage->run()
    Wiki.php line 288 calls SpecialPageFactory::executePath()
    Wiki.php line 603 calls MediaWiki->performRequest()
    Wiki.php line 452 calls MediaWiki->main()
    index.php line 46 calls MediaWiki->run()

	SDBrowseDataPage::printCategoriesList

-------------------------------------------------------------------------------

Debug log:

SpecialPage::getContext called and $mContext is null. Return RequestContext::getMain(); for sanity
SpecialPage::getContext called and $mContext is null. Return RequestContext::getMain(); for sanity
SpecialPage::getContext called and $mContext is null. Return RequestContext::getMain(); for sanity
SpecialPage::getContext called and $mContext is null. Return RequestContext::getMain(); for sanity
SpecialPage::getContext called and $mContext is null. Return RequestContext::getMain(); for sanity
LoadBalancer::getConnection: using server localhost for group BrowseData
DatabaseBase::query: Writes done: CREATE TEMPORARY TABLE semantic_drilldown_values ( id INT NOT NULL )
SpecialPage::getContext called and $mContext is null. Return RequestContext::getMain(); for sanity
SpecialPage::getContext called and $mContext is null. Return RequestContext::getMain(); for sanity
SpecialPage::getContext called and $mContext is null. Return RequestContext::getMain(); for sanity
Comment 1 Joel K. Pettersson 2014-06-17 17:15:24 UTC
In hindsight, the previous message probably wasn't so useful. I'm pretty new to  the MW and MW extensions code, and it shows. So, sorry about that.

I just sent a commit for review that replaces the deprecated wfMsg* calls inside Semantic Drilldown:
https://gerrit.wikimedia.org/r/#/c/140159/
Comment 2 Joel K. Pettersson 2014-06-17 21:25:33 UTC
The merge removed the warnings.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links