Topic on Project:Support desk

118.31.32.214 (talkcontribs)

Warning: md5_file(C:\inetpub\wwwroot/../wiki.png): failed to open stream: No such file or directory in C:\inetpub\wwwroot\includes\OutputPage.php on line 3802

Warning: OutputPage::transformFilePath: Failed to hash C:\inetpub\wwwroot/../wiki.png [Called from OutputPage::transformFilePath in C:\inetpub\wwwroot\includes\OutputPage.php at line 3804] in C:\inetpub\wwwroot\includes\debug\MWDebug.php on line 309

Osnard (talkcontribs)

Can you please provide additional information about those warnings? Like used MediaWiki and PHP version?

Ciencia Al Poder (talkcontribs)

Have you checked if "C:\inetpub\wwwroot/../wiki.png" exists on your wiki? Looks like you've some wrongly configured path in LocalSettings.php

27.154.139.228 (talkcontribs)

windows server 2012 64

Web server:IIS

MediaWiki 1.29.1
PHP 7.1.10 (cgi-fcgi)
MySQL 5.6.15
ICU 57.1
27.154.139.228 (talkcontribs)

These warnings are not the point

MediaWiki can be used normally

Mainly can not show the skin

2003:CC:ABD6:D300:780C:EB93:EEAF:B879 (talkcontribs)

Where are you using wiki.png? IS that the logo file?

And: Have you configured that logo file in some path variables in LocalSettings.php? E.g.: What is the value of $wgLogo?

118.31.32.214 (talkcontribs)

$wgLogo = "$wgScriptPath/wiki.png";

Modify to

$wgLogo = "$wgScriptPath/images/wiki.png";

No more warning now;But it still can't show the skin

2003:CC:ABD6:D300:E0C0:4FBE:C800:7153 (talkcontribs)

What is the value of $wgScriptPath?

And: Is your wiki public? If so: What is its URL?

118.31.32.214 (talkcontribs)

$wgScriptPath is the default

$wgScriptPath = "";

---

Every time I reset LocalSettings.php, my Wiki's skin can be displayed normally

But it's always about 5 minutes, and the skin doesn't show

星耀晨曦 (talkcontribs)

No, $wgScriptPath default value is '/wiki' (see Manual:$wgScriptPath). If you set $wgScriptPath = "";, this config will overwrite the default value into an empty string.