Steps to replicate the issue (include links if applicable):
- MW 1.39/1.43 installed as Docker image (VisualEditor extension is part of the installation)
- DataTransfer extension is installed
- Upload a new image in VisualEditor
What happens?:
The PHP Invalid response from the server error occurs:
[06-Feb-2025 09:33:40 Europe/Berlin] PHP Fatal error: Declaration of Wikimedia\ParamValidator\Util\UploadedFile::getStream() must be compatible with Psr\Http\Message\UploadedFileInterface::getStream(): Psr\Http\Message\StreamInterface in /var/www/html/includes/libs/ParamValidator/Util/UploadedFile.php on line 86
What should have happened instead?:
The file should be uploaded without error. A similar issue has been reported before [1] and the solution was to add the missing psr/http-message 1.0.1 in
composer.json. But this is not the issue here, psr/http-message 1.1 is already there.
It seems in this case it is related to the DataTransfer extension, when this extension is removed, the error doesn't occur.
[1] https://www.mediawiki.org/wiki/Topic:Xjj6gknk25b9jeyr
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Either MW 1.39 & Data Transfer 1.4 or MW 1.43 & Data Transfer 1.6.1
Other information (browser name/version, screenshots, etc.):