You are not logged in.

#1 2019-01-20 09:56:01

diederick76
Member
Registered: 2010-02-14
Posts: 157

[SOLVED] MediaWiki: cannot refer to skin in LocalSettings.php

Hi all,

I have a Mediawiki installation that refers to several extensions and skins like this in a file called LocalSettings.php:

require_once( "$IP/extensions/WikiEditor/WikiEditor.php" );
require_once ( dirname( __FILE__ ) . "/extensions/Cite/Cite.php" );
require_once "$IP/skins/CologneBlue/CologneBlue.php";
require_once "$IP/skins/Modern/Modern.php";
require_once "$IP/skins/Timeless/SkinTimeless.php";
require_once "$IP/skins/MonoBook/MonoBook.php";
require_once "$IP/skins/Vector/Vector.php";

It has worked until the last time I visited my wiki, but yesterday it wouldn't show anything unless I commented out all these lines. It appeared all these php files have vashished:

$ ls /usr/share/webapps/mediawiki/skins/Vector/ | grep Vektor.php
$ 

Even in the source tree, the files are not there: https://github.com/wikimedia/mediawiki-skins-Vector

I assume that I missed some info when last updating my Mediawiki using pacman.

Can someone tell me the new and updated way to refer to skins and extensions in mediawiki?

Thanks for any help!

Last edited by diederick76 (2019-01-20 13:54:01)

Offline

#2 2019-01-20 13:21:22

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: [SOLVED] MediaWiki: cannot refer to skin in LocalSettings.php

Some of these extensions of MediaWiki have been replaced by core functionality, like Vector.

The next link tells that https://www.mediawiki.org/wiki/Extension:Vector,  follow the links on that page.

You may need to search for every single extension that's not working for you anymore.
I cant' exactly tell you for my MediaWiki runs on Debian;)

Offline

#3 2019-01-20 13:49:45

diederick76
Member
Registered: 2010-02-14
Posts: 157

Re: [SOLVED] MediaWiki: cannot refer to skin in LocalSettings.php

Thanks! In fact, Vector is a skin, not an extension, but replacing

require_once "$IP/skins/Vector/Vector.php";

with

wfLoadSkin( 'Vector' );

as mentioned at https://www.mediawiki.org/wiki/Skin:Vector indeed solved the problem.

Thanks again!

Offline

#4 2019-01-20 13:54:25

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: [SOLVED] MediaWiki: cannot refer to skin in LocalSettings.php

Glad you solved it.
Btw. I know Vector is a skin but that's what they call it themselves tongue

Offline

Board footer

Powered by FluxBB