Last modified: 2010-05-15 15:50:56 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 T12782, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 10782 - Notice: Undefined offset: 1 in SpecialVersion.php on line 257
Notice: Undefined offset: 1 in SpecialVersion.php on line 257
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Interface (Other open bugs)
1.10.x
PC Windows Server 2003
: Normal trivial (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-08-02 19:36 UTC by Dan Barrett
Modified: 2010-05-15 15:50 UTC (History)
0 users

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


Attachments

Description Dan Barrett 2007-08-02 19:36:22 UTC
Special:Version displays this PHP warning:

Notice: Undefined offset: 1 in <path>\includes\SpecialVersion.php on line 257

This is the arrayToString() line:
  return "($class, {$list[1]})";
Comment 1 Dan Barrett 2007-08-03 17:22:09 UTC
Call Stack
#	Time	Memory	Function	Location
1	0.0009	74728	{main}( )	..\index.php:0
2	0.1460	8747472	MediaWiki->initialize( )	..\index.php:89
3	0.1748	10410936	MediaWiki->initializeSpecialCases( )	..\Wiki.php:45
4	0.1784	10706200	SpecialPage::executePath( )	..\Wiki.php:196
5	0.1813	10730592	SpecialPage->execute( )	..\SpecialPage.php:433
6	0.1999	11237608	wfSpecialVersion( )	..\SpecialPage.php:627
7	0.1999	11237608	SpecialVersion->execute( )	..\SpecialVersion.php:17
8	0.2072	11353032	SpecialVersion->wgHooks( )	..\SpecialVersion.php:33
9	0.2073	11353544	SpecialVersion->listToText( )	..\SpecialVersion.php:189
10	0.2073	11354104	SpecialVersion->arrayToString( )	..\SpecialVersion.php:233
Comment 2 Rob Church 2007-08-03 18:25:56 UTC
This looks like it might have been fixed in trunk. Chances are, this is due to a bad assumption about what constituted a valid hook callback "then" vs. "now"; without knowing what extensions are installed (thus, what's being set in hooks), I can't check this too well.
Comment 3 Dan Barrett 2007-08-03 19:11:27 UTC
This was caused by a custom extension we installed, which has the line:

$wgHooks['EditFormPreloadText'][] = array('name_of_function');

which causes Special:Version to display this hook's subscribers as:

(,)
Comment 4 Brion Vibber 2007-08-08 17:31:48 UTC
You've got an invalid hook bit there.

Set:

$wgHooks['EditFormPreloadText'][] = 'name_of_function';

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


Navigation
Links