Page MenuHomePhabricator

PHP Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
normalized_message
[{reqId}] {exception_url}   PHP Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated
FrameLocationCall
from/srv/mediawiki/php-1.44.0-wmf.19/extensions/Score/includes/Score.php(1036)
#0[internal function]MWExceptionHandler::handleError(int, string, string, int)
#1/srv/mediawiki/php-1.44.0-wmf.19/extensions/Score/includes/Score.php(1036)strpos(null, string)
#2/srv/mediawiki/php-1.44.0-wmf.19/extensions/Score/includes/Score.php(747)MediaWiki\Extension\Score\Score::embedLilypondCode(null, string, string)
#3/srv/mediawiki/php-1.44.0-wmf.19/extensions/Score/includes/Score.php(545)MediaWiki\Extension\Score\Score::generatePngAndMidi(null, array, array)
#4/srv/mediawiki/php-1.44.0-wmf.19/extensions/Score/includes/Score.php(424)MediaWiki\Extension\Score\Score::generateHTML(MediaWiki\Parser\Parser, null, array)
#5/srv/mediawiki/php-1.44.0-wmf.19/extensions/Score/includes/Score.php(280)MediaWiki\Extension\Score\Score::renderScore(null, array, MediaWiki\Parser\Parser)
#6/srv/mediawiki/php-1.44.0-wmf.19/includes/parser/Parser.php(4077)MediaWiki\Extension\Score\Score::render(null, array, MediaWiki\Parser\Parser, MediaWiki\Parser\PPTemplateFrame_Hash)
#7/srv/mediawiki/php-1.44.0-wmf.19/includes/parser/PPFrame_Hash.php(362)MediaWiki\Parser\Parser->extensionSubstitution(array, MediaWiki\Parser\PPTemplateFrame_Hash, bool)
#8/srv/mediawiki/php-1.44.0-wmf.19/extensions/Scribunto/includes/Engines/LuaCommon/LuaEngine.php(937)MediaWiki\Parser\PPFrame_Hash->expand(MediaWiki\Parser\PPNode_Hash_Tree)
#9/srv/mediawiki/php-1.44.0-wmf.19/extensions/Scribunto/includes/Engines/LuaCommon/LuaEngine.php(872)MediaWiki\Extension\Scribunto\Engines\LuaCommon\LuaEngine->doCachedExpansion(MediaWiki\Parser\PPTemplateFrame_Hash, string, array)
#10/srv/mediawiki/php-1.44.0-wmf.19/extensions/Scribunto/includes/Engines/LuaSandbox/LuaSandboxCallback.php(31)MediaWiki\Extension\Scribunto\Engines\LuaCommon\LuaEngine->preprocess(string, string)
#11[internal function]MediaWiki\Extension\Scribunto\Engines\LuaSandbox\LuaSandboxCallback->__call(string, array)
#12/srv/mediawiki/php-1.44.0-wmf.19/extensions/Scribunto/includes/Engines/LuaSandbox/LuaSandboxInterpreter.php(137)LuaSandboxFunction->call(LuaSandboxFunction)
#13/srv/mediawiki/php-1.44.0-wmf.19/extensions/Scribunto/includes/Engines/LuaCommon/LuaEngine.php(313)MediaWiki\Extension\Scribunto\Engines\LuaSandbox\LuaSandboxInterpreter->callFunction(LuaSandboxFunction, LuaSandboxFunction)
#14/srv/mediawiki/php-1.44.0-wmf.19/extensions/Scribunto/includes/Engines/LuaCommon/LuaModule.php(75)MediaWiki\Extension\Scribunto\Engines\LuaCommon\LuaEngine->executeFunctionChunk(LuaSandboxFunction, MediaWiki\Parser\PPTemplateFrame_Hash)
#15/srv/mediawiki/php-1.44.0-wmf.19/extensions/Scribunto/includes/Hooks.php(184)MediaWiki\Extension\Scribunto\Engines\LuaCommon\LuaModule->invoke(string, MediaWiki\Parser\PPTemplateFrame_Hash)
#16/srv/mediawiki/php-1.44.0-wmf.19/includes/parser/Parser.php(3487)MediaWiki\Extension\Scribunto\Hooks->invokeHook(MediaWiki\Parser\Parser, MediaWiki\Parser\PPFrame_Hash, array)
#17/srv/mediawiki/php-1.44.0-wmf.19/includes/parser/Parser.php(3143)MediaWiki\Parser\Parser->callParserFunction(MediaWiki\Parser\PPFrame_Hash, string, array, bool)
#18/srv/mediawiki/php-1.44.0-wmf.19/includes/parser/PPFrame_Hash.php(280)MediaWiki\Parser\Parser->braceSubstitution(array, MediaWiki\Parser\PPFrame_Hash)
#19/srv/mediawiki/php-1.44.0-wmf.19/includes/parser/Parser.php(2969)MediaWiki\Parser\PPFrame_Hash->expand(MediaWiki\Parser\PPNode_Hash_Tree, int)
#20/srv/mediawiki/php-1.44.0-wmf.19/includes/parser/Parser.php(1601)MediaWiki\Parser\Parser->replaceVariables(string)
#21/srv/mediawiki/php-1.44.0-wmf.19/includes/parser/Parser.php(700)MediaWiki\Parser\Parser->internalParse(string)
#22/srv/mediawiki/php-1.44.0-wmf.19/includes/content/WikitextContentHandler.php(384)MediaWiki\Parser\Parser->parse(string, MediaWiki\Title\Title, MediaWiki\Parser\ParserOptions, bool, bool, int)
#23/srv/mediawiki/php-1.44.0-wmf.19/includes/content/ContentHandler.php(1697)MediaWiki\Content\WikitextContentHandler->fillParserOutput(MediaWiki\Content\WikitextContent, MediaWiki\Content\Renderer\ContentParseParams, MediaWiki\Parser\ParserOutput)
#24/srv/mediawiki/php-1.44.0-wmf.19/includes/content/Renderer/ContentRenderer.php(75)MediaWiki\Content\ContentHandler->getParserOutput(MediaWiki\Content\WikitextContent, MediaWiki\Content\Renderer\ContentParseParams)
#25/srv/mediawiki/php-1.44.0-wmf.19/includes/Revision/RenderedRevision.php(261)MediaWiki\Content\Renderer\ContentRenderer->getParserOutput(MediaWiki\Content\WikitextContent, MediaWiki\Page\PageIdentityValue, MediaWiki\Revision\RevisionStoreRecord, MediaWiki\Parser\ParserOptions, array)
#26/srv/mediawiki/php-1.44.0-wmf.19/includes/Revision/RenderedRevision.php(233)MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached(MediaWiki\Content\WikitextContent, array)
#27/srv/mediawiki/php-1.44.0-wmf.19/includes/Revision/RevisionRenderer.php(236)MediaWiki\Revision\RenderedRevision->getSlotParserOutput(string, array)
#28/srv/mediawiki/php-1.44.0-wmf.19/includes/Revision/RevisionRenderer.php(169)MediaWiki\Revision\RevisionRenderer->combineSlotOutput(MediaWiki\Revision\RenderedRevision, MediaWiki\Parser\ParserOptions, array)
#29/srv/mediawiki/php-1.44.0-wmf.19/includes/Revision/RenderedRevision.php(196)MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}(MediaWiki\Revision\RenderedRevision, array)
#30/srv/mediawiki/php-1.44.0-wmf.19/includes/poolcounter/PoolWorkArticleView.php(106)MediaWiki\Revision\RenderedRevision->getRevisionParserOutput()
#31/srv/mediawiki/php-1.44.0-wmf.19/includes/poolcounter/PoolWorkArticleViewCurrent.php(123)MediaWiki\PoolCounter\PoolWorkArticleView->renderRevision(null, bool, string)
#32/srv/mediawiki/php-1.44.0-wmf.19/includes/poolcounter/PoolCounterWork.php(171)MediaWiki\PoolCounter\PoolWorkArticleViewCurrent->doWork()
#33/srv/mediawiki/php-1.44.0-wmf.19/includes/page/ParserOutputAccess.php(369)MediaWiki\PoolCounter\PoolCounterWork->execute()
#34/srv/mediawiki/php-1.44.0-wmf.19/includes/page/Article.php(829)MediaWiki\Page\ParserOutputAccess->getParserOutput(WikiPage, MediaWiki\Parser\ParserOptions, MediaWiki\Revision\RevisionStoreRecord, int)
#35/srv/mediawiki/php-1.44.0-wmf.19/includes/page/Article.php(545)Article->generateContentOutput(MediaWiki\User\User, MediaWiki\Parser\ParserOptions, int, MediaWiki\Output\OutputPage, array)
#36/srv/mediawiki/php-1.44.0-wmf.19/includes/actions/ViewAction.php(78)Article->view()
#37/srv/mediawiki/php-1.44.0-wmf.19/includes/actions/ActionEntryPoint.php(732)ViewAction->show()
#38/srv/mediawiki/php-1.44.0-wmf.19/includes/actions/ActionEntryPoint.php(509)MediaWiki\Actions\ActionEntryPoint->performAction(Article, MediaWiki\Title\Title)
#39/srv/mediawiki/php-1.44.0-wmf.19/includes/actions/ActionEntryPoint.php(145)MediaWiki\Actions\ActionEntryPoint->performRequest()
#40/srv/mediawiki/php-1.44.0-wmf.19/includes/MediaWikiEntryPoint.php(202)MediaWiki\Actions\ActionEntryPoint->execute()
#41/srv/mediawiki/php-1.44.0-wmf.19/index.php(58)MediaWiki\MediaWikiEntryPoint->run()
#42/srv/mediawiki/w/index.php(3)require(string)
#43{main}
Impact
Notes
Error
normalized_message
[{reqId}] {exception_url}   PHP Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated
FrameLocationCall
from/srv/mediawiki/php-1.44.0-wmf.19/extensions/Score/includes/Score.php(1039)
#0[internal function]MWExceptionHandler::handleError(int, string, string, int)
#1/srv/mediawiki/php-1.44.0-wmf.19/extensions/Score/includes/Score.php(1039)strpos(null, string)
#2/srv/mediawiki/php-1.44.0-wmf.19/extensions/Score/includes/Score.php(747)MediaWiki\Extension\Score\Score::embedLilypondCode(null, string, string)
#3/srv/mediawiki/php-1.44.0-wmf.19/extensions/Score/includes/Score.php(545)MediaWiki\Extension\Score\Score::generatePngAndMidi(null, array, array)
#4/srv/mediawiki/php-1.44.0-wmf.19/extensions/Score/includes/Score.php(424)MediaWiki\Extension\Score\Score::generateHTML(MediaWiki\Parser\Parser, null, array)
#5/srv/mediawiki/php-1.44.0-wmf.19/extensions/Score/includes/Score.php(280)MediaWiki\Extension\Score\Score::renderScore(null, array, MediaWiki\Parser\Parser)
#6/srv/mediawiki/php-1.44.0-wmf.19/includes/parser/Parser.php(4077)MediaWiki\Extension\Score\Score::render(null, array, MediaWiki\Parser\Parser, MediaWiki\Parser\PPTemplateFrame_Hash)
#7/srv/mediawiki/php-1.44.0-wmf.19/includes/parser/PPFrame_Hash.php(362)MediaWiki\Parser\Parser->extensionSubstitution(array, MediaWiki\Parser\PPTemplateFrame_Hash, bool)
#8/srv/mediawiki/php-1.44.0-wmf.19/extensions/Scribunto/includes/Engines/LuaCommon/LuaEngine.php(937)MediaWiki\Parser\PPFrame_Hash->expand(MediaWiki\Parser\PPNode_Hash_Tree)
#9/srv/mediawiki/php-1.44.0-wmf.19/extensions/Scribunto/includes/Engines/LuaCommon/LuaEngine.php(872)MediaWiki\Extension\Scribunto\Engines\LuaCommon\LuaEngine->doCachedExpansion(MediaWiki\Parser\PPTemplateFrame_Hash, string, array)
#10/srv/mediawiki/php-1.44.0-wmf.19/extensions/Scribunto/includes/Engines/LuaSandbox/LuaSandboxCallback.php(31)MediaWiki\Extension\Scribunto\Engines\LuaCommon\LuaEngine->preprocess(string, string)
#11[internal function]MediaWiki\Extension\Scribunto\Engines\LuaSandbox\LuaSandboxCallback->__call(string, array)
#12/srv/mediawiki/php-1.44.0-wmf.19/extensions/Scribunto/includes/Engines/LuaSandbox/LuaSandboxInterpreter.php(137)LuaSandboxFunction->call(LuaSandboxFunction)
#13/srv/mediawiki/php-1.44.0-wmf.19/extensions/Scribunto/includes/Engines/LuaCommon/LuaEngine.php(313)MediaWiki\Extension\Scribunto\Engines\LuaSandbox\LuaSandboxInterpreter->callFunction(LuaSandboxFunction, LuaSandboxFunction)
#14/srv/mediawiki/php-1.44.0-wmf.19/extensions/Scribunto/includes/Engines/LuaCommon/LuaModule.php(75)MediaWiki\Extension\Scribunto\Engines\LuaCommon\LuaEngine->executeFunctionChunk(LuaSandboxFunction, MediaWiki\Parser\PPTemplateFrame_Hash)
#15/srv/mediawiki/php-1.44.0-wmf.19/extensions/Scribunto/includes/Hooks.php(184)MediaWiki\Extension\Scribunto\Engines\LuaCommon\LuaModule->invoke(string, MediaWiki\Parser\PPTemplateFrame_Hash)
#16/srv/mediawiki/php-1.44.0-wmf.19/includes/parser/Parser.php(3487)MediaWiki\Extension\Scribunto\Hooks->invokeHook(MediaWiki\Parser\Parser, MediaWiki\Parser\PPFrame_Hash, array)
#17/srv/mediawiki/php-1.44.0-wmf.19/includes/parser/Parser.php(3143)MediaWiki\Parser\Parser->callParserFunction(MediaWiki\Parser\PPFrame_Hash, string, array, bool)
#18/srv/mediawiki/php-1.44.0-wmf.19/includes/parser/PPFrame_Hash.php(280)MediaWiki\Parser\Parser->braceSubstitution(array, MediaWiki\Parser\PPFrame_Hash)
#19/srv/mediawiki/php-1.44.0-wmf.19/includes/parser/Parser.php(2969)MediaWiki\Parser\PPFrame_Hash->expand(MediaWiki\Parser\PPNode_Hash_Tree, int)
#20/srv/mediawiki/php-1.44.0-wmf.19/includes/parser/Parser.php(1601)MediaWiki\Parser\Parser->replaceVariables(string)
#21/srv/mediawiki/php-1.44.0-wmf.19/includes/parser/Parser.php(700)MediaWiki\Parser\Parser->internalParse(string)
#22/srv/mediawiki/php-1.44.0-wmf.19/includes/content/WikitextContentHandler.php(384)MediaWiki\Parser\Parser->parse(string, MediaWiki\Title\Title, MediaWiki\Parser\ParserOptions, bool, bool, int)
#23/srv/mediawiki/php-1.44.0-wmf.19/includes/content/ContentHandler.php(1697)MediaWiki\Content\WikitextContentHandler->fillParserOutput(MediaWiki\Content\WikitextContent, MediaWiki\Content\Renderer\ContentParseParams, MediaWiki\Parser\ParserOutput)
#24/srv/mediawiki/php-1.44.0-wmf.19/includes/content/Renderer/ContentRenderer.php(75)MediaWiki\Content\ContentHandler->getParserOutput(MediaWiki\Content\WikitextContent, MediaWiki\Content\Renderer\ContentParseParams)
#25/srv/mediawiki/php-1.44.0-wmf.19/includes/Revision/RenderedRevision.php(261)MediaWiki\Content\Renderer\ContentRenderer->getParserOutput(MediaWiki\Content\WikitextContent, MediaWiki\Page\PageIdentityValue, MediaWiki\Revision\RevisionStoreRecord, MediaWiki\Parser\ParserOptions, array)
#26/srv/mediawiki/php-1.44.0-wmf.19/includes/Revision/RenderedRevision.php(233)MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached(MediaWiki\Content\WikitextContent, array)
#27/srv/mediawiki/php-1.44.0-wmf.19/includes/Revision/RevisionRenderer.php(236)MediaWiki\Revision\RenderedRevision->getSlotParserOutput(string, array)
#28/srv/mediawiki/php-1.44.0-wmf.19/includes/Revision/RevisionRenderer.php(169)MediaWiki\Revision\RevisionRenderer->combineSlotOutput(MediaWiki\Revision\RenderedRevision, MediaWiki\Parser\ParserOptions, array)
#29/srv/mediawiki/php-1.44.0-wmf.19/includes/Revision/RenderedRevision.php(196)MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}(MediaWiki\Revision\RenderedRevision, array)
#30/srv/mediawiki/php-1.44.0-wmf.19/includes/poolcounter/PoolWorkArticleView.php(106)MediaWiki\Revision\RenderedRevision->getRevisionParserOutput()
#31/srv/mediawiki/php-1.44.0-wmf.19/includes/poolcounter/PoolWorkArticleViewCurrent.php(123)MediaWiki\PoolCounter\PoolWorkArticleView->renderRevision(null, bool, string)
#32/srv/mediawiki/php-1.44.0-wmf.19/includes/poolcounter/PoolCounterWork.php(171)MediaWiki\PoolCounter\PoolWorkArticleViewCurrent->doWork()
#33/srv/mediawiki/php-1.44.0-wmf.19/includes/page/ParserOutputAccess.php(369)MediaWiki\PoolCounter\PoolCounterWork->execute()
#34/srv/mediawiki/php-1.44.0-wmf.19/includes/page/Article.php(829)MediaWiki\Page\ParserOutputAccess->getParserOutput(WikiPage, MediaWiki\Parser\ParserOptions, MediaWiki\Revision\RevisionStoreRecord, int)
#35/srv/mediawiki/php-1.44.0-wmf.19/includes/page/Article.php(545)Article->generateContentOutput(MediaWiki\User\User, MediaWiki\Parser\ParserOptions, int, MediaWiki\Output\OutputPage, array)
#36/srv/mediawiki/php-1.44.0-wmf.19/includes/actions/ViewAction.php(78)Article->view()
#37/srv/mediawiki/php-1.44.0-wmf.19/includes/actions/ActionEntryPoint.php(732)ViewAction->show()
#38/srv/mediawiki/php-1.44.0-wmf.19/includes/actions/ActionEntryPoint.php(509)MediaWiki\Actions\ActionEntryPoint->performAction(Article, MediaWiki\Title\Title)
#39/srv/mediawiki/php-1.44.0-wmf.19/includes/actions/ActionEntryPoint.php(145)MediaWiki\Actions\ActionEntryPoint->performRequest()
#40/srv/mediawiki/php-1.44.0-wmf.19/includes/MediaWikiEntryPoint.php(202)MediaWiki\Actions\ActionEntryPoint->execute()
#41/srv/mediawiki/php-1.44.0-wmf.19/index.php(58)MediaWiki\MediaWikiEntryPoint->run()
#42/srv/mediawiki/w/index.php(3)require(string)
#43{main}
Impact
Notes

Event Timeline

Change #1127561 had a related patch set uploaded (by Reedy; author: Reedy):

[mediawiki/extensions/Score@master] Score: Handle parser passing $code of null and bail out

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

Jdforrester-WMF changed the task status from Open to In Progress.Mar 13 2025, 5:29 PM

Change #1127561 merged by jenkins-bot:

[mediawiki/extensions/Score@master] Score: Handle parser passing $code of null and bail out

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

Change #1127573 had a related patch set uploaded (by Reedy; author: Reedy):

[mediawiki/extensions/Score@wmf/1.44.0-wmf.20] Score: Handle parser passing $code of null and bail out

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

Change #1127574 had a related patch set uploaded (by Reedy; author: Reedy):

[mediawiki/extensions/Score@REL1_43] Score: Handle parser passing $code of null and bail out

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

Change #1127576 had a related patch set uploaded (by Reedy; author: Reedy):

[mediawiki/extensions/Score@REL1_42] Score: Handle parser passing $code of null and bail out

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

Reedy claimed this task.

Change #1127577 had a related patch set uploaded (by Reedy; author: Reedy):

[mediawiki/extensions/Score@REL1_39] Score: Handle parser passing $code of null and bail out

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

Change #1127577 merged by jenkins-bot:

[mediawiki/extensions/Score@REL1_39] Score: Handle parser passing $code of null and bail out

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

Change #1127574 merged by jenkins-bot:

[mediawiki/extensions/Score@REL1_43] Score: Handle parser passing $code of null and bail out

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

Change #1127573 merged by jenkins-bot:

[mediawiki/extensions/Score@wmf/1.44.0-wmf.20] Score: Handle parser passing $code of null and bail out

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

Mentioned in SAL (#wikimedia-operations) [2025-03-13T21:25:18Z] <jhuneidi@deploy2002> Started scap sync-world: Backport for [[gerrit:1127566|PreferenceHelper: Handle another case of getGlobalPreferencesValues returning false (T388073)]], [[gerrit:1127582|FilterEvaluator::rmdoubles: Disable PCRE JIT for this call (T385452)]], [[gerrit:1127573|Score: Handle parser passing $code of null and bail out (T388821)]], [[gerrit:1127570|SidebarBeforeOutputHookHandler::getItemId: Bail early if

Mentioned in SAL (#wikimedia-operations) [2025-03-13T21:28:03Z] <jhuneidi@deploy2002> reedy, jhuneidi: Backport for [[gerrit:1127566|PreferenceHelper: Handle another case of getGlobalPreferencesValues returning false (T388073)]], [[gerrit:1127582|FilterEvaluator::rmdoubles: Disable PCRE JIT for this call (T385452)]], [[gerrit:1127573|Score: Handle parser passing $code of null and bail out (T388821)]], [[gerrit:1127570|SidebarBeforeOutputHookHandler::getItemId: Bail early if Title i

Mentioned in SAL (#wikimedia-operations) [2025-03-13T21:34:25Z] <jhuneidi@deploy2002> Finished scap sync-world: Backport for [[gerrit:1127566|PreferenceHelper: Handle another case of getGlobalPreferencesValues returning false (T388073)]], [[gerrit:1127582|FilterEvaluator::rmdoubles: Disable PCRE JIT for this call (T385452)]], [[gerrit:1127573|Score: Handle parser passing $code of null and bail out (T388821)]], [[gerrit:1127570|SidebarBeforeOutputHookHandler::getItemId: Bail early i

Change #1127576 merged by jenkins-bot:

[mediawiki/extensions/Score@REL1_42] Score: Handle parser passing $code of null and bail out

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