Page MenuHomePhabricator

PHP Warning: Undefined array key "debug"
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
  • mwversion: 1.45.0-wmf.21
  • timestamp: 2025-10-07T08:40:42.344Z
  • phpversion: 8.1.33
  • reqId: 40cd035a-465f-47c3-bc45-d7adb7687f92
  • Find reqId in Logstash
normalized_message
[{reqId}] {exception_url}   PHP Warning: Undefined array key "debug"
FrameLocationCall
from/srv/mediawiki/php-1.45.0-wmf.21/extensions/Math/src/WikiTexVC/TexVC.php(225)
#0/srv/mediawiki/php-1.45.0-wmf.21/extensions/Math/src/WikiTexVC/TexVC.php(225)MediaWiki\Exception\MWExceptionHandler::handleError(int, string, string, int)
#1/srv/mediawiki/php-1.45.0-wmf.21/extensions/Math/src/WikiTexVC/TexVC.php(158)MediaWiki\Extension\Math\WikiTexVC\TexVC->handleTexError(RuntimeException, array)
#2/srv/mediawiki/php-1.45.0-wmf.21/extensions/Math/src/InputCheck/LocalChecker.php(113)MediaWiki\Extension\Math\WikiTexVC\TexVC->check(string, array, array, bool)
#3/srv/mediawiki/php-1.45.0-wmf.21/includes/libs/objectcache/WANObjectCache.php(1842)MediaWiki\Extension\Math\InputCheck\LocalChecker->runCheck(bool, int, array, null, array)
#4/srv/mediawiki/php-1.45.0-wmf.21/includes/libs/objectcache/WANObjectCache.php(1646)Wikimedia\ObjectCache\WANObjectCache->fetchOrRegenerate(string, int, array, array, array)
#5/srv/mediawiki/php-1.45.0-wmf.21/extensions/Math/src/InputCheck/LocalChecker.php(61)Wikimedia\ObjectCache\WANObjectCache->getWithSetCallback(string, int, array, array)
#6/srv/mediawiki/php-1.45.0-wmf.21/extensions/Math/src/InputCheck/LocalChecker.php(86)MediaWiki\Extension\Math\InputCheck\LocalChecker->run()
#7/srv/mediawiki/php-1.45.0-wmf.21/extensions/Math/src/MathRenderer.php(613)MediaWiki\Extension\Math\InputCheck\LocalChecker->getError()
#8/srv/mediawiki/php-1.45.0-wmf.21/extensions/Math/src/MathRenderer.php(524)MediaWiki\Extension\Math\MathRenderer->doCheck()
#9/srv/mediawiki/php-1.45.0-wmf.21/extensions/Math/src/MathRenderer.php(299)MediaWiki\Extension\Math\MathRenderer->checkTeX()
#10/srv/mediawiki/php-1.45.0-wmf.21/extensions/Math/src/MathMathML.php(79)MediaWiki\Extension\Math\MathRenderer->addTrackingCategories(MediaWiki\Parser\Parser)
#11/srv/mediawiki/php-1.45.0-wmf.21/extensions/Math/src/HookHandlers/ParserHooksHandler.php(126)MediaWiki\Extension\Math\MathMathML->addTrackingCategories(MediaWiki\Parser\Parser)
#12/srv/mediawiki/php-1.45.0-wmf.21/extensions/Math/src/HookHandlers/ParserHooksHandler.php(166)MediaWiki\Extension\Math\HookHandlers\ParserHooksHandler->mathPostTagHook(MediaWiki\Extension\Math\MathMathML, MediaWiki\Parser\Parser)
#13/srv/mediawiki/php-1.45.0-wmf.21/includes/HookContainer/HookContainer.php(155)MediaWiki\Extension\Math\HookHandlers\ParserHooksHandler->onParserAfterTidy(MediaWiki\Parser\Parser, string)
#14/srv/mediawiki/php-1.45.0-wmf.21/includes/HookContainer/HookRunner.php(3317)MediaWiki\HookContainer\HookContainer->run(string, array)
#15/srv/mediawiki/php-1.45.0-wmf.21/includes/parser/Parser.php(1681)MediaWiki\HookContainer\HookRunner->onParserAfterTidy(MediaWiki\Parser\Parser, string)
#16/srv/mediawiki/php-1.45.0-wmf.21/includes/parser/Parser.php(627)MediaWiki\Parser\Parser->internalParseHalfParsed(string, bool, bool)
#17/srv/mediawiki/php-1.45.0-wmf.21/includes/content/WikitextContentHandler.php(389)MediaWiki\Parser\Parser->parse(string, MediaWiki\Title\Title, MediaWiki\Parser\ParserOptions, bool, bool, null)
#18/srv/mediawiki/php-1.45.0-wmf.21/includes/content/ContentHandler.php(1746)MediaWiki\Content\WikitextContentHandler->fillParserOutput(MediaWiki\Content\WikitextContent, MediaWiki\Content\Renderer\ContentParseParams, MediaWiki\Parser\ParserOutput)
#19/srv/mediawiki/php-1.45.0-wmf.21/includes/content/Renderer/ContentRenderer.php(67)MediaWiki\Content\ContentHandler->getParserOutput(MediaWiki\Content\WikitextContent, MediaWiki\Content\Renderer\ContentParseParams)
#20/srv/mediawiki/php-1.45.0-wmf.21/includes/Revision/RenderedRevision.php(261)MediaWiki\Content\Renderer\ContentRenderer->getParserOutput(MediaWiki\Content\WikitextContent, MediaWiki\Page\PageIdentityValue, MediaWiki\Revision\MutableRevisionRecord, MediaWiki\Parser\ParserOptions, array)
#21/srv/mediawiki/php-1.45.0-wmf.21/includes/Revision/RenderedRevision.php(233)MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached(MediaWiki\Content\WikitextContent, array)
#22/srv/mediawiki/php-1.45.0-wmf.21/includes/Revision/RevisionRenderer.php(237)MediaWiki\Revision\RenderedRevision->getSlotParserOutput(string, array)
#23/srv/mediawiki/php-1.45.0-wmf.21/includes/Revision/RevisionRenderer.php(170)MediaWiki\Revision\RevisionRenderer->combineSlotOutput(MediaWiki\Revision\RenderedRevision, MediaWiki\Parser\ParserOptions, array)
#24/srv/mediawiki/php-1.45.0-wmf.21/includes/Revision/RenderedRevision.php(196)MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}(MediaWiki\Revision\RenderedRevision, array)
#25/srv/mediawiki/php-1.45.0-wmf.21/includes/Storage/DerivedPageDataUpdater.php(1424)MediaWiki\Revision\RenderedRevision->getRevisionParserOutput()
#26/srv/mediawiki/php-1.45.0-wmf.21/includes/Storage/PageEditStash.php(169)MediaWiki\Storage\DerivedPageDataUpdater->getCanonicalParserOutput()
#27/srv/mediawiki/php-1.45.0-wmf.21/includes/api/ApiStashEdit.php(194)MediaWiki\Storage\PageEditStash->parseAndCache(MediaWiki\Storage\PageUpdater, MediaWiki\Content\WikitextContent, MediaWiki\User\User, string)
#28/srv/mediawiki/php-1.45.0-wmf.21/includes/api/ApiMain.php(2050)MediaWiki\Api\ApiStashEdit->execute()
#29/srv/mediawiki/php-1.45.0-wmf.21/includes/api/ApiMain.php(958)MediaWiki\Api\ApiMain->executeAction()
#30/srv/mediawiki/php-1.45.0-wmf.21/includes/api/ApiMain.php(929)MediaWiki\Api\ApiMain->executeActionWithErrorHandling()
#31/srv/mediawiki/php-1.45.0-wmf.21/includes/api/ApiEntryPoint.php(152)MediaWiki\Api\ApiMain->execute()
#32/srv/mediawiki/php-1.45.0-wmf.21/includes/MediaWikiEntryPoint.php(198)MediaWiki\Api\ApiEntryPoint->execute()
#33/srv/mediawiki/php-1.45.0-wmf.21/api.php(44)MediaWiki\MediaWikiEntryPoint->run()
#34/srv/mediawiki/w/api.php(3)require(string)
#35{main}
Impact
Notes

See also: T406571: PHP Warning: Undefined array key "error"

Details

Request URL
https://en.wikipedia.org/w/api.php
Related Changes in Gerrit:

Event Timeline

Change #1194647 had a related patch set uploaded (by Physikerwelt; author: Physikerwelt):

[mediawiki/extensions/Math@master] Fix: Ensure that the debug option is always defined

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

Change #1194647 merged by jenkins-bot:

[mediawiki/extensions/Math@master] Fix: Ensure that the debug option is always defined

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

Physikerwelt triaged this task as Medium priority.

Hopefully resolved, please reopen, if it's still in the logs.