Page MenuHomePhabricator

PHP Deprecated: Passing extra fields (quality) to LocalFile::loadFromRow was deprecated in MediaWiki 1.37. Property assignment will be removed in a later version. [Called from OldLocalFile::loadFromRow]
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
normalized_message
[{reqId}] {exception_url}   PHP Deprecated: Passing extra fields (quality) to LocalFile::loadFromRow was deprecated in MediaWiki 1.37. Property assignment will be removed in a later version. [Called from OldLocalFile::loadFromRow]
exception.trace
from /srv/mediawiki/php-1.37.0-wmf.9/includes/filerepo/file/OldLocalFile.php(202)
#0 [internal function]: MWExceptionHandler::handleError(integer, string, string, string, array)
#1 /srv/mediawiki/php-1.37.0-wmf.9/includes/debug/MWDebug.php(376): trigger_error(string, integer)
#2 /srv/mediawiki/php-1.37.0-wmf.9/includes/debug/MWDebug.php(352): MWDebug::sendRawDeprecated(string, boolean, string)
#3 /srv/mediawiki/php-1.37.0-wmf.9/includes/GlobalFunctions.php(1030): MWDebug::deprecatedMsg(string, string, string, integer)
#4 /srv/mediawiki/php-1.37.0-wmf.9/includes/filerepo/file/LocalFile.php(668): wfDeprecatedMsg(string, string)
#5 /srv/mediawiki/php-1.37.0-wmf.9/includes/filerepo/file/OldLocalFile.php(202): LocalFile->loadFromRow(stdClass, string)
#6 /srv/mediawiki/php-1.37.0-wmf.9/includes/filerepo/file/OldLocalFile.php(83): OldLocalFile->loadFromRow(stdClass, string)
#7 /srv/mediawiki/php-1.37.0-wmf.9/includes/filerepo/LocalRepo.php(85): OldLocalFile::newFromRow(stdClass, LocalRepo)
#8 /srv/mediawiki/php-1.37.0-wmf.9/includes/filerepo/file/LocalFile.php(1266): LocalRepo->newFileFromRow(stdClass)
#9 /srv/mediawiki/php-1.37.0-wmf.9/includes/api/ApiQueryImageInfo.php(203): LocalFile->getHistory(integer, NULL, NULL)
#10 /srv/mediawiki/php-1.37.0-wmf.9/includes/api/ApiQuery.php(333): ApiQueryImageInfo->execute()
#11 /srv/mediawiki/php-1.37.0-wmf.9/includes/api/ApiMain.php(1714): ApiQuery->execute()
#12 /srv/mediawiki/php-1.37.0-wmf.9/includes/api/ApiMain.php(684): ApiMain->executeAction()
#13 /srv/mediawiki/php-1.37.0-wmf.9/includes/api/ApiMain.php(655): ApiMain->executeActionWithErrorHandling()
#14 /srv/mediawiki/php-1.37.0-wmf.9/api.php(90): ApiMain->execute()
#15 /srv/mediawiki/php-1.37.0-wmf.9/api.php(45): wfApiMain()
#16 /srv/mediawiki/w/api.php(3): require(string)
#17 {main}
Impact

~900 occurrences in the 15 minute period following deployment to group2

Notes

Details

Request URL
https://de.wikipedia.org/w/api.php?action=query&format=*&prop=*&titles=*&iiprop=*&iiextmetadatafilter=*&iiextmetadatalanguage=*&uselang=*&smaxage=*&maxage=*

Event Timeline

The problem is the one and only FlaggedRevs. It changes the fields of querying oldimage and adds fr_quality, in turn the class tries to apply it. I'm not sure why such hook even exists, it's undocumented and its usage in FlaggedRevs doesn't give any benefits either. Looking further.

Change 699381 had a related patch set uploaded (by Ladsgroup; author: Ladsgroup):

[mediawiki/extensions/FlaggedRevs@master] Drop LocalFile::getHistory hook handler

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

Change 699383 had a related patch set uploaded (by Ladsgroup; author: Ladsgroup):

[mediawiki/core@master] Deprecate LocalFile::getHistory

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

Change 699381 merged by jenkins-bot:

[mediawiki/extensions/FlaggedRevs@master] Drop LocalFile::getHistory hook handler

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

Change 699383 merged by jenkins-bot:

[mediawiki/core@master] Deprecate LocalFile::getHistory hook

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

Change 700340 had a related patch set uploaded (by Ladsgroup; author: Ladsgroup):

[mediawiki/extensions/FlaggedRevs@wmf/1.37.0-wmf.9] Drop LocalFile::getHistory hook handler

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

Change 700340 merged by jenkins-bot:

[mediawiki/extensions/FlaggedRevs@wmf/1.37.0-wmf.9] Drop LocalFile::getHistory hook handler

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

Mentioned in SAL (#wikimedia-operations) [2021-06-21T09:55:32Z] <ladsgroup@deploy1002> Synchronized php-1.37.0-wmf.9/extensions/FlaggedRevs: Backport: [[gerrit:700340|Drop LocalFile::getHistory hook handler (T284777 T277883)]] (duration: 00m 58s)