Topic on Project:Support desk

[RESOLVED] Skin.php fatalities (Fatal error: Cannot instantiate abstract class Skin)

4
Jeffwang (talkcontribs)

What's with this? Fatal error: Cannot instantiate abstract class Skin in /home/qqq/domains/qqq.com/public_html/wikidirectorynameisqqq/includes/Skin.php on line 159 Please help, thanks!

Bawolff (talkcontribs)

It's probably caused by trying to load a skin with the empty string as its name (There is code in 1.19 to make the error fail more gracefully).

Make sure $wgDefaultSkin is set correctly in LocalSettings.php

91.43.95.87 (talkcontribs)

Hi,

I got a similar problem after updating to 1.19.1. I do get Fatal error: Cannot instantiate abstract class Skin in /pathtomywiki/includes/Skin.php on line 171. Originally, $wgDefaultSkin was not active in LocalSettings.php (commented out #). I changed that and tried several standard skins (monobook, standard, vector), this did not do any good. So, I'm kind of stuck now. Any hint is greatly appreciated. Uwe

178.25.47.29 (talkcontribs)

I had the same skins problem until just now. As it happens, the /skins folder was missing from the mediawiki installation. Probably from using 1click installs. Fix: Download the proper version from this site.

    Extract the tarball
    find skins folder
    gzip the folder
    upload to server and uncompress to your wiki location.

And just like that, skins folder exists. No more "missing Skin.php" error. I just did this and the wiki works perfect now. I know this particular thread is old, but I'm posting this fix for others who may have the same problem, and stumble on this.

Reply to "[RESOLVED] Skin.php fatalities (Fatal error: Cannot instantiate abstract class Skin)"