https://bugzilla.wikimedia.org/show_bug.cgi?id=37760
Web browser: ---
Bug #: 37760
Summary: Attempting to translate a page into a non-permitted
language results in 500 error rather than clean error
Product: MediaWiki extensions
Version: master
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: normal
Priority: Unprioritized
Component: Translate
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
I'm running MediaWiki 1.19.1, just done a fresh pull of Translate from git,
master branch. My apologies for any inaccuracies in terminology - I'm very new
to MediaWiki, a little rusty with PHP but use git daily.
How to recreate:-
Set up a user account with 'en' as its language
Create a page, in English, and mark it for translation into German only (by
setting 'de' as a priority translation and checking 'disallow translation into
other languages'.
Click 'Translate this page'.
A 500 error will be returned, and this placed into the logs:-
[Wed Jun 20 23:07:59 2012] [error] [client xx.xx.xx.xx] PHP Fatal error: Call
to undefined method Language::fetchLanguageName() in
/home/sites/mysite.com/public_html/wiki/extensions/Translate/specials/SpecialTranslate.php
on line 163, referer: http://wiki.mysite.com/index.php?title=XX_XX_XX
-: the page requested was :-
http://wiki.mysite.com/index.php?title=Special%3ATranslate&taction=translate&group=page-XX+XX+XX&language=en&limit=100&task=view
By changing the language GET param to 'de', the page displays properly.
I believe this bug was introduced in commit 76cd8533, as checking out the
commit prior to this results in a sane error message being displayed.
I'm happy to grant access to my install to developers if the bug can't be
recreated on a test env.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l