This is a series of three issues, which all seem related: a warning, a notice, and finally an error.
Error
- mwversion: 1.43.0-wmf.10
- reqId: 567a86f1-0b88-40be-84b7-8d5e9a1cb45f
- Find reqId in Logstash
PHP Warning: explode() expects parameter 2 to be string, object given
PHP Notice: Trying to access array offset on value of type null
And then the full error:
[{reqId}] {exception_url} Error: Call to a member function getPageAsLinkTarget() on null
from /srv/mediawiki/php-1.43.0-wmf.10/extensions/EventLogging/includes/JsonSchemaContent.php(109) #0 /srv/mediawiki/php-1.43.0-wmf.10/includes/content/JsonContent.php(112): MediaWiki\Extension\EventLogging\JsonSchemaContent->objectRow(string, stdClass) #1 /srv/mediawiki/php-1.43.0-wmf.10/includes/content/JsonContent.php(186): MediaWiki\Content\JsonContent->objectTable(stdClass) #2 /srv/mediawiki/php-1.43.0-wmf.10/includes/content/JsonContent.php(137): MediaWiki\Content\JsonContent->valueCell(stdClass) #3 /srv/mediawiki/php-1.43.0-wmf.10/extensions/EventLogging/includes/JsonSchemaContent.php(117): MediaWiki\Content\JsonContent->objectRow(string, stdClass) #4 /srv/mediawiki/php-1.43.0-wmf.10/includes/content/JsonContent.php(112): MediaWiki\Extension\EventLogging\JsonSchemaContent->objectRow(string, stdClass) #5 /srv/mediawiki/php-1.43.0-wmf.10/includes/content/JsonContent.php(83): MediaWiki\Content\JsonContent->objectTable(stdClass) #6 /srv/mediawiki/php-1.43.0-wmf.10/includes/content/JsonContentHandler.php(127): MediaWiki\Content\JsonContent->rootValueTable(stdClass) #7 /srv/mediawiki/php-1.43.0-wmf.10/extensions/EventLogging/includes/JsonSchemaContentHandler.php(55): MediaWiki\Content\JsonContentHandler->fillParserOutput(MediaWiki\Extension\EventLogging\JsonSchemaContent, MediaWiki\Content\Renderer\ContentParseParams, MediaWiki\Parser\ParserOutput) #8 /srv/mediawiki/php-1.43.0-wmf.10/includes/content/ContentHandler.php(1674): MediaWiki\Extension\EventLogging\JsonSchemaContentHandler->fillParserOutput(MediaWiki\Extension\EventLogging\JsonSchemaContent, MediaWiki\Content\Renderer\ContentParseParams, MediaWiki\Parser\ParserOutput) #9 /srv/mediawiki/php-1.43.0-wmf.10/includes/content/Renderer/ContentRenderer.php(67): ContentHandler->getParserOutput(MediaWiki\Extension\EventLogging\JsonSchemaContent, MediaWiki\Content\Renderer\ContentParseParams) #10 /srv/mediawiki/php-1.43.0-wmf.10/includes/Revision/RenderedRevision.php(260): MediaWiki\Content\Renderer\ContentRenderer->getParserOutput(MediaWiki\Extension\EventLogging\JsonSchemaContent, MediaWiki\Title\Title, MediaWiki\Revision\RevisionStoreRecord, ParserOptions, boolean) #11 /srv/mediawiki/php-1.43.0-wmf.10/includes/Revision/RenderedRevision.php(232): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached(MediaWiki\Extension\EventLogging\JsonSchemaContent, boolean) #12 /srv/mediawiki/php-1.43.0-wmf.10/includes/Revision/RevisionRenderer.php(226): MediaWiki\Revision\RenderedRevision->getSlotParserOutput(string, array) #13 /srv/mediawiki/php-1.43.0-wmf.10/includes/Revision/RevisionRenderer.php(164): MediaWiki\Revision\RevisionRenderer->combineSlotOutput(MediaWiki\Revision\RenderedRevision, ParserOptions, array) #14 [internal function]: MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}(MediaWiki\Revision\RenderedRevision, array) #15 /srv/mediawiki/php-1.43.0-wmf.10/includes/Revision/RenderedRevision.php(199): call_user_func(Closure, MediaWiki\Revision\RenderedRevision, array) #16 /srv/mediawiki/php-1.43.0-wmf.10/includes/page/ParserOutputAccess.php(381): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput() #17 /srv/mediawiki/php-1.43.0-wmf.10/includes/page/ParserOutputAccess.php(332): MediaWiki\Page\ParserOutputAccess->renderRevision(WikiPage, ParserOptions, MediaWiki\Revision\RevisionStoreRecord, integer) #18 /srv/mediawiki/php-1.43.0-wmf.10/includes/content/ContentHandler.php(1451): MediaWiki\Page\ParserOutputAccess->getParserOutput(WikiPage, ParserOptions, MediaWiki\Revision\RevisionStoreRecord, integer) #19 /srv/mediawiki/php-1.43.0-wmf.10/extensions/CirrusSearch/includes/BuildDocument/ParserOutputPageProperties.php(86): ContentHandler->getParserOutputForIndexing(WikiPage, NULL, MediaWiki\Revision\RevisionStoreRecord) #20 /srv/mediawiki/php-1.43.0-wmf.10/includes/libs/objectcache/wancache/WANObjectCache.php(1726): CirrusSearch\BuildDocument\ParserOutputPageProperties->CirrusSearch\BuildDocument\{closure}(boolean, integer, array, NULL, array) #21 /srv/mediawiki/php-1.43.0-wmf.10/includes/libs/objectcache/wancache/WANObjectCache.php(1556): WANObjectCache->fetchOrRegenerate(string, integer, Closure, array, array) #22 /srv/mediawiki/php-1.43.0-wmf.10/extensions/CirrusSearch/includes/BuildDocument/ParserOutputPageProperties.php(95): WANObjectCache->getWithSetCallback(string, integer, Closure) #23 /srv/mediawiki/php-1.43.0-wmf.10/extensions/CirrusSearch/includes/BuildDocument/ParserOutputPageProperties.php(51): CirrusSearch\BuildDocument\ParserOutputPageProperties->finalizeReal(Elastica\Document, WikiPage, CirrusSearch\CirrusSearch, MediaWiki\Revision\RevisionStoreRecord) #24 /srv/mediawiki/php-1.43.0-wmf.10/extensions/CirrusSearch/includes/BuildDocument/BuildDocument.php(196): CirrusSearch\BuildDocument\ParserOutputPageProperties->finalize(Elastica\Document, MediaWiki\Title\Title, MediaWiki\Revision\RevisionStoreRecord) #25 /srv/mediawiki/php-1.43.0-wmf.10/extensions/CirrusSearch/includes/Api/QueryBuildDocument.php(106): CirrusSearch\BuildDocument\BuildDocument->finalize(Elastica\Document, boolean, MediaWiki\Revision\RevisionStoreRecord) #26 /srv/mediawiki/php-1.43.0-wmf.10/includes/api/ApiQuery.php(706): CirrusSearch\Api\QueryBuildDocument->execute() #27 /srv/mediawiki/php-1.43.0-wmf.10/includes/api/ApiMain.php(1952): ApiQuery->execute() #28 /srv/mediawiki/php-1.43.0-wmf.10/includes/api/ApiMain.php(928): ApiMain->executeAction() #29 /srv/mediawiki/php-1.43.0-wmf.10/includes/api/ApiMain.php(899): ApiMain->executeActionWithErrorHandling() #30 /srv/mediawiki/php-1.43.0-wmf.10/includes/api/ApiEntryPoint.php(158): ApiMain->execute() #31 /srv/mediawiki/php-1.43.0-wmf.10/includes/MediaWikiEntryPoint.php(200): MediaWiki\Api\ApiEntryPoint->execute() #32 /srv/mediawiki/php-1.43.0-wmf.10/api.php(44): MediaWiki\MediaWikiEntryPoint->run() #33 /srv/mediawiki/w/api.php(3): require(string) #34 {main}
Impact
Logspam, invalid API responses, and (I think) failure to index some content? (Judging by prop=cirrusbuilddoc.)