我的 mediawiki 安装有问题。某些网站无法正确加载。我已经阅读了好几个小时的错误帖子,但找不到适合我的解决方案。大多数网站工作正常:
在“编辑”站点格式中断处: 编辑页面
警告翻译:使用源脚本加载失败 ....
警告和错误出现在所有站点上。
URL/load.php 给了我这个:
/* This file is the Web entry point for MediaWiki's ResourceLoader:
<https://www.mediawiki.org/wiki/ResourceLoader>. In this request,
no modules were requested. Max made me put this here. */
本地设置.php:
<?php
if ( !defined( 'MEDIAWIKI' ) ) {
exit;
}
$wgSitename = "Some_Name";
$wgScriptPath = "";
$wgServer = "http://wiki.intern.zz";
$wgResourceBasePath = $wgScriptPath;
$wgLogo = "$wgResourceBasePath/resources/assets/wiki.png";
$wgEnableEmail = false;
$wgEnableUserEmail = true; # UPO
$wgEmergencyContact = "apache@wiki.intern.zz";
$wgPasswordSender = "apache@wiki.intern.zz";
$wgEnotifUserTalk = false; # UPO
$wgEnotifWatchlist = false; # UPO
$wgEmailAuthentication = true;
$wgDBtype = "mysql";
$wgDBserver = "localhost";
$wgDBname = "wikidb";
$wgDBuser = "wikiuser";
$wgDBpassword = "7YdLrbOCrtXnOS2FFGzF";
$wgDBprefix = "";
$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary";
$wgDBmysql5 = false;
$wgMainCacheType = CACHE_ACCEL;
$wgMemCachedServers = [];
$wgEnableUploads = true;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";
$wgUseInstantCommons = false;
$wgPingback = false;
$wgShellLocale = "en_US.utf8";
#$wgCacheDirectory = "$IP/cache";
$wgLanguageCode = "de";
$wgSecretKey="46c344c2c3d7af5f4210a0ead3f30002075087328e91aeece74cd086f22bbbb6";
$wgAuthenticationTokenVersion = "1";
$wgUpgradeKey = "d585d23ed115e0bd";
$wgRightsPage = "";
$wgRightsUrl = "";
$wgRightsText = "";
$wgRightsIcon = "";
$wgDiff3 = "/usr/bin/diff3";
$wgDefaultSkin = "vector";
wfLoadSkin( 'CologneBlue' );
wfLoadSkin( 'Modern' );
wfLoadSkin( 'MonoBook' );
wfLoadSkin( 'Vector' );
$wgShowExceptionDetails = TRUE;
nginx.conf:
server{
listen 80;
root /data/www/mediawiki;
index index.php
server_name wiki.intern.zz;
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi.conf;
include fastcgi_params;
}
}
}
缓存总是被清除。
操作系统是带有 Nginx 和 php-fpm 的 Alpine Linux。
/tmp 文件夹是可写的。
Nginx 中没有设置任何重写。
使用的版本是 1.30.0。英语和 1.29.2 相同的错误
如果您需要任何其他信息,请询问。谢谢