Last modified: 2014-02-12 23:32:48 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 T45877, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 43877 - ReflectionException: Class LanguageEn_gb does not exist in <path>\w\includes\Init.php on line 168
ReflectionException: Class LanguageEn_gb does not exist in <path>\w\includes\...
Status: RESOLVED DUPLICATE of bug 49794
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.20.x
PC Windows 7
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-11 18:24 UTC by Ben
Modified: 2014-02-12 23:32 UTC (History)
2 users (show)

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


Attachments

Description Ben 2013-01-11 18:24:07 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
Comment 1 Sam Reed (reedy) 2013-01-12 22:58:06 UTC
What version of MediaWiki? Any extensions?

AFAIK there has never been a LanguageEn_gb class, nor a LanguageEn class...
Comment 3 Ben 2013-01-14 10:38:41 UTC
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.
Comment 4 Ben 2013-01-14 10:40:08 UTC
(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.
Comment 5 Ben 2013-01-14 10:41:05 UTC
(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.
Comment 6 Ben 2013-01-14 11:39:10 UTC
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(){

	}
}
Comment 7 Ben 2013-01-14 12:09:23 UTC
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;
	}
Comment 8 Kevin Israel (PleaseStand) 2013-06-21 01:37:10 UTC

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

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


Navigation
Links