Last modified: 2010-05-15 15:33: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 T4321, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 2321 - Notices generated when referencing non-existant namespaces.
Notices generated when referencing non-existant namespaces.
Status: RESOLVED DUPLICATE of bug 2287
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.4.x
PC Windows XP
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://en.wikipedia.org/wiki/User:Ast...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-06-04 15:41 UTC by Jamie Bliss
Modified: 2010-05-15 15:33 UTC (History)
0 users

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


Attachments

Description Jamie Bliss 2005-06-04 15:41:47 UTC
On my own private wiki, when I use the code (seen in the URL), it generates PHP
notices:
 Notice: Undefined offset: -3 in D:\XAMPP\htdocs\w\languages\Language.php on
line 1727
 Notice: Undefined offset: 16 in D:\XAMPP\htdocs\w\languages\Language.php on
line 1727
 Notice: Undefined offset: 17 in D:\XAMPP\htdocs\w\languages\Language.php on
line 1727
 Notice: Undefined offset: 102 in D:\XAMPP\htdocs\w\languages\Language.php on
line 1727
 Notice: Undefined offset: 103 in D:\XAMPP\htdocs\w\languages\Language.php on
line 1727

This is most likely from the {{ns:-3}}, {{ns:16}}, {{ns:17}}, etc. that appear
on the page.

The line in question is in getNsText(), which is:
		return $wgNamespaceNamesEn[$index];

A check should be added to make sure that the namespace actually exists.
Comment 1 Niklas Laxström 2005-06-04 15:48:11 UTC

*** This bug has been marked as a duplicate of 2287 ***

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


Navigation
Links