Guzzle 更新中断 Mediawiki 1.39.3 LTS - 原因和解决方法是什么?

问题描述 投票:0回答:0

刚刚得到一个:

Fatal error: Declaration of MWCallbackStream::write($string) must be compatible with Psr\Http\Message\StreamInterface::write(string $string): int in /var/www/html/includes/http/MWCallbackStream.php on line 49

在下游表现为一个

Did not get a valid JSON response from the server. Check that you used the correct hostname. If you did, the server might be wrongly configured or experiencing temporary problems.

在我尝试将页面从一个 Mediawiki 复制到另一个时使用的 mwclient 库中。问题出现在某些页面上,我无法确定什么内容可能导致问题的模式,因此调试非常困难并且需要一段时间。

由于致命崩溃,JSON 响应只是空的,这只能通过将 Mediawiki 设置为调试模式来发现:

error_reporting( -1 );
ini_set( 'display_errors', 1 );
$wgShowExceptionDetails=true;

我的问题是:

  1. guzzle 的更新怎么能看似轻易地破坏我的 MediaWiki?
  2. 这种行为的原因是什么?什么是解决方法?
  3. 以后如何避免此类问题?

我没有找到答案 https://phabricator.wikimedia.org/T335073

grep guzzle composer.json 
        "guzzlehttp/guzzle": "7.4.5",
composer-php mediawiki guzzle mwclient
© www.soinside.com 2019 - 2024. All rights reserved.