Topic on Extension talk:SimpleBatchUpload

Server communication failed

5
Summary last edited by MyWikis-JeffreyWang 07:05, 8 December 2020 3 years ago

SimpleBatchUpload seems not to play well with MW 1.31.1 + PHP 7.3. Fixed with MediaWiki 1.31.10 + PHP 7.4.

FrugalTPH (talkcontribs)

I keep experiencing an ERROR: Server communication failed, for any file I try to upload. I can upload the files in question successfully using the default mw file uploader, though. Any idea what could be causing this?

I have the following set in my Localsettings.php: $wgEnableUploads = true; $wgEnableWriteAPI = true;

F.trott (talkcontribs)

No idea, unfortunately.

FrugalTPH (talkcontribs)

Thanks for getting back to me. I actually resolved this myself last week.

The issue was my shared hosting was set to use PHP7.3, and I my wiki is on version 1.31.1, which had some known bugs regarding PHP7.3. I tried updating to mw 1.31.4 & 1.31.5 (which apparently have fixed the bugs), but then I had other compatibility issues involving other extensions. In the end I rolled back to 1.31.1, and changed my server's PHP version to 7.0, which seems to be better supported on the whole.

Madrigal84 (talkcontribs)

Our group has been using Extension:SimpleBatchUpload (1.5.0) extensively, but unfortunately we are running into an issue where files are uploaded but fail to be written as a row in the **_fileData** MW db table or saved to our Cargo db table. To the end user error appears as red highlighted text: ERROR: Server communication failed. We have checked our web server logs during uploads but cannot identify any server issues. Currently running MediaWiki 1.31.1, PHP 7.2.11 (apache2handler). Thank you for your help.

MyWikis-JeffreyWang (talkcontribs)

PHP 7.4 + MediaWiki 1.31.0 was broken. Upgrading to 1.31.10 fixed it.