viggo hansen's picture

Updating apt appears to break mediawiki with this error:

Warning: require_once(/usr/share/mediawiki/extensions/FCKeditor/FCKeditor.php) [function.require-once]: failed to open stream: No such file or directory in /etc/mediawiki/extensions.php on line 5

Fatal error: require_once() [function.require]: Failed opening required '/usr/share/mediawiki/extensions/FCKeditor/FCKeditor.php' (include_path='/usr/share/mediawiki:/usr/share/mediawiki/includes:/usr/share/mediawiki/languages:.:/usr/share/php:/usr/share/pear') in /etc/mediawiki/extensions.php on line 5

Liraz Siri's picture

When you upgrade a package, the previous configurations are not changed. It seems the previous configuration file was pointing to an extension that no longer exists. The extensions may have changed location, or they don't exist in the newer package you installed, etc. I'll have to ask Alon about that when he gets back.

Meanwhile I recommend you edit /etc/mediawiki/extensions.php and comment out the extensions that are giving you trouble.

Also, we released a new MediaWiki appliance a few days ago in which we fixed a few extension related bugs. You might want to try to see if you're having better luck with that.


Guest's picture

Same thing here.

Jeremy Davis's picture

I will attempt to test this when I get a chance. I have the new MediaWiki appliance downloaded and was intending on ugrading (by way of clean install) my MediaWiki Appliance to the new release anyway.

Jeremy Davis's picture


I'm not sure where you guys are getting the error but I have just run

apt-get update && apt-get upgrade

on the new 2009.10 MediaWiki appliance and it all went smoothly. I got no errors either at the terminal or on the Wiki front page itself (as viewed in a web browser). The only possibile problem I could imagine were if you chose the wrong http server version as part of the upgrade (as it gave me multiple options - I chose Apache2 - which is the web server used by TKL).

I'm happy to help you troubleshoot but I need more info about the steps you are taking so I can try to see where the problem creeps in.


Guest's picture

I know that this is an old thread, but it still appears to be relevant, especially to those, like me, that installed an appliance some time ago, left it to mature (with users adding data), and then came back to check on it.

To help with a resolution, if possible, I will clarify what happened to me.

The MediaWiki appliance was installed some time last summer. Sorry for the vagueness, but it was one of a multitude of test projects that I took on, and only one of several which continue to this day.

I thought that I would run the updates, just to ensure that any security issues were patched, etc. To this end, I ran the apt-get routines and, sure enough, after resetting the system, the wiki pages gave back the error mentioned in the first message.

To resolve this, I had to go through the etc/mediawiki/extensions.php and etc/mediawiki/LocalSettings.php files and comment out all the require_once lines.

Once this was done the wiki site became accessible again.

I have not had time to check the full functionality of the wiki, but can I expect that things such as WYSIWYG editing may now not be available?

I hope this helps in your troubleshooting attempts.

Kind Regards

Add new comment