Mediawiki的无法显示图像或样式 [英] Mediawiki can't display images or styles
问题描述
我真的使用链接到MediaWiki v1.19.1。
我的wiki效果很好,当我在本地使用它。
但是,当我访问它通过网络(从其他计算机或不同的IP),
只显示文本。有没有图像。
这似乎是一个典型的皮肤,但它`不是。
其原因是,有我的维基没有布局(其它公共的wiki页面显示OK)。
我的wiki现在使用的MonoBook皮肤,但我只能看到页面上的文本。
我已经改变了权限777,包括所有目录( /无功/网络/ KJ / *
),
但是,仍然没有图像
帮助我,请...
我得到了同样的问题,前一段时间,为我以下的罚款。
这个问题可能与在的LocalSettings.php 文件和常规设置的 $ wgServer
下面这个链接可以为您提供更多的细节:的$ wgServer <手册/ p>
由于1.18链接到MediaWiki还支持设置的 $ wgServer 以相对协议的URL。
例如, // www.mediawiki.org 的
这是用于通过使用这两个议定书工作环节具有相同的缓存,同时支持HTTP和HTTPS。
因此,尝试删除本地主机并提供您的网址;例如; $ wgServer =//mywebsite.com;
I`m using MediaWiki v1.19.1.
My wiki works well when I use it locally. But when I access it over the network (from another computer, or a different IP), it displays the text only. There are no images.
It seems like a classic skin but it`s not. The reason is that there is no layout on my wiki (other public wiki pages show ok).
My wiki uses the monobook skin now, but I can see only the text on the page.
I have changed the permission to 777, including on all directories (/var/www/kj/*
),
but still no images.
Help me, please...
I got the same issue some time ago and the following worked fine for me. The issue might be related to the LocalSettings.php file and the general setting $wgServer.
The following link can provide you more details : Manual of $wgServer
Since 1.18 MediaWiki has also supported setting $wgServer to a protocol-relative URL.
eg, //www.mediawiki.org
This is used for supporting both HTTP and HTTPS with the same caches by using links that work under both protocols.
So try removing localhost and provide your URL; eg ; $wgServer = "//mywebsite.com";
这篇关于Mediawiki的无法显示图像或样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!