MediaWiki扩展兼容性“上游发送过大标题”错误

时间:2017-02-14 21:00:54

标签: php nginx mediawiki

我有MediaWiki 1.28,PHP 7.1.1,php-fpm,nginx 1.10.3和arch linux。

Mediawiki称它与php 7兼容,但与PHP 7.1.1不完全兼容。但是,我相信的错误是PHP 5.3兼容性问题。我正在为我的mediawiki扩展获得PHP“预期成为参考”的警告。它们默认安装在MediaWiki 1.28安装中。

我不知道不兼容性会在多大程度上影响我的安装或适当的解决方案。

我得到一个nginx“上游标题太大”的错误导致某些页面的502响应:

  

当我登录并尝试访问某些网址时   /MediaWiki:Common.css或   Index.php?title=Special:Search&search=Common.css&fulltext=Search&profile=all   然后我收到502响应。如果我在退出时访问这些网址,   他们恢复正常200.我通过这篇文章的建议解决了它:upstream sent too big header while reading response header from upstream

PHP兼容性问题是php-fpm缓冲区问题的原因吗?我应该降级到php 7还是可以修改扩展名?我的扩展程序是否可以更新,因为已经执行了此错误修复?

这是运行php文件的nginx块:

location ~ \.php$ {
   include /etc/nginx/fastcgi_params;
   fastcgi_buffers 16 16k; # Added this fix
   fastcgi_buffer_size 32k; # Added this fix
   fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
   fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
   fastcgi_param  QUERY_STRING $query_string;
   fastcgi_index /index.php;
}

还有一些日记:

Feb 12 18:51:09 hochine nginx[5471]: 2017/02/12 18:51:09 [error] 5474#5474: *115 FastCGI sent in stderr: "PHP message: PHP Warning:  Parameter 1 to CiteHooks::onResourceLoaderRegisterModules() expected to be a reference, value given in /usr/share/webapps/mediawiki/includes/Hooks.php on line 195" while reading response header from upstream, client: 127.0.0.1, server: mediawiki, request: "GET /load.php?debug=false&lang=en&modules=ext.pygments%7Cmediawiki.legacy.commonPrint%2Cshared%7Cmediawiki.sectionAnchor%7Cmediawiki.skinning.interface%7Cskins.vector.styles&only=styles&skin=vector HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:", host: "localhost", referrer: "http://localhost/wiki/MediaWiki:Common.css"
Feb 12 18:51:26 hochine nginx[5471]: 2017/02/12 18:51:26 [error] 5474#5474: *134 FastCGI sent in stderr: "PHP message: PHP Warning:  Parameter 1 to Poem::init() expected to be a reference, value given in /usr/share/webapps/mediawiki/includes/Hooks.php on line 195
Feb 12 18:51:26 hochine nginx[5471]: PHP message: PHP Warning:  Parameter 1 to SyntaxHighlight_GeSHi::onParserFirstCallInit() expected to be a reference, value given in /usr/share/webapps/mediawiki/includes/Hooks.php on line 195
Feb 12 18:51:26 hochine nginx[5471]: PHP message: PHP Warning:  Parameter 1 to Cite::clearState() expected to be a reference, value given in /usr/share/webapps/mediawiki/includes/Hooks.php on line 195
Feb 12 18:51:26 hochine nginx[5471]: PHP message: PHP Warning:  Parameter 2 to Cite::checkRefsNoReferences() expected to be a reference, value given in /usr/share/webapps/mediawiki/includes/Hooks.php on line 195
Feb 12 18:51:26 hochine nginx[5471]: PHP message: PHP Warning:  Parameter 1 to Cite::clearState() expected to be a reference, value given in /usr/share/webapps/mediawiki/includes/Hooks.php on line 195
Feb 12 18:51:26 hochine nginx[5471]: PHP message: PHP Warning:  Parameter 2 to Cite::checkRefsNoReferences() expected to be a reference, value given in /usr/share/webapps/mediawiki/includes/Hooks.php on line 195
Feb 12 18:51:26 hochine nginx[5471]: PHP message: PHP Warning:  Parameter 1 to Cite::clearState() expected to be a reference, value given in /usr
Feb 12 18:51:26 hochine nginx[5471]: 2017/02/12 18:51:26 [error] 5474#5474: *134 upstream sent too big header while reading response header from upstream, client: 127.0.0.1, server: mediawiki, request: "GET /index.php?title=Special:Search&search=Common.css&fulltext=Search&profile=all HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:", host: "localhost"

0 个答案:

没有答案