Topic on Extension talk:MsUpload

Error: Request failed and Error: -200

9
80.147.181.162 (talkcontribs)

Hi!

I am using mediawiki 1.24.2 and MsUpload 10

When I drop an image into the drop area I see "Error: Request failed. undefined" Then, when I press "Click here to upload file" I get "Error: -200, Message: HTTP Error., File: bla.png"

I run a wiki farm with a shared code base, so there is some fiddling and rewriting with urls, maybe this is the problem. But, what do these messages actually mean - where can I look?

TIA, Ralf

204.101.249.162 (talkcontribs)

Also seeing the same thing myself. I haven't been able to debug the issue yet, did you uncover anything?

79.249.132.130 (talkcontribs)

I have the same problem. I enabled all kinds of debug and error logging but the upload still fails with a http error 500 with the uploader displaying the above error code. No error is logged, not even some debugging information. I have also replaced Plupload with the most current version without success.


MediaWiki 1.23.6 PHP 5.3.26 (cgi-fcgi) MySQL 5.6.19-67.0-log

5.78.227.190 (talkcontribs)

i have the same problem but when i clicked upload a long error apears . and when i go to upload file page , my file which get error , exists . i use link of my file to insert to my article .

also uninstall extension and update database dont work

what can i do so ?

2804:7F4:3382:5E4A:0:0:0:2 (talkcontribs)

Someone knows how to fix it?

2601:204:E100:67E3:C488:1C8E:B23D:8847 (talkcontribs)

I've found that this error occurs when using MSUpload for users, but not for bureaucrats or administrators. Users have upload permissions and can use the traditional upload process and the one in WikiEditor. I don't know how to fix it, but it's got something to do with a permissions check.

Actiuinformatica (talkcontribs)

MsUpload: REL1_33
MediaWiki: 1.33.0
php_admin_value post_max_size 20M
php_admin_value upload_max_filesize 10M
php_admin_value max_input_time 1200
php_admin_value max_execution_time 1200
'webm' is included to $wgFileExtensions array at LocalSettings.php
$wgEnableUploads = true;
$wgGroupPermissions['user']['upload'] = true;
Uploader user account is member of: bureaucrat,interface-admin,sysop
Just when I select 8MiB file to upload:

Error: Request failed



Anyway I press "Upload this file" and upload begins. When percent inficator it reaches near 99%:

Error -200, HTTP Error., File: MyVideo.webm


Nothing reported at apache_error.log and php_error.log

The main problem for me is lack of details about error, to allow debugging.
I've got different results depending on Internet upload bandwidth and usage. I suspect this may be due to a bad upload stream/packets management by script, because other CMS' uploader scripts aren't giving me this problem with big files.

193.26.34.12 (talkcontribs)

I have exactly the same issue (I had installed the extension today). After dragging a small jpg file to the editor area I get 'Error: Request failed' and after pressing 'Upload this file' I get 'Error -200, HTTP Error., File: 2FactorError1.JPG'. Does anybody know how to resolve this issue? (Uploading the file via the special page is working).

193.26.34.12 (talkcontribs)

This is how I resolved the issue:

- open developer tools in Chrome browser => in log there was an HTTP error with a call to <WIKIROOT>/api.php

- on server add the following lines in LocalSettings.php

error_reporting( -1 );

ini_set( 'display_errors', 1 );

- make a call in browser with URL <WIKIROOT>/api.php => shows error that bcmath for PHP was missing

- installing bcmath on server and restart Apache

- everything fine and Msupload works :-)