Page MenuHomePhabricator

ReflectionException: Class LanguagePt does not exist ..\includes\Init.php on line 168
Closed, InvalidPublic

Description

Author: seteselos

Description:
A Error image

Sorry the bad english.

I have installed on my PC, Windows 8, apache and php 3.5.25.
I downloaded version 1.21.1 mediawiki twice to rule out problems with the download.

I get PHP error "ReflectionException" to access the mediawiki installer. This error persists even after the configuration is done completely and successfully. It does not prevent system operation, but beyond uncomfortable as can be seen in the attached image, prevents full use out of the fact that it would be ridiculous to let this message online.

Agradesco any help.


Version: 1.21.x
Severity: normal
OS: Windows 8
Platform: PC
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=33949

Attached:

Image.png (893×1 px, 83 KB)

Details

Reference
bz49794

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:05 AM
bzimport set Reference to bz49794.
bzimport added a subscriber: Unknown Object (MLST).

Thanks for taking the time to report this!

Is the corresponding MediaWiki language extension bundle installed? See https://www.mediawiki.org/wiki/MLEB

Honestly, I 1) failed myself to find information about MLEB in less than 5min,

  1. the installer should fail more gracefully telling you what to do.

Andre: what information about MLEB were you looking for and why do you think it is related?

If the php 3.5.25 is not a typing mistake, you must upgrade. PHP 5.3 is required. I have no idea at the moment why that piece of code would throw reflection exception.

seteselos wrote:

Oops, sorry. Actually a typo. The PHP version being used is 5.3.25.

seteselos wrote:

I also efetuei downtown mediawiki other versions, and the error occurs on all of them, do not know what the problem is.
Tested Versions: 1.21.1, 1.20.6 and 1.19.7. All stable version.

Call Stack

# Time Memory Function Location
1 0.0035 338808 {main}( ) ..\index.php:0
2 0.2013 9116808 wfInstallerMain( ) ..\index.php:18
3 0.3872 14512216 WebInstaller->execute( $session = array () ) ..\index.php:50
4 0.3874 14512064 WebInstaller->setupLanguage( ) ..\WebInstaller.php:154
5 0.3889 14557616 Language::factory( $code = 'pt-br' ) ..\WebInstaller.php:486
6 0.3889 14557616 Language::newFromCode( $code = 'pt-br' ) ..\Language.php:184
7 0.4915 15782992 MWInit::classExists( $class = 'LanguagePt' ) ..\Language.php:228

8 0.4915 15783280 __construct ( 'LanguagePt' ) ..\Init.php:168

I appreciate the help.

Bug 43877 might be the same / a similar problem.

(In reply to comment #2)

Andre: what information about MLEB were you looking for and why do you think
it is related?

Niklas: What I wanted to know is written in the sentence in comment 1 which has the question mark at the end. I haven't yet thought that is related.

This is not a bug in MediaWiki but rather a server misconfiguration.

Try setting xdebug.show_exception_trace = 0 in php.ini, or just disable
the xdebug extension entirely (that extension is not something you should
use on a "production" wiki because it reduces performance).

PleaseStand: Oh thanks for enlightening me! (us?) :)
Do you think this also applies to bug 43877?

  • Bug 43877 has been marked as a duplicate of this bug. ***

(In reply to comment #8)

  • Bug 43877 has been marked as a duplicate of this bug. ***

Yes, it looks like the same problem. See bug 33949 as well.