Page MenuHomePhabricator

PHP Warning: reset() expects parameter 1 to be array, null given
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
labels.normalized_message
[{reqId}] {exception_url}   PHP Warning: reset() expects parameter 1 to be array, null given
error.stack_trace
from /srv/mediawiki/php-1.43.0-wmf.19/extensions/SearchVue/src/Rest/GetSearchVueMedia.php(112)
#0 [internal function]: MWExceptionHandler::handleError(int, string, string, int, array)
#1 /srv/mediawiki/php-1.43.0-wmf.19/extensions/SearchVue/src/Rest/GetSearchVueMedia.php(112): reset(null)
#2 /srv/mediawiki/php-1.43.0-wmf.19/extensions/SearchVue/src/Rest/GetSearchVueMedia.php(210): SearchVue\Rest\GetSearchVueMedia->SearchVue\Rest\{closure}(array)
#3 /srv/mediawiki/php-1.43.0-wmf.19/extensions/SearchVue/src/Rest/GetSearchVueMedia.php(124): SearchVue\Rest\GetSearchVueMedia->transformResponses(array, array)
#4 /srv/mediawiki/php-1.43.0-wmf.19/includes/Rest/SimpleHandler.php(40): SearchVue\Rest\GetSearchVueMedia->run(string)
#5 /srv/mediawiki/php-1.43.0-wmf.19/includes/Rest/Module/Module.php(380): MediaWiki\Rest\SimpleHandler->execute()
#6 /srv/mediawiki/php-1.43.0-wmf.19/includes/Rest/Module/Module.php(269): MediaWiki\Rest\Module\Module->executeHandler(SearchVue\Rest\GetSearchVueMedia)
#7 /srv/mediawiki/php-1.43.0-wmf.19/includes/Rest/Router.php(477): MediaWiki\Rest\Module\Module->execute(string, MediaWiki\Rest\RequestFromGlobals)
#8 /srv/mediawiki/php-1.43.0-wmf.19/includes/Rest/Router.php(446): MediaWiki\Rest\Router->doExecute(string, MediaWiki\Rest\RequestFromGlobals)
#9 /srv/mediawiki/php-1.43.0-wmf.19/includes/Rest/EntryPoint.php(212): MediaWiki\Rest\Router->execute(MediaWiki\Rest\RequestFromGlobals)
#10 /srv/mediawiki/php-1.43.0-wmf.19/includes/MediaWikiEntryPoint.php(200): MediaWiki\Rest\EntryPoint->execute()
#11 /srv/mediawiki/php-1.43.0-wmf.19/rest.php(39): MediaWiki\MediaWikiEntryPoint->run()
#12 /srv/mediawiki/w/rest.php(3): require(string)
#13 {main}
Impact

Low; ~400 occurrences since June 2024 across 8 wikis.

Notes

First occurrence on Jun 4, 2024 @ 00:52:39.837.

Details

MediaWiki Version
1.43.0-wmf.7
Request URL
https://id.wikipedia.org/w/rest.php/searchvue/v0/media/Q12510646

Event Timeline

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

[mediawiki/extensions/SearchVue@master] Fix warning about missing entities

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

Change #1078409 merged by jenkins-bot:

[mediawiki/extensions/SearchVue@master] Fix warning about missing entities

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

Lucas_Werkmeister_WMDE claimed this task.

AFAICT the warning isn’t easily reproducible just by visiting the same URL again (I guess it happens when some other service sends an invalid response for whatever reason), so let’s just close this and hope for the best. Feel free to reopen if needed.