Last modified: 2010-05-15 15:33:56 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
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