Page MenuHomePhabricator

PHP Deprecated: Use of Wikimedia\Rdbms\DBConnRef::numRows was deprecated in MediaWiki 1.37. [Called from FlaggedRevsHooks::recentContentEditCount]
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 FlaggedRevsHooks::recentContentEditCount]
exception.trace
from /srv/mediawiki/php-1.38.0-wmf.18/extensions/FlaggedRevs/backend/FlaggedRevsHooks.php(1068)
#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/FlaggedRevsHooks.php(1068): Wikimedia\Rdbms\DBConnRef->numRows(Wikimedia\Rdbms\MysqliResultWrapper)
#7 /srv/mediawiki/php-1.38.0-wmf.18/extensions/FlaggedRevs/backend/FlaggedRevsHooks.php(1254): FlaggedRevsHooks::recentContentEditCount(integer, integer, integer)
#8 /srv/mediawiki/php-1.38.0-wmf.18/includes/HookContainer/HookContainer.php(338): FlaggedRevsHooks::checkAutoPromoteCond(integer, array, User, NULL)
#9 /srv/mediawiki/php-1.38.0-wmf.18/includes/HookContainer/HookContainer.php(137): MediaWiki\HookContainer\HookContainer->callLegacyHook(string, array, array, array)
#10 /srv/mediawiki/php-1.38.0-wmf.18/includes/HookContainer/HookRunner.php(886): MediaWiki\HookContainer\HookContainer->run(string, array)
#11 /srv/mediawiki/php-1.38.0-wmf.18/includes/user/UserGroupManager.php(574): MediaWiki\HookContainer\HookRunner->onAutopromoteCondition(integer, array, User, NULL)
#12 /srv/mediawiki/php-1.38.0-wmf.18/includes/user/UserGroupManager.php(511): MediaWiki\User\UserGroupManager->checkCondition(array, User)
#13 /srv/mediawiki/php-1.38.0-wmf.18/includes/user/UserGroupManager.php(480): MediaWiki\User\UserGroupManager->recCheckCondition(array, User)
#14 /srv/mediawiki/php-1.38.0-wmf.18/includes/user/UserGroupManager.php(472): MediaWiki\User\UserGroupManager->recCheckCondition(array, User)
#15 /srv/mediawiki/php-1.38.0-wmf.18/includes/user/UserGroupManager.php(440): MediaWiki\User\UserGroupManager->recCheckCondition(array, User)
#16 /srv/mediawiki/php-1.38.0-wmf.18/includes/user/UserGroupManager.php(613): MediaWiki\User\UserGroupManager->getUserAutopromoteOnceGroups(User, string)
#17 /srv/mediawiki/php-1.38.0-wmf.18/includes/Storage/PageUpdater.php(880): MediaWiki\User\UserGroupManager->addUserToAutopromoteOnceGroups(User, string)
#18 /srv/mediawiki/php-1.38.0-wmf.18/includes/deferred/MWCallableUpdate.php(38): MediaWiki\Storage\PageUpdater->MediaWiki\Storage\{closure}()
#19 /srv/mediawiki/php-1.38.0-wmf.18/includes/deferred/DeferredUpdates.php(529): MWCallableUpdate->doUpdate()
#20 /srv/mediawiki/php-1.38.0-wmf.18/includes/deferred/DeferredUpdates.php(414): DeferredUpdates::attemptUpdate(MWCallableUpdate, Wikimedia\Rdbms\LBFactoryMulti)
#21 /srv/mediawiki/php-1.38.0-wmf.18/includes/deferred/DeferredUpdates.php(227): DeferredUpdates::run(MWCallableUpdate, Wikimedia\Rdbms\LBFactoryMulti, Monolog\Logger, BufferingStatsdDataFactory, string)
#22 /srv/mediawiki/php-1.38.0-wmf.18/includes/deferred/DeferredUpdatesScope.php(267): DeferredUpdates::{closure}(MWCallableUpdate, integer)
#23 /srv/mediawiki/php-1.38.0-wmf.18/includes/deferred/DeferredUpdatesScope.php(196): DeferredUpdatesScope->processStageQueue(integer, integer, Closure)
#24 /srv/mediawiki/php-1.38.0-wmf.18/includes/deferred/DeferredUpdates.php(248): DeferredUpdatesScope->processUpdates(integer, Closure)
#25 /srv/mediawiki/php-1.38.0-wmf.18/includes/MediaWiki.php(1114): DeferredUpdates::doUpdates()
#26 /srv/mediawiki/php-1.38.0-wmf.18/includes/MediaWiki.php(839): MediaWiki->restInPeace()
#27 /srv/mediawiki/php-1.38.0-wmf.18/api.php(125): MediaWiki->doPostOutputShutdown()
#28 /srv/mediawiki/php-1.38.0-wmf.18/api.php(45): wfApiMain()
#29 /srv/mediawiki/w/api.php(3): require(string)
#30 {main}
Impact
Notes

Event Timeline

Change 755815 had a related patch set uploaded (by Zabe; author: Zabe):

[mediawiki/extensions/FlaggedRevs@master] Replace remaining usages of IDatabase::numRows()

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

Change 755815 merged by jenkins-bot:

[mediawiki/extensions/FlaggedRevs@master] Replace remaining usages of IDatabase::numRows()

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

Zabe claimed this task.

Change 756055 had a related patch set uploaded (by Zabe; author: Zabe):

[mediawiki/extensions/FlaggedRevs@master] updateAutoPromote: use correct result

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

Change 756055 merged by jenkins-bot:

[mediawiki/extensions/FlaggedRevs@master] updateAutoPromote: use correct result

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