The new forums will be named Coin Return (based on the most recent vote)! You can check on the status and timeline of the transition to the new forums here.
The Guiding Principles and New Rules document is now in effect.

Wiki help needed... Skin.php error.

LukinLukin Registered User regular
edited November 2009 in Help / Advice Forum
I've had this wiki set up for a couple years, kinda forgot about it until recently, so I went back to it to check it out and when you access it, you get this error:
Warning: dir(/mysite.com/wiki/skins) [function.dir]: failed to open dir: No such file or directory in /mysite.com/wiki/includes/Skin.php on line 23

Fatal error: Call to a member function read() on a non-object in /mysite.com/wiki/includes/Skin.php on line 26

I've tried googling this up but all I get are other wikis that have gone down with this error. I haven't changed anything; the site's pretty much gone neglected for awhile. Totally clueless as to what could have happened, so I'm hoping someone else has a clue!

cancer.jpg
Lukin on

Posts

  • JHunzJHunz Registered User regular
    edited November 2009
    What wiki software are you using? What is on line 26 of skin.php?

    JHunz on
    bunny.gif Gamertag: JHunz. R.I.P. Mygamercard.net bunny.gif
  • LukinLukin Registered User regular
    edited November 2009
    It's MediaWiki

    I can't remember, does a file start with line 0 or with line 1? Either way, this is about where line 26 starts.
    # while code from www.php.net
    while (false !== ($file = $skinDir->read())) {
    	if(preg_match('/^([^.].*)\.php$/',$file, $matches)) {
    		$aSkin = $matches[1];
    		$wgValidSkinNames[strtolower($aSkin)] = $aSkin;
    	}
    }
    $skinDir->close();
    unset($matches);
    

    It references $skinDir, which is defined as ./skins/, which does exist and has contents.

    Lukin on
    cancer.jpg
Sign In or Register to comment.