Page MenuHomePhabricator

PHP Deprecated: Use of Wikimedia\Rdbms\DBConnRef::fetchObject was deprecated in MediaWiki 1.37. [Called from SpecialRandomPage::selectRandomPageFromDB]
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
normalized_message
[{reqId}] {exception_url}   PHP Deprecated: Use of Wikimedia\Rdbms\DBConnRef::fetchObject was deprecated in MediaWiki 1.37. [Called from SpecialRandomPage::selectRandomPageFromDB]
exception.trace
from /srv/mediawiki/php-1.38.0-wmf.18/includes/specials/SpecialRandomPage.php(191)
#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(229): wfDeprecated(string, string)
#6 /srv/mediawiki/php-1.38.0-wmf.18/includes/specials/SpecialRandomPage.php(191): Wikimedia\Rdbms\DBConnRef->fetchObject(Wikimedia\Rdbms\MysqliResultWrapper)
#7 /srv/mediawiki/php-1.38.0-wmf.18/includes/specials/SpecialRandomPage.php(133): SpecialRandomPage->selectRandomPageFromDB(string, string)
#8 /srv/mediawiki/php-1.38.0-wmf.18/includes/specials/SpecialRandomPage.php(82): SpecialRandomPage->getRandomTitle()
#9 /srv/mediawiki/php-1.38.0-wmf.18/includes/specialpage/SpecialPage.php(671): SpecialRandomPage->execute(NULL)
#10 /srv/mediawiki/php-1.38.0-wmf.18/includes/specialpage/SpecialPageFactory.php(1378): SpecialPage->run(NULL)
#11 /srv/mediawiki/php-1.38.0-wmf.18/includes/MediaWiki.php(314): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, RequestContext)
#12 /srv/mediawiki/php-1.38.0-wmf.18/includes/MediaWiki.php(903): MediaWiki->performRequest()
#13 /srv/mediawiki/php-1.38.0-wmf.18/includes/MediaWiki.php(563): MediaWiki->main()
#14 /srv/mediawiki/php-1.38.0-wmf.18/index.php(53): MediaWiki->run()
#15 /srv/mediawiki/php-1.38.0-wmf.18/index.php(46): wfIndexMain()
#16 /srv/mediawiki/w/index.php(3): require(string)
#17 {main}
Impact

It's a warning. Low

Notes

Deprecation warnings to be added as UBN for following week's train to reduce logspam

Event Timeline

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

[mediawiki/core@master] Replace remaining usages of IDatabase::fetchObject()

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

Change 755050 merged by jenkins-bot:

[mediawiki/core@master] Replace remaining usages of IDatabase::fetchObject()

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

Change 755667 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Zabe):

[mediawiki/core@wmf/1.38.0-wmf.18] Replace remaining usages of IDatabase::fetchObject()

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

Change 755667 merged by jenkins-bot:

[mediawiki/core@wmf/1.38.0-wmf.18] Replace remaining usages of IDatabase::fetchObject()

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

Mentioned in SAL (#wikimedia-operations) [2022-01-20T13:00:00Z] <lucaswerkmeister-wmde@deploy1002> Synchronized php-1.38.0-wmf.18/includes/: Backport: [[gerrit:755667|Replace remaining usages of IDatabase::fetchObject() (T299471)]] (1/2) (duration: 00m 56s)

Mentioned in SAL (#wikimedia-operations) [2022-01-20T13:01:13Z] <lucaswerkmeister-wmde@deploy1002> Synchronized php-1.38.0-wmf.18/maintenance/: Backport: [[gerrit:755667|Replace remaining usages of IDatabase::fetchObject() (T299471)]] (2/2) (duration: 00m 50s)

Zabe claimed this task.