Page MenuHomePhabricator

PHP Warning: Invalid argument supplied for foreach() in FormatMetadata
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error

MediaWiki version: 1.35.0-wmf.39

message
PHP Warning: Invalid argument supplied for foreach()

Impact

Notes

Details

Request ID
36b8c432-5101-4a43-a876-d43488549abb
Request URL
https://commons.wikimedia.org/w/api.php?inprop=protection&action=query&generator=categorymembers&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata%7Carchivename&format=json&continue=&prop=info%7Cimageinfo&meta=userinfo&uiprop=blockinfo%7Chasmsg&gcmlimit=500&gcmtitle=Category%3AFlickr+review+needed
Stack Trace
exception.trace
#0 /srv/mediawiki/php-1.35.0-wmf.39/includes/media/FormatMetadata.php(1485): MWExceptionHandler::handleError(integer, string, string, integer, array)
#1 /srv/mediawiki/php-1.35.0-wmf.39/includes/media/ExifBitmapHandler.php(71): FormatMetadata->collapseContactInfo(string)
#2 /srv/mediawiki/php-1.35.0-wmf.39/includes/filerepo/file/File.php(741): ExifBitmapHandler->convertMetadataVersion(array, integer)
#3 /srv/mediawiki/php-1.35.0-wmf.39/includes/api/ApiQueryImageInfo.php(559): File->convertMetadataVersion(array, string)
#4 /srv/mediawiki/php-1.35.0-wmf.39/includes/api/ApiQueryImageInfo.php(184): ApiQueryImageInfo::getInfo(LocalFile, array, ApiResult, NULL, array)
#5 /srv/mediawiki/php-1.35.0-wmf.39/includes/api/ApiQuery.php(263): ApiQueryImageInfo->execute()
#6 /srv/mediawiki/php-1.35.0-wmf.39/includes/api/ApiMain.php(1585): ApiQuery->execute()
#7 /srv/mediawiki/php-1.35.0-wmf.39/includes/api/ApiMain.php(525): ApiMain->executeAction()
#8 /srv/mediawiki/php-1.35.0-wmf.39/includes/api/ApiMain.php(496): ApiMain->executeActionWithErrorHandling()
#9 /srv/mediawiki/php-1.35.0-wmf.39/api.php(89): ApiMain->execute()
#10 /srv/mediawiki/php-1.35.0-wmf.39/api.php(44): wfApiMain()
#11 /srv/mediawiki/w/api.php(3): require(string)
#12 {main}

Event Timeline

mmodell created this task.Jul 8 2020, 6:41 PM
Restricted Application added a project: Commons. · View Herald TranscriptJul 8 2020, 6:41 PM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 610362 had a related patch set uploaded (by Ammarpad; owner: Ammarpad):
[mediawiki/core@master] Typehint FormatMetadata::collapseContactInfO()

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

Ammarpad claimed this task.Jul 8 2020, 8:19 PM
Umherirrender closed this task as Resolved.Jul 14 2020, 8:38 PM
Umherirrender triaged this task as Medium priority.

Change 610362 merged by jenkins-bot:
[mediawiki/core@master] Typehint FormatMetadata::collapseContactInfO()

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