Last modified: 2014-02-12 23:32:48 UTC
If I have display_errors set to 'On' in php.ini and view: http://cbp-transcription-desk.local/td/Main_Page I get: ReflectionException: Class LanguageEn_gb does not exist in M:\Dropbox\web\sites\cbp-transcription-desk.local\w\includes\Init.php on line 168 Call Stack # Time Memory Function Location 1 0.0010 342576 {main}( ) ..\index.php:0 2 0.0014 376800 require( 'M:\Dropbox\web\sites\cbp-transcription-desk.local\w\includes\WebStart.php' ) ..\index.php:55 3 0.0189 1690968 require_once( 'M:\Dropbox\web\sites\cbp-transcription-desk.local\w\includes\Setup.php' ) ..\WebStart.php:157 4 0.0456 4918192 Language::factory( ) ..\Setup.php:497 5 0.0456 4918192 Language::newFromCode( ) ..\Language.php:184 6 0.0516 6119712 MWInit::classExists( ) ..\Language.php:214 7 0.0516 6119952 ReflectionClass->__construct( ) ..\Init.php:168
What version of MediaWiki? Any extensions? AFAIK there has never been a LanguageEn_gb class, nor a LanguageEn class...
This is also mentioned in http://www.mediawiki.org/wiki/Thread:Project:Support_desk/ReflectionException:_Class_LanguageEn_gb_does_not_exist_in_includes%5CInit.php_on_line_16 Ben: Are you the same reporter?
The version is 1.20.2. No active (In reply to comment #1) > What version of MediaWiki? Any extensions? > > AFAIK there has never been a LanguageEn_gb class, nor a LanguageEn class... The version is 1.20.2. No active extensions.
(In reply to comment #2) > This is also mentioned in > http://www.mediawiki.org/wiki/Thread:Project:Support_desk/ > ReflectionException:_Class_LanguageEn_gb_does_not_exist_in_includes%5CInit. > php_on_line_16 > Ben: Are you the same reporter? Yes. I am the same reporter.
(In reply to comment #1) > What version of MediaWiki? Any extensions? > > AFAIK there has never been a LanguageEn_gb class, nor a LanguageEn class... I have searched the code base for string 'LanguageEn_gb' and can't find it.
It seems to be expecting: /languages/classes/LanguageEn_gb.php and look something like this: class LanguageEn_gb extends Language{ public function initEncoding(){ } public function checkTitleEncoding(){ } }
I have hidden this error for now by changing Init::classexists() to: static function classExists( $class ) { if( $class == 'LanguageEn_gb' ){ return false; } try { $r = new ReflectionClass( $class ); } catch( ReflectionException $r ) { $r = false; } return $r !== false; }
*** This bug has been marked as a duplicate of bug 49794 ***