Page MenuHomePhabricator

"PHP Notice: Array to string conversion" from CirrusSearch RequestLogger.php
Closed, ResolvedPublic

Description

Error

MediaWiki version: 1.35.0-wmf.1

message
PHP Notice: Array to string conversion

Notes

This appears to be a reoccurrence from Jan 2019: T226568: PHP error from CirrusSearch/RequestLogger: "Array to string conversion"

Details

Request ID
XaJYwQpAIDoAALBkPeIAAABR
Request URL
/w/api.php?action=opensearch&search=…&limit=10&namespace=0&format=json&redirects=resolve
Stack Trace
exception.trace
#0 [internal function]: MWExceptionHandler::handleError(integer, string, string, integer, array)
#1 /extensions/CirrusSearch/includes/RequestLogger.php(338): implode(string, array)
#2 /extensions/CirrusSearch/includes/RequestLogger.php(93): CirrusSearch\RequestLogger->buildCirrusSearchRequestEvent()
#3 /extensions/CirrusSearch/includes/RequestLogger.php(123): CirrusSearch\RequestLogger->reportLogs()
#4 /includes/deferred/MWCallableUpdate.php(38): CirrusSearch\RequestLogger->CirrusSearch\{closure}()
#5 /includes/deferred/DeferredUpdates.php(383): MWCallableUpdate->doUpdate()
#6 /includes/deferred/DeferredUpdates.php(281): DeferredUpdates::attemptUpdate(MWCallableUpdate, Wikimedia\Rdbms\LBFactoryMulti)
#7 /includes/deferred/DeferredUpdates.php(226): DeferredUpdates::run(MWCallableUpdate, Wikimedia\Rdbms\LBFactoryMulti, Monolog\Logger, BufferingStatsdDataFactory, string)
#8 /includes/deferred/DeferredUpdates.php(149): DeferredUpdates::handleUpdateQueue(array, string, integer)
#9 /includes/MediaWiki.php(1053): DeferredUpdates::doUpdates(string)
#10 /includes/MediaWiki.php(833): MediaWiki->restInPeace()
#11 /includes/MediaWiki.php(842): MediaWiki->{closure}()
#12 /api.php(118): MediaWiki->doPostOutputShutdown()
#13 /srv/mediawiki/w/api.php(3): require(string)
#14 {main}
Related Gerrit Patches:
mediawiki/extensions/CirrusSearch : masterEnsure logged request parameters are strings

Event Timeline

Krinkle created this task.Oct 12 2019, 10:56 PM
Restricted Application added a project: Discovery-Search. · View Herald TranscriptOct 12 2019, 10:56 PM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 543959 had a related patch set uploaded (by EBernhardson; owner: EBernhardson):
[mediawiki/extensions/CirrusSearch@master] Ensure logged request parameters are strings

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

Change 543959 merged by jenkins-bot:
[mediawiki/extensions/CirrusSearch@master] Ensure logged request parameters are strings

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

Gehel closed this task as Resolved.Oct 29 2019, 5:51 PM