Page MenuHomePhabricator

PHP Notice: Array to string conversion (from EventBus.php)
Open, Needs TriagePublicPRODUCTION ERROR

Description

Error

MediaWiki version: 1.36.0-wmf.6

message
PHP Notice: Array to string conversion

Impact

Notes

Details

Request ID
ed6ade03-42fe-4736-a070-6523a0935755
Request URL
https://ce.wikipedia.org/w/index.php?title=xxxxxxxxxxxxx&action=submit
Stack Trace
exception.trace
#0 [internal function]: MWExceptionHandler::handleError(integer, string, string, integer, array)
#1 /srv/mediawiki/php-1.36.0-wmf.6/includes/libs/http/MultiHttpClient.php(359): curl_setopt(resource, integer, array)
#2 /srv/mediawiki/php-1.36.0-wmf.6/includes/libs/http/MultiHttpClient.php(232): MultiHttpClient->getCurlHandle(array, array)
#3 /srv/mediawiki/php-1.36.0-wmf.6/includes/libs/http/MultiHttpClient.php(189): MultiHttpClient->runMultiCurl(array, array)
#4 /srv/mediawiki/php-1.36.0-wmf.6/extensions/EventBus/includes/EventBus.php(244): MultiHttpClient->runMulti(array, array)
#5 /srv/mediawiki/php-1.36.0-wmf.6/extensions/EventBus/includes/EventBusHooks.php(450): MediaWiki\Extension\EventBus\EventBus->send(array)
#6 /srv/mediawiki/php-1.36.0-wmf.6/includes/deferred/MWCallableUpdate.php(38): MediaWiki\Extension\EventBus\EventBusHooks::MediaWiki\Extension\EventBus\{closure}()
#7 /srv/mediawiki/php-1.36.0-wmf.6/includes/deferred/DeferredUpdates.php(467): MWCallableUpdate->doUpdate()
#8 /srv/mediawiki/php-1.36.0-wmf.6/includes/deferred/DeferredUpdates.php(344): DeferredUpdates::attemptUpdate(MWCallableUpdate, Wikimedia\Rdbms\LBFactoryMulti)
#9 /srv/mediawiki/php-1.36.0-wmf.6/includes/deferred/DeferredUpdates.php(288): DeferredUpdates::run(MWCallableUpdate, Wikimedia\Rdbms\LBFactoryMulti, Monolog\Logger, BufferingStatsdDataFactory, string)
#10 /srv/mediawiki/php-1.36.0-wmf.6/includes/deferred/DeferredUpdates.php(194): DeferredUpdates::handleUpdateQueue(array, string, integer)
#11 /srv/mediawiki/php-1.36.0-wmf.6/includes/MediaWiki.php(1113): DeferredUpdates::doUpdates(string)
#12 /srv/mediawiki/php-1.36.0-wmf.6/includes/MediaWiki.php(849): MediaWiki->restInPeace()
#13 /srv/mediawiki/php-1.36.0-wmf.6/includes/MediaWiki.php(861): MediaWiki->{closure}()
#14 /srv/mediawiki/php-1.36.0-wmf.6/includes/MediaWiki.php(582): MediaWiki->doPostOutputShutdown()
#15 /srv/mediawiki/php-1.36.0-wmf.6/index.php(53): MediaWiki->run()
#16 /srv/mediawiki/php-1.36.0-wmf.6/index.php(46): wfIndexMain()
#17 /srv/mediawiki/w/index.php(3): require(string)
#18 {main}

Event Timeline

daniel created this task.Sep 9 2020, 6:50 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptSep 9 2020, 6:50 PM
Reedy added a subscriber: Reedy.

Line 359

			curl_setopt( $ch, CURLOPT_POSTFIELDS, $req['body'] );

Tagging Event-Platform as EventBus calls the MultiHttpClient code.. And EventBus::send looks to build whatever gets stuffed into $req['body']

Restricted Application added a project: Analytics. · View Herald TranscriptSep 9 2020, 7:05 PM
Reedy added a comment.Sep 9 2020, 7:13 PM

Looks very suspiciously like it might be :)

Ok, I know how to fix it. gimme 5 mins.

Change 626209 had a related patch set uploaded (by Ppchelko; owner: Ppchelko):
[mediawiki/extensions/EventBus@master] Serialize body for the event that is too big

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

Change 626209 merged by jenkins-bot:
[mediawiki/extensions/EventBus@master] Serialize body for the event that is too big

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

Krinkle renamed this task from PHP Notice: Array to string conversion to PHP Notice: Array to string conversion (from EventBus.php).Sep 11 2020, 7:40 PM
Ottomata moved this task from Backlog to Radar on the Event-Platform board.Sep 15 2020, 4:13 PM