Last modified: 2013-04-22 16:15:30 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 T48710, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 46710 - Nonexistent language "s" causes fatal error when passed as parameter (uselang=s or wpUserLanguage=s)
Nonexistent language "s" causes fatal error when passed as parameter (uselang...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Niklas Laxström
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-03-30 01:01 UTC by Tilman Bayer
Modified: 2013-04-22 16:15 UTC (History)
4 users (show)

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


Attachments

Description Tilman Bayer 2013-03-30 01:01:39 UTC
Examples: 

https://meta.wikimedia.org/wiki/Special:NoticeTemplate/view?template=FDCpropreview20132v2&wpUserLanguage=s causes a "Wikimedia Foundation Error" with the following message":

"PHP fatal error in /usr/local/apache/common-local/php-1.21wmf12/includes/cache/MessageCache.php line 630: 
Call to undefined method languages::getCode()"


https://en.wikipedia.org/w/index.php?uselang=s yields a page with the following text:

[6855416c] 2013-03-30 01:00:28: Fatal exception of type MWException
Comment 1 Niklas Laxström 2013-04-01 21:17:38 UTC
Oh. Hmm. Should we prohibit one letter language codes?
Comment 2 Tilman Bayer 2013-04-02 00:44:59 UTC
FWIW, other one-letter codes (e.g https://en.wikipedia.org/w/index.php?uselang=t ) don't seem to provoke this error.
Comment 3 Niklas Laxström 2013-04-03 10:37:34 UTC
https://gerrit.wikimedia.org/r/57273

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


Navigation
Links