Topic on Project:Support desk

[RESOLVED] Fatal Error when accessing SpecialPages

9
Benched42~mediawikiwiki (talkcontribs)

I am running MediaWiki on a Windows Server 2008R2 running XAMPP. It is on our intranet so I cannot post a link to it. I recently updated to MediaWiki 1.20.2 on XAMPP 1.8.1, which contains PHP 5.4.7 and MySQL 5.5.27. I updated to this two weeks ago and everything has been running well until today. Today, when I click on the "Special Pages" link in the Toolbox, I get the following error:

Fatal error: Call to a member function getLocalRepo() on a non-object in C:\xampp\htdocs\wiki\includes\specials\SpecialUploadStash.php on line 52

Also, when I click on the "Upload file" link in the Toolbox, I get the following error:

Fatal error: Call to a member function getLocalRepo() on a non-object in C:\xampp\htdocs\wiki\includes\GlobalFunctions.php on line 3483

The really strange thing, is that I can go directly to the Special:UserRightsList page of the extension UserRightsList, and it opens without incident. I can open Special:Preferences page without incident. I can open the Special:Version page without incident. I can open many of the Special Pages directly from the browser link.

I have modified the CSS of the Monobook skin extensively, but it has not changed the functionality.

Can anyone tell me what this error means and/or how to resolve it? Thanks in advance.

Benched42 (talk) 22:32, 26 February 2013 (UTC)

This post was posted by Benched42~mediawikiwiki, but signed as Benched42.

MarkAHershberger (talkcontribs)

Did you try the "Special Pages" link before today? Did you make any changes to LocalSettings.php recently?

Benched42~mediawikiwiki (talkcontribs)

Yes, I used the Special Pages regularly to assign user rights. I am the main sysop on the wiki. The error first showed up on the php logs on February 22nd. I upgraded the wiki on February 16th.

Yes, I have made changes to the LocalSettings.php file, specifically adding lines for the WikiEditor extension, but I have since commented those lines out.

This post was posted by Benched42~mediawikiwiki, but signed as Benched42.

Benched42~mediawikiwiki (talkcontribs)

I just created a new wiki and using the same 1.20.2 download and got the exact same error when accessing the Special Pages link. I'm going to try the latest 1.20.3 version and see if that resolves the issue.

This post was posted by Benched42~mediawikiwiki, but signed as Benched42.

Benched42~mediawikiwiki (talkcontribs)
Ciencia Al Poder (talkcontribs)

It looks like your settings about uploads are somewhat incompatible with the new MediaWiki version. Check your upload settings, specially $wgLocalFileRepo. You can also try to delete (or comment) them and try again to see if that error disappears, and then redefine them one by one until you find the issue.

192.237.32.77 (talkcontribs)

Found that the error was with XAMPP 1.8.1. It seems that the version Apache included with that version of XAMPP is much different than with older versions. When I uninstalled XAMPP 1.8.1 and installed XAMPP 1.7.7, MediaWiki performed as it should.

88.130.89.47 (talkcontribs)

Earlier versions of XAMPP came with Apache 2.2. XAMPP 1.8.1 however comes with Apache 2.4.

125.202.238.106 (talkcontribs)

I have the same problem.

My PC: MediaWiki: 1.20.3 PHP: 5.4.7 (apache2handler) MySQL: 5.5.27 XAMPP win32: 1.8.1 (on Win7 Pro)

When trying to go to the special page, we see

Fatal error: Call to a member function getLocalRepo() on a non-object in C:\xampp\htdocs\wiki\includes\specials\SpecialUploadStash.php on line 52

Also when trying to go to the upload file page,

Fatal error: Call to a member function getLocalRepo() on a non-object in C:\xampp\htdocs\wiki\includes\GlobalFunctions.php on line 3483

Is this a bug of MediaWiki: 1.20.3? Any help is welcome.

Reply to "[RESOLVED] Fatal Error when accessing SpecialPages"