Last modified: 2013-10-28 16:21:15 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T57634, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55634 - Exception after call_user_func causes error (PHP Notice: Undefined index: file, PHP Notice: Undefined index: line)
Exception after call_user_func causes error (PHP Notice: Undefined index: fil...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.22.0
All All
: High normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 55479 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-11 18:13 UTC by Krinkle
Modified: 2013-10-28 16:21 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Krinkle 2013-10-11 18:13:59 UTC
Cause an exception from something with call_user_func in its stack.

For example, if you use wfUseMW( '2000.0' ); inside VisualEditor::onSetup (wgExtensionFunctions), you get:



Notice: Undefined index: file in /includes/Exception.php on line 725
Notice: Undefined index: line in /includes/Exception.php on line 725
Notice: Undefined index: file in /includes/Exception.php on line 725
Notice: Undefined index: line in /includes/Exception.php on line 725

MediaWiki 2000.0 required--this is only 1.22alpha

Backtrace:

#0 /extensions/VisualEditor/VisualEditor.hooks.php(23): wfUseMW('1.229wmf11')
#1 (): VisualEditorHooks::onSetup()
#2 /includes/Setup.php(592): call_user_func('VisualEditorHooks::onSetup')
#3 /includes/WebStart.php(153): require_once('/includes/Setup.php')
#4 /index.php(46): require('/includes/WebStart.php')
#5 {main}
Comment 1 Krinkle 2013-10-11 18:14:07 UTC
Upstream bug:

https://bugs.php.net/bug.php?id=64987
Comment 2 Gerrit Notification Bot 2013-10-11 18:18:27 UTC
Change 89243 had a related patch set uploaded by Krinkle:
exception: Account for $call['file'] and $call['line'] being unset

https://gerrit.wikimedia.org/r/89243
Comment 3 Krinkle 2013-10-11 18:21:49 UTC
(In reply to comment #0)
> Notice: Undefined index: file in /includes/Exception.php on line 725
> Notice: Undefined index: line in /includes/Exception.php on line 725
> Notice: Undefined index: file in /includes/Exception.php on line 725
> Notice: Undefined index: line in /includes/Exception.php on line 725
> 
> MediaWiki 2000.0 required--this is only 1.22alpha
> 
> Backtrace:
> 
> #0 /extensions/VisualEditor/VisualEditor.hooks.php(23): wfUseMW('1.229wmf11')
> #1 (): VisualEditorHooks::onSetup()
> #2 /includes/Setup.php(592): call_user_func('VisualEditorHooks::onSetup')
> #3 /includes/WebStart.php(153): require_once('/includes/Setup.php')
> #4 /index.php(46): require('/includes/WebStart.php')
> #5 {main}


New output after the patch:

#0 /extensions/VisualEditor/VisualEditor.hooks.php(23): wfUseMW('1.229wmf11')
#1 {internal}: VisualEditorHooks::onSetup()
#2 /includes/Setup.php(592): call_user_func('VisualEditorHooks::onSetup')
#3 /includes/WebStart.php(153): require_once('/includes/Setup.php')
#4 /index.php(46): require('/includes/WebStart.php')
#5 {main}
Comment 4 Gerrit Notification Bot 2013-10-11 18:50:53 UTC
Change 89243 merged by jenkins-bot:
exception: Account for $call['file'] and $call['line'] being unset

https://gerrit.wikimedia.org/r/89243
Comment 5 Dereckson 2013-10-15 23:42:16 UTC
*** Bug 55479 has been marked as a duplicate of this bug. ***
Comment 6 Gerrit Notification Bot 2013-10-15 23:59:36 UTC
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
Comment 7 Dereckson 2013-10-16 00:03:51 UTC
*** Bug 55479 has been marked as a duplicate of this bug. ***
Comment 8 Gerrit Notification Bot 2013-10-28 08:15:11 UTC
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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links