Description
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Handle $frame['function'] not being set in stack frames | mediawiki/core | master | +7 -2 |
Revisions and Commits
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | None | T124132 [Epic] Analytics, graphs and monitoring for banners and CentralNotice | |||
Resolved | Krinkle | T115107 Special:GlobalAllocation throws a php fatal "Undefined index: function " |
Event Timeline
2015-10-09 14:52:14 mw1091 metawiki fatal ERROR: [74b544e5] PHP Fatal Error: request has exceeded memory limit {"exception_id":"74b544e5"} [Exception ErrorException] (/srv/mediawiki/php-1.27.0-wmf.2/extensions/CentralNotice/special/SpecialGlobalAllocation.php:435) PHP Fatal Error: request has exceeded memory limit #0 /srv/mediawiki/php-1.27.0-wmf.2/extensions/CentralNotice/special/SpecialGlobalAllocation.php(435): () #1 /srv/mediawiki/php-1.27.0-wmf.2/extensions/CentralNotice/special/SpecialGlobalAllocation.php(432): SpecialGlobalAllocation::makeCombinations(array, integer) #2 /srv/mediawiki/php-1.27.0-wmf.2/extensions/CentralNotice/special/SpecialGlobalAllocation.php(432): SpecialGlobalAllocation::makeCombinations(array, integer) #3 /srv/mediawiki/php-1.27.0-wmf.2/extensions/CentralNotice/special/SpecialGlobalAllocation.php(432): SpecialGlobalAllocation::makeCombinations(array, integer) #4 /srv/mediawiki/php-1.27.0-wmf.2/extensions/CentralNotice/special/SpecialGlobalAllocation.php(344): SpecialGlobalAllocation::makeCombinations(array, integer) #5 /srv/mediawiki/php-1.27.0-wmf.2/extensions/CentralNotice/special/SpecialGlobalAllocation.php(265): SpecialGlobalAllocation->analyzeGroupings() #6 /srv/mediawiki/php-1.27.0-wmf.2/extensions/CentralNotice/special/SpecialGlobalAllocation.php(215): SpecialGlobalAllocation->showList() #7 /srv/mediawiki/php-1.27.0-wmf.2/includes/specialpage/SpecialPage.php(384): SpecialGlobalAllocation->execute(NULL) #8 /srv/mediawiki/php-1.27.0-wmf.2/includes/specialpage/SpecialPageFactory.php(553): SpecialPage->run(NULL) #9 /srv/mediawiki/php-1.27.0-wmf.2/includes/MediaWiki.php(249): SpecialPageFactory::executePath(Title, RequestContext) #10 /srv/mediawiki/php-1.27.0-wmf.2/includes/MediaWiki.php(662): MediaWiki->performRequest() #11 /srv/mediawiki/php-1.27.0-wmf.2/includes/MediaWiki.php(475): MediaWiki->main() #12 /srv/mediawiki/php-1.27.0-wmf.2/index.php(41): MediaWiki->run() #13 /srv/mediawiki/w/index.php(3): include(string) #14 {main}
@Krenair Is that related to this error? I don't see "Undefined index" there. (There's another old report about OOMs on this page as well).
I know it's weird, but this is the error that comes up in fatal.log when I browse to the page... The page shows "Undefined index: function".
Ah, and this in hhvm.log: Oct 9 14:52:14 mw1091: #012Notice: Undefined index: function in /srv/mediawiki/php-1.27.0-wmf.2/includes/exception/MWExceptionHandler.php on line 386
Change 244712 had a related patch set uploaded (by Alex Monk):
Handle $frame['function'] not being set in stack frames
The code handling the error page (hhvm-fatal-error.php in operations/mediawiki-config) looks for the last error and displays that. But in this case, we have two errors: the fatal, and then the notice which comes up in the exception handling code for the fatal. So it selects the notice, even though we actually want it to show the fatal.
Change 244712 merged by jenkins-bot:
Handle $frame['function'] not being set in stack frames