Hello Folks,
I hope someone can help with a 1.23.8 to MW 1.24 upgrade and a custom skin I am trying to convert. It is a very basic custom skin based on Vector I "authored" a while ago, but without a proper understanding and with lots of help from this list.
I get no output (blank) and I see the log says it is due to a skin error.
Looking through the release notes, I see the problem will be down to the skin "auto-discovery" changes. Looking at the help page about migrating skins to 1.24 :
https://www.mediawiki.org/wiki/Manual:Skin_autodiscovery
I have tried to adjust my custom skin files but without success. In 1.24.1 skins/ I have :
CologneBlue/ Modern/ MonoBook/ README Vector/ ZedDocs/
ZedDocs is the custom skin based on Vector.
The Apache error I get is :
Tue Jan 13 15:43:10 2015] [error] [client 192.168.0.124] PHP Warning: require_once(/home/user/mediawiki-1.24.1/skins/zeddocs/../Vector.php): failed to open stream: No such file or directory in /home/user/mediawiki-1.24.1/skins/zeddocs/ZedDocs.skin.php on line 9, referer: http://wpdev/w/index.php?title=Main_Page
On line 9 of zeddocs/ZedDocs.skin.php I have/had :
require_once( dirname( __FILE__ ) . '/../Vector.php' );
If I set this to :
require_once( dirname( __FILE__ ) . '/../Vector/Vector.php' );
I get error :
[Tue Jan 13 16:38:50 2015] [error] [client 192.168.0.124] PHP Catchable fatal error: Argument 1 passed to SkinVector::__construct() must implement interface Config, string given, called in /home/user/mediawiki-1.24.1/includes/Setup.php on line 285 and defined in /home/user/mediawiki-1.24.1/skins/Vector/SkinVector.php on line 38, referer: http://wpdev/w/index.php?title=Main_Page
I have tried to set up my skin files (and renamed as CamelCase) as per the Skin_autodiscovery manual page.
skins/ZedDocs/ - css - images - ZedDocs.i18n.php - ZedDocs.php - ZedDocs.skin.php
I have made changes to files ZedDocs.php and ZedDocs.Skin.pnp, please see the attached PHP files. I have added a .txt extension for the list (just in case).
Can someone have a look and see where I am going wrong?
Many Thanks,
Alastair