Page MenuHomePhabricator

PHP Notice: Undefined index: main()
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error

MediaWiki version: 1.36.0-wmf.26

message
PHP Notice: Undefined index: main()

Impact

Only affects debugging requests. Not clear if this is preventing XHGui from functioning.

Notes

Possibly related to https://gerrit.wikimedia.org/r/c/operations/mediawiki-config/+/621095 or https://gerrit.wikimedia.org/r/c/operations/mediawiki-config/+/651267.

Details

Request ID
X-4FKwpAAC4AAHPAYQIAAABY
Request URL
https://test.wikipedia.org/w/load.php?lang=en&modules=ext.visualEditor.core.utils.parsing%7Cext.visualEditor.desktopArticleTarget.init%7Cext.visualEditor.progressBarWidget%2CsupportCheck%2CtargetLoader%2CtempWikitextEditorWidget%2Ctrack%2Cve&skin=vector&version=e67ir
Stack Trace
exception.trace
#0 /srv/mediawiki/lib/xhgui-collector/src/Xhgui_Saver_Pdo.php(84): MWExceptionHandler::handleError(integer, string, string, integer, array)
#1 /srv/mediawiki/wmf-config/profiler.php(192): Xhgui_Saver_Pdo->save(array)
#2 [internal function]: {closure}()
#3 {main}

Event Timeline

Krinkle triaged this task as Medium priority.Jan 27 2021, 8:55 PM

Change 659453 had a related patch set uploaded (by Dave Pifke; owner: Dave Pifke):
[operations/mediawiki-config@master] profiler: guard against missing data

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

To reproduce this, use WikimediaDebug with both "Inline profile" and "XHGui" enabled. As previously observed in T259952, that means the profile is already flushed by the MW Profiler, and thus our XHGui client draws the short straw ending up with an empty array.

Change 659453 merged by jenkins-bot:
[operations/mediawiki-config@master] profiler: guard against missing data

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