刚刚得到一个:
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;
我的问题是:
我没有找到答案 https://phabricator.wikimedia.org/T335073
grep guzzle composer.json
"guzzlehttp/guzzle": "7.4.5",