Last modified: 2013-10-28 08:15:09 UTC
Notice: Undefined index: file in /var/wwwroot/dereckson.be/mediawiki/includes/Exception.php on line 740 In an exception stacktrace, I get the following value without file/line value: Array ( [function] => doEditContent [class] => WikiPage [type] => -> [args] => Array ( [0] => WikitextContent Object ( [model_id:protected] => wikitext [mText] => Lorem ipsum dolor ) [1] => [2] => 98 [3] => [4] => [5] => text/x-wiki ) ) This generates a notice as the following debug code always expect these: File: includes/Exception.php Method: formatRedactedTrace Code (around line 740): $finalExceptionText .= "#{$i} {$call['file']}({$call['line']}): "; To reproduce this bug: 1. $wgHooks['PageContentSaveComplete'][] = 'ANonExistentFunction'; 2. edit a page and save it
For reference, the full stracktrace is: #0 /var/wwwroot/dereckson.be/mediawiki/includes/GlobalFunctions.php(3934): Hooks::run('PageContentSaveComplete', Array) #1 /var/wwwroot/dereckson.be/mediawiki/includes/WikiPage.php(1932): wfRunHooks('PageContentSaveComplete', Array) #2 (): WikiPage->doEditContent(Object(WikitextContent), '', 98, false, NULL, 'text/x-wiki') #3 /var/wwwroot/dereckson.be/mediawiki/includes/Article.php(2028): call_user_func_array(Array, Array) #4 /var/wwwroot/dereckson.be/mediawiki/includes/EditPage.php(1755): Article->__call('doEditContent', Array) #5 /var/wwwroot/dereckson.be/mediawiki/includes/EditPage.php(1755): Article->doEditContent(Object(WikitextContent), '', 98, false, NULL, 'text/x-wiki') #6 /var/wwwroot/dereckson.be/mediawiki/includes/EditPage.php(1214): EditPage->internalAttemptSave(Array, false) #7 /var/wwwroot/dereckson.be/mediawiki/includes/EditPage.php(416): EditPage->attemptSave() #8 /var/wwwroot/dereckson.be/mediawiki/includes/actions/EditAction.php(50): EditPage->edit() #9 /var/wwwroot/dereckson.be/mediawiki/includes/actions/EditAction.php(76): EditAction->show() #10 /var/wwwroot/dereckson.be/mediawiki/includes/Wiki.php(448): SubmitAction->show() #11 /var/wwwroot/dereckson.be/mediawiki/includes/Wiki.php(312): MediaWiki->performAction(Object(Article), Object(Title)) #12 /var/wwwroot/dereckson.be/mediawiki/includes/Wiki.php(600): MediaWiki->performRequest() #13 /var/wwwroot/dereckson.be/mediawiki/includes/Wiki.php(467): MediaWiki->main() #14 /var/wwwroot/dereckson.be/mediawiki/index.php(49): MediaWiki->run() #15 {main} The no file/line call is the one after a call_user_func_array.
Change 88628 had a related patch set uploaded by Dereckson: Fixes stacktrace output when no file context is available. https://gerrit.wikimedia.org/r/88628
Change 88628 abandoned by Dereckson: Fixes stacktrace output when no file context is available. Reason: Meanwhile fixed by I1173216cade73216848816f6bb51e54096abdfde after a report in bug 55634. #2 [internal function]: WikiPage->doEditContent(Object(WikitextContent), '', 98, false, NULL, 'text/x-wiki') https://gerrit.wikimedia.org/r/88628
*** This bug has been marked as a duplicate of bug 55634 ***
Change 90067 had a related patch set uploaded by Dereckson: Fixes stacktrace output when an internal function is called. https://gerrit.wikimedia.org/r/90067
One bug is enough to track this. *** This bug has been marked as a duplicate of bug 55634 ***
Change 90067 abandoned by Dereckson: Fixes stacktrace output when an internal function is called. Reason: As the information isn't pertinent to the exception position. https://gerrit.wikimedia.org/r/90067