Jump to content

Topic on Extension talk:Contribution Scores/Archive 2

Summary by Fokebox

Resolved

Fokebox (talkcontribs)

Updated my wiki to 1.42.1 and there is a mistake at Scores Page:

Deprecated: Use of wfGetDB was deprecated in MediaWiki 1.39. [Called from ContributionScores::getContributionScoreData in /data/www/mywiki.ru/mediawiki-1.42.1/extensions/ContributionScores/src/ContributionScores.php at line 93] in /var/www/u1406315/data/www/mywiki.ru/mediawiki-1.42.1/includes/debug/MWDebug.php on line 379
Fokebox (talkcontribs)

As use of wfGetDB was deprecated changed the line 93 from:

$dbr = wfGetDB( DB_REPLICA );

to:

$dbr = MediaWikiServices::getInstance()->getDBLoadBalancer()->getConnection( DB_REPLICA );

The problem has been resolved! Dear developers, please consider that in future updates of the extension.