Page MenuHomePhabricator

PHP Deprecated: Use of Wikimedia\Rdbms\DBConnRef::numRows was deprecated in MediaWiki 1.37. [Called from FlaggedRevsStats::getEditReviewTimes]
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
normalized_message
[{reqId}] {exception_url}   PHP Deprecated: Use of Wikimedia\Rdbms\DBConnRef::numRows was deprecated in MediaWiki 1.37. [Called from FlaggedRevsStats::getEditReviewTimes]
exception.trace
from /srv/mediawiki/php-1.38.0-wmf.18/extensions/FlaggedRevs/backend/FlaggedRevsStats.php(425)
#0 [internal function]: MWExceptionHandler::handleError(integer, string, string, string, array)
#1 /srv/mediawiki/php-1.38.0-wmf.18/includes/debug/MWDebug.php(377): trigger_error(string, integer)
#2 /srv/mediawiki/php-1.38.0-wmf.18/includes/debug/MWDebug.php(353): MWDebug::sendRawDeprecated(string, boolean, string)
#3 /srv/mediawiki/php-1.38.0-wmf.18/includes/debug/MWDebug.php(232): MWDebug::deprecatedMsg(string, string, string, integer)
#4 /srv/mediawiki/php-1.38.0-wmf.18/includes/GlobalFunctions.php(1005): MWDebug::deprecated(string, string, string, integer)
#5 /srv/mediawiki/php-1.38.0-wmf.18/includes/libs/rdbms/database/DBConnRef.php(249): wfDeprecated(string, string)
#6 /srv/mediawiki/php-1.38.0-wmf.18/extensions/FlaggedRevs/backend/FlaggedRevsStats.php(425): Wikimedia\Rdbms\DBConnRef->numRows(Wikimedia\Rdbms\MysqliResultWrapper)
#7 /srv/mediawiki/php-1.38.0-wmf.18/extensions/FlaggedRevs/backend/FlaggedRevsStats.php(90): FlaggedRevsStats::getEditReviewTimes(MemcachedPeclBagOStuff, string)
#8 /srv/mediawiki/php-1.38.0-wmf.18/extensions/FlaggedRevs/maintenance/updateStats.php(28): FlaggedRevsStats::updateCache()
#9 /srv/mediawiki/php-1.38.0-wmf.18/maintenance/doMaintenance.php(108): UpdateFlaggedRevsStats->execute()
#10 /srv/mediawiki/php-1.38.0-wmf.18/extensions/FlaggedRevs/maintenance/updateStats.php(37): require_once(string)
#11 /srv/mediawiki/multiversion/MWScript.php(116): require_once(string)
#12 {main}
Notes

Event Timeline

Change 755727 had a related patch set uploaded (by Ladsgroup; author: Amir Sarabadani):

[mediawiki/extensions/FlaggedRevs@master] Fix using deprecated function IDatabase::numRows()

https://gerrit.wikimedia.org/r/755727

Ladsgroup moved this task from Triage to In progress on the DBA board.

Change 755736 had a related patch set uploaded (by Ladsgroup; author: Amir Sarabadani):

[mediawiki/extensions/FlaggedRevs@master] Avoid using deprecated function IDatabase::numRows()

https://gerrit.wikimedia.org/r/755736

Change 755727 merged by jenkins-bot:

[mediawiki/extensions/FlaggedRevs@master] Fix using deprecated function IDatabase::numRows()

https://gerrit.wikimedia.org/r/755727

Change 755736 merged by jenkins-bot:

[mediawiki/extensions/FlaggedRevs@master] Avoid using deprecated function IDatabase::numRows()

https://gerrit.wikimedia.org/r/755736

Ladsgroup moved this task from In progress to Done on the DBA board.

There are probably some more deprecation warnings here and there. I took note and will make patches against in the parent ticket, FlaggedRevs is cleaned now.