Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/231.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php MediaWiki扩展兼容性“;上游发送的标题太大”;错误_Php_Nginx_Mediawiki - Fatal编程技术网

Php MediaWiki扩展兼容性“;上游发送的标题太大”;错误

Php MediaWiki扩展兼容性“;上游发送的标题太大”;错误,php,nginx,mediawiki,Php,Nginx,Mediawiki,我有MediaWiki 1.28、PHP 7.1.1、PHP fpm、nginx 1.10.3和arch linux Mediawiki表示它与PHP7兼容,但与PHP7.1.1不完全兼容。然而,我得到的错误我相信是PHP5.3兼容性问题。我得到了我的mediawiki扩展的PHP“期望成为参考”警告。它们默认安装在MediaWiki 1.28安装中 我不知道不兼容在多大程度上影响了我的安装,也不知道合适的解决方案是什么 我收到一个nginx“上游头太大”错误,导致一些页面出现502个响应: 当

我有MediaWiki 1.28、PHP 7.1.1、PHP fpm、nginx 1.10.3和arch linux

Mediawiki表示它与PHP7兼容,但与PHP7.1.1不完全兼容。然而,我得到的错误我相信是PHP5.3兼容性问题。我得到了我的mediawiki扩展的PHP“期望成为参考”警告。它们默认安装在MediaWiki 1.28安装中

我不知道不兼容在多大程度上影响了我的安装,也不知道合适的解决方案是什么

我收到一个nginx“上游头太大”错误,导致一些页面出现502个响应:

当我登录并尝试访问某些URL时,如
/MediaWiki:Common.css
Index.php?title=Special:Search&Search=Common.css&fulltext=Search&profile=all
然后我得到了502的回复。如果我在注销时转到这些URL, 他们恢复正常200。我通过这篇帖子的建议解决了这个问题:

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

这是运行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"

你的Cite和SyntaxHighlight_GeSHi是最新的吗?@MaxSem我不知道如何检查。我刚刚用最新版本替换了Cite扩展,它仍然给出警告。