Mediawiki 1.26.2 - 样式表未 working/loading
Mediawiki 1.26.2 - Stylesheet not working/loading
我已经下载并安装了Mediawiki 最新版本1.26.2。在此版本中,样式表不是 working/loading。在安装在同一台服务器上的 Mediawiki 的旧版本 (1.23.5) 中,它工作正常。我已经多次检查 LocalSettings.php 文件,一切似乎都很好。
有人面临同样的问题吗?
编辑 - 添加更多详细信息以使我的问题更清楚
Mediawiki 1.26.2 站点作为目录部署在 IIS 下的网站中(Windows 2012 服务器)。在同一个网站中,Mediawiki 1.23.5 部署在不同的目录下。 Mediawiki 1.23.5 样式表有效。但是对于 1.26.2 它没有。
这是部署配置的快照。
我还尝试在新网站“MediawikiNew”下部署 Mediawiki 1.26.2,以确保网站内的目录不会产生任何问题。但仍然没有用。
我尝试了 http 和 https 协议,但没有任何区别。
我在这里提到我的 LocalSettings.php Mediawiki 1.26.2 文件(当部署在网站内的目录下时)
<?php
# This file was automatically generated by the MediaWiki 1.26.2
# installer. If you make manual changes, please keep track in case you
# need to recreate them later.
#
# See includes/DefaultSettings.php for all configurable settings
# and their default values, but don't forget to make changes in _this_
# file, not there.
#
# Further documentation for configuration settings may be found at:
# https://www.mediawiki.org/wiki/Manual:Configuration_settings
# Protect against web entry
if ( !defined( 'MEDIAWIKI' ) ) {
exit;
}
## Uncomment this to disable output compression
# $wgDisableOutputCompression = true;
$wgSitename = "Mediawiki1.26.2";
## The URL base path to the directory containing the wiki;
## defaults for all runtime URL paths are based off of this.
## For more information on customizing the URLs
## (like /w/index.php/Page_title to /wiki/Page_title) please see:
## https://www.mediawiki.org/wiki/Manual:Short_URL
$wgScriptPath = "/mediawiki-1.26.2";
$wgScriptExtension = ".php";
## The protocol and server name to use in fully-qualified URLs
$wgServer = "http://localhost/";
## The URL path to static resources (images, scripts, etc.)
$wgResourceBasePath = $wgScriptPath;
## The URL path to the logo. Make sure you change this from the default,
## or else you'll overwrite your logo when you upgrade!
$wgLogo = "$wgResourceBasePath/resources/assets/wiki.png";
## UPO means: this is also a user preference option
$wgEnableEmail = true;
$wgEnableUserEmail = true; # UPO
$wgEmergencyContact = "apache@bp1amsapt221.cloudapp.net";
$wgPasswordSender = "apache@bp1amsapt221.cloudapp.net";
$wgEnotifUserTalk = false; # UPO
$wgEnotifWatchlist = false; # UPO
$wgEmailAuthentication = true;
## Database settings
$wgDBtype = "mysql";
$wgDBserver = "<secret>";
$wgDBname = "<secret>";
$wgDBuser = "<secret>";
$wgDBpassword = "<secret>";
# MySQL specific settings
$wgDBprefix = "";
# MySQL table options to use during installation or update
$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary";
# Experimental charset support for MySQL 5.0.
$wgDBmysql5 = false;
## Shared memory settings
$wgMainCacheType = CACHE_NONE;
$wgMemCachedServers = array();
## To enable image uploads, make sure the 'images' directory
## is writable, then set this to true:
$wgEnableUploads = true;
#$wgUseImageMagick = true;
#$wgImageMagickConvertCommand = "/usr/bin/convert";
# InstantCommons allows wiki to use images from https://commons.wikimedia.org
$wgUseInstantCommons = false;
## If you use ImageMagick (or any other shell command) on a
## Linux server, this will need to be set to the name of an
## available UTF-8 locale
$wgShellLocale = "en_US.utf8";
## If you want to use image uploads under safe mode,
## create the directories images/archive, images/thumb and
## images/temp, and make them all writable. Then uncomment
## this, if it's not already uncommented:
#$wgHashedUploadDirectory = false;
## Set $wgCacheDirectory to a writable directory on the web server
## to make your wiki go slightly faster. The directory should not
## be publically accessible from the web.
#$wgCacheDirectory = "$IP/cache";
# Site language code, should be one of the list in ./languages/Names.php
$wgLanguageCode = "en";
$wgSecretKey = "3e7c50e485e082453ec47a29c70ffd76925bbe00d0185058a870ef474bb71f55";
# Site upgrade key. Must be set to a string (default provided) to turn on the
# web installer while LocalSettings.php is in place
$wgUpgradeKey = "dbdeb53536b08e21";
## For attaching licensing metadata to pages, and displaying an
## appropriate copyright notice / icon. GNU Free Documentation
## License and Creative Commons licenses are supported so far.
$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright
$wgRightsUrl = "";
$wgRightsText = "";
$wgRightsIcon = "";
# Path to the GNU diff3 utility. Used for conflict resolution.
$wgDiff3 = "";
## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'vector', 'monobook':
$wgDefaultSkin = "vector";
# Enabled skins.
# The following skins were automatically enabled:
wfLoadSkin( 'CologneBlue' );
wfLoadSkin( 'Modern' );
wfLoadSkin( 'MonoBook' );
wfLoadSkin( 'Vector' );
# Enabled Extensions. Most extensions are enabled by including the base extension file here
# but check specific extension documentation for more details
# The following extensions were automatically enabled:
wfLoadExtension( 'Cite' );
wfLoadExtension( 'Gadgets' );
wfLoadExtension( 'ImageMap' );
wfLoadExtension( 'InputBox' );
wfLoadExtension( 'Nuke' );
wfLoadExtension( 'ParserFunctions' );
wfLoadExtension( 'PdfHandler' );
wfLoadExtension( 'Renameuser' );
wfLoadExtension( 'SyntaxHighlight_GeSHi' );
wfLoadExtension( 'WikiEditor' );
# End of automatically generated settings.
# Add more configuration options below.
我已经解决了这个问题。问题是 PHP.exe 没有对在应用程序执行期间创建临时文件的临时文件夹的写入权限。这对旧版本的 MediaWiki(例如 - MediaWiki-1.23.5)没问题。然而,由于这个问题,最新版本(例如 - Mediawiki-1.26.2)不会加载样式。
我在 MediaWiki 支持的帮助下解决了这个问题。
在此处发布解决方案,以帮助其他人。
此版本试图将文件写入临时文件夹,但没有权限,因此无法正常工作。
解决方法:
授予 C:\Windows\Temp
完全权限
我已经下载并安装了Mediawiki 最新版本1.26.2。在此版本中,样式表不是 working/loading。在安装在同一台服务器上的 Mediawiki 的旧版本 (1.23.5) 中,它工作正常。我已经多次检查 LocalSettings.php 文件,一切似乎都很好。
有人面临同样的问题吗?
编辑 - 添加更多详细信息以使我的问题更清楚
Mediawiki 1.26.2 站点作为目录部署在 IIS 下的网站中(Windows 2012 服务器)。在同一个网站中,Mediawiki 1.23.5 部署在不同的目录下。 Mediawiki 1.23.5 样式表有效。但是对于 1.26.2 它没有。
这是部署配置的快照。
我还尝试在新网站“MediawikiNew”下部署 Mediawiki 1.26.2,以确保网站内的目录不会产生任何问题。但仍然没有用。
我尝试了 http 和 https 协议,但没有任何区别。
我在这里提到我的 LocalSettings.php Mediawiki 1.26.2 文件(当部署在网站内的目录下时)
<?php
# This file was automatically generated by the MediaWiki 1.26.2
# installer. If you make manual changes, please keep track in case you
# need to recreate them later.
#
# See includes/DefaultSettings.php for all configurable settings
# and their default values, but don't forget to make changes in _this_
# file, not there.
#
# Further documentation for configuration settings may be found at:
# https://www.mediawiki.org/wiki/Manual:Configuration_settings
# Protect against web entry
if ( !defined( 'MEDIAWIKI' ) ) {
exit;
}
## Uncomment this to disable output compression
# $wgDisableOutputCompression = true;
$wgSitename = "Mediawiki1.26.2";
## The URL base path to the directory containing the wiki;
## defaults for all runtime URL paths are based off of this.
## For more information on customizing the URLs
## (like /w/index.php/Page_title to /wiki/Page_title) please see:
## https://www.mediawiki.org/wiki/Manual:Short_URL
$wgScriptPath = "/mediawiki-1.26.2";
$wgScriptExtension = ".php";
## The protocol and server name to use in fully-qualified URLs
$wgServer = "http://localhost/";
## The URL path to static resources (images, scripts, etc.)
$wgResourceBasePath = $wgScriptPath;
## The URL path to the logo. Make sure you change this from the default,
## or else you'll overwrite your logo when you upgrade!
$wgLogo = "$wgResourceBasePath/resources/assets/wiki.png";
## UPO means: this is also a user preference option
$wgEnableEmail = true;
$wgEnableUserEmail = true; # UPO
$wgEmergencyContact = "apache@bp1amsapt221.cloudapp.net";
$wgPasswordSender = "apache@bp1amsapt221.cloudapp.net";
$wgEnotifUserTalk = false; # UPO
$wgEnotifWatchlist = false; # UPO
$wgEmailAuthentication = true;
## Database settings
$wgDBtype = "mysql";
$wgDBserver = "<secret>";
$wgDBname = "<secret>";
$wgDBuser = "<secret>";
$wgDBpassword = "<secret>";
# MySQL specific settings
$wgDBprefix = "";
# MySQL table options to use during installation or update
$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary";
# Experimental charset support for MySQL 5.0.
$wgDBmysql5 = false;
## Shared memory settings
$wgMainCacheType = CACHE_NONE;
$wgMemCachedServers = array();
## To enable image uploads, make sure the 'images' directory
## is writable, then set this to true:
$wgEnableUploads = true;
#$wgUseImageMagick = true;
#$wgImageMagickConvertCommand = "/usr/bin/convert";
# InstantCommons allows wiki to use images from https://commons.wikimedia.org
$wgUseInstantCommons = false;
## If you use ImageMagick (or any other shell command) on a
## Linux server, this will need to be set to the name of an
## available UTF-8 locale
$wgShellLocale = "en_US.utf8";
## If you want to use image uploads under safe mode,
## create the directories images/archive, images/thumb and
## images/temp, and make them all writable. Then uncomment
## this, if it's not already uncommented:
#$wgHashedUploadDirectory = false;
## Set $wgCacheDirectory to a writable directory on the web server
## to make your wiki go slightly faster. The directory should not
## be publically accessible from the web.
#$wgCacheDirectory = "$IP/cache";
# Site language code, should be one of the list in ./languages/Names.php
$wgLanguageCode = "en";
$wgSecretKey = "3e7c50e485e082453ec47a29c70ffd76925bbe00d0185058a870ef474bb71f55";
# Site upgrade key. Must be set to a string (default provided) to turn on the
# web installer while LocalSettings.php is in place
$wgUpgradeKey = "dbdeb53536b08e21";
## For attaching licensing metadata to pages, and displaying an
## appropriate copyright notice / icon. GNU Free Documentation
## License and Creative Commons licenses are supported so far.
$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright
$wgRightsUrl = "";
$wgRightsText = "";
$wgRightsIcon = "";
# Path to the GNU diff3 utility. Used for conflict resolution.
$wgDiff3 = "";
## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'vector', 'monobook':
$wgDefaultSkin = "vector";
# Enabled skins.
# The following skins were automatically enabled:
wfLoadSkin( 'CologneBlue' );
wfLoadSkin( 'Modern' );
wfLoadSkin( 'MonoBook' );
wfLoadSkin( 'Vector' );
# Enabled Extensions. Most extensions are enabled by including the base extension file here
# but check specific extension documentation for more details
# The following extensions were automatically enabled:
wfLoadExtension( 'Cite' );
wfLoadExtension( 'Gadgets' );
wfLoadExtension( 'ImageMap' );
wfLoadExtension( 'InputBox' );
wfLoadExtension( 'Nuke' );
wfLoadExtension( 'ParserFunctions' );
wfLoadExtension( 'PdfHandler' );
wfLoadExtension( 'Renameuser' );
wfLoadExtension( 'SyntaxHighlight_GeSHi' );
wfLoadExtension( 'WikiEditor' );
# End of automatically generated settings.
# Add more configuration options below.
我已经解决了这个问题。问题是 PHP.exe 没有对在应用程序执行期间创建临时文件的临时文件夹的写入权限。这对旧版本的 MediaWiki(例如 - MediaWiki-1.23.5)没问题。然而,由于这个问题,最新版本(例如 - Mediawiki-1.26.2)不会加载样式。
我在 MediaWiki 支持的帮助下解决了这个问题。
在此处发布解决方案,以帮助其他人。
此版本试图将文件写入临时文件夹,但没有权限,因此无法正常工作。
解决方法: 授予 C:\Windows\Temp
完全权限