Extension talk:MsUpload

Jump to navigation Jump to search

About this board

This board is for discussion about MsUpload. Don't forget that you can also report issues relating to this extension on Phabricator, at #mediawiki-extensions-msupload.

Moscowdreams (talkcontribs)

this program is showing up on special:version but it does not currently show up on the page, any help please?

Sophivorus (talkcontribs)

Is your wiki public? Can you post a link to it?

Reply to "does not work with mediawiki 1.33"

Can this work with the Visual Editor?

4
Thedonquixotic (talkcontribs)

The wikieditor is not bad but I prefer using the VisualEditor. Is it possible to use this extension in conjunction with it?

Sophivorus (talkcontribs)

Not really, and there're no plans for it, for now.

Thedonquixotic (talkcontribs)

@SophivorusSeems it would be unnecessary as the functionality is in Visual Editor already according to this ticket: https://phabricator.wikimedia.org/T39932

Though in reality the functionality is not working as intended so I have filed a ticket here: https://phabricator.wikimedia.org/T208631

If you or any other devs on the MsUpload project would have some insight on fixing this issue that would be much appreciated I'm sure. Though I'm pretty clueless on this stuff so maybe it's not something people care about on the visual editor etc

Sophivorus (talkcontribs)

Modifying MsUpload to work with the Visual Editor would require huge changes. It seems to me that the best way forward would be to fix the Visual Editor bug. The first ticket you linked had an amazingly positive response, so don't lose hope on the second one just yet!

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 :-)

Reply to "Error: Request failed and Error: -200"

setting up MediaWiki on new server

2
Paperlessnow (talkcontribs)

I setup new instance of MediaWiki server on Linux. And copied all files and imported db file to this server. It was working.


Now today when I did the same I get following error:


[7f7385fdb49e4ad3c6e80aa1] /index.php/Main_Page MWException from line 187 of /opt/bitnami/mediawiki/includes/MagicWord.php: Error: invalid magic word 'idisplay'

Backtrace:

#0 /opt/bitnami/mediawiki/includes/MagicWordFactory.php(222): MagicWord->load(string)

#1 /opt/bitnami/mediawiki/includes/parser/Parser.php(4958): MagicWordFactory->get(string)

#2 /bitnami/mediawiki/extensions/iDisplay/iDisplay.php(25): Parser->setFunctionHook(string, string)

#3 /opt/bitnami/mediawiki/includes/Hooks.php(174): idisplay_Setup(Parser)

#4 /opt/bitnami/mediawiki/includes/Hooks.php(202): Hooks::callHook(string, array, array, NULL)

#5 /opt/bitnami/mediawiki/includes/parser/Parser.php(384): Hooks::run(string, array)

#6 /opt/bitnami/mediawiki/includes/cache/MessageCache.php(1210): Parser->firstCallInit()

#7 /opt/bitnami/mediawiki/includes/cache/MessageCache.php(1186): MessageCache->getParser()

#8 /opt/bitnami/mediawiki/includes/Message.php(1291): MessageCache->transform(string, boolean, LanguageEn, Title)

#9 /opt/bitnami/mediawiki/includes/Message.php(895): Message->transformText(string)

#10 /opt/bitnami/mediawiki/includes/Message.php(955): Message->toString(string)

#11 /opt/bitnami/mediawiki/includes/OutputPage.php(902): Message->text()

#12 /opt/bitnami/mediawiki/includes/OutputPage.php(951): OutputPage->setHTMLTitle(Message)

#13 /opt/bitnami/mediawiki/includes/page/Article.php(621): OutputPage->setPageTitle(string)

#14 /opt/bitnami/mediawiki/includes/actions/ViewAction.php(68): Article->view()

#15 /opt/bitnami/mediawiki/includes/MediaWiki.php(499): ViewAction->show()

#16 /opt/bitnami/mediawiki/includes/MediaWiki.php(294): MediaWiki->performAction(Article, Title)

#17 /opt/bitnami/mediawiki/includes/MediaWiki.php(865): MediaWiki->performRequest()

#18 /opt/bitnami/mediawiki/includes/MediaWiki.php(515): MediaWiki->main()

#19 /opt/bitnami/mediawiki/index.php(42): MediaWiki->run()

#20 {main}


Till now I was able to take a backup and recreate successfully in other server. But this error has terrorised me.


I try to put latest package of iDisplay extension. still same issue.

Kghbln (talkcontribs)

I am not absolutely sure why you are reporting the issue here for the MsUpload extension and not for the iDisplay extension. Anyways the latter has not been maintained for a while and no longer works. I recommend to uninstall it and use the "iframe" widget provided by the Widgets extension. This should make the issue go away - hopefully.

Reply to "setting up MediaWiki on new server"

Images don't get added to a category

2
Pangaearocks (talkcontribs)

The MsUpload has been added to the wiki, and everything about uploading multiple files simultaneously works as advertised. However, images don't get automatically added to the category when editing a category and uploading files to it. What settings must be changed, if any, to enable this on the wiki?


The wiki in question (for the game [https://rimworldwiki.com RimWorld]) uses MediaWiki 1.31.0 ~~~~

Pangaearocks (talkcontribs)

Update: The admin managed to solve the issue with categorisation of images (it showed up as 12.0 before, and now it is 13.1), but another similar one has cropped up. When I upload an image that already exists, thus creating a new ''version'' instead of a new ''file'', the category is not added to the file itself. See for instance here for an example (that I manually fixed afterwards, see "View history"). The category is added to the file comments, but not the actual file (I hope that makes sense).


Is it possible to fix this by changing some settings, either related to the MsUpload extension, or more generally?

Reply to "Images don't get added to a category"
188.107.93.166 (talkcontribs)

Is it possible to adjust the "insert all as gallery"?

If I click on it there only appeares

<gallery></gallery>


Is it possible to adjust this setting? For example:

<gallery mode="packed" class="center centered" widths="200px" heights="180px"></gallery>


So if I click on it this comes out automatically?

Samwilson (talkcontribs)

Not at the moment, but feel free to open a feature request on Phabricator. I'm not sure how the interface could look for it.

One fix for this could be to change your wiki's default values for these options via $wgGalleryOptions.

Jongfeli (talkcontribs)
Samwilson (talkcontribs)

Sorry, your PR must have been overlooked! I've replied on Github.

Reply to ""Insert all as gallery""

Uploads fail, "Error: -200, Message: HTTP Error."

3
ZigzagGIS (talkcontribs)

Whenever I try to upload a file (or multiple files), I get the same error every time:

Error: -200, Message: HTTP Error., File: ....

Solution

Add following lines to your LocalSettings.php:

$wgEnableAPI = true;
$wgEnableWriteAPI = true;
Beta11 (talkcontribs)

Hi,


I am getting the same error while uploading a huge file through MS Upload. Have checked the file upload size limit as well and there is no issue there. The file being uploaded is within the upload capacity.

Also, the lines mentioned in the Solution above are present in Local Settings file. How can this be resolved?

Thanks

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

I was struggling with this for a while. The problem was that I had allowed the @ symbol in user names, and I think that may have messed with the http request used my msupload on users' personal pages. I used the RenameUser extension to omit the end of the email addresses in the user names, no more error 200.

Reply to "Uploads fail, "Error: -200, Message: HTTP Error.""

Insert links don't work after MW upgrade

2
2600:1700:290:164F:6167:6E32:E2E6:EACF (talkcontribs)

We recently upgraded to 1.32.0 from 1.30 and the Insert link and Insert as image links no longer work. Clicking either generates the following in the console in Chrome:

load.php?debug=false&lang=en&modules=ext.MsUpload|jquery%2Coojs-ui-core%2Coojs-ui-widgets|oojs-ui.styles.icons-editing-advanced&skin=vector&version=1gut54l:121

Uncaught TypeError: Cannot read property 'insertTags' of undefined

    at HTMLAnchorElement.<anonymous> (load.php?debug=false&lang=en&modules=ext.MsUpload|jquery%2Coojs-ui-core%2Coojs-ui-widgets|oojs-ui.styles.icons-editing-advanced&skin=vector&version=1gut54l:121)

    at HTMLAnchorElement.dispatch (load.php?debug=false&lang=en&modules=ext.MsUpload|jquery%2Coojs-ui-core%2Coojs-ui-widgets|oojs-ui.styles.icons-editing-advanced&skin=vector&version=1gut54l:193)

    at HTMLAnchorElement.elemData.handle (load.php?debug=false&lang=en&modules=ext.MsUpload|jquery%2Coojs-ui-core%2Coojs-ui-widgets|oojs-ui.styles.icons-editing-advanced&skin=vector&version=1gut54l:189)


We're running fairly vanilla with only ClipUpload, MsUpload, Widgets, and Iframe extensions added.

Sophivorus (talkcontribs)

So did you DOWNGRADE to 1.30? If so, then maybe you can try checking out the 1.30 branch of MsUpload, with the following command:

cd extensions/MsUpload
git checkout -b REL1_31 origin/REL1_31
Reply to "Insert links don't work after MW upgrade"
Xzj.nc (talkcontribs)

I install wysiwyg first, and then msupload. but in the edit page, I can't find msupload icon.

in my other mediawiki, i don't install wysiwyg, msupload is ok.

my mediawikiwiki version is 1.31.

thanks for your help!

Reply to "msupload don't work with wysiwyg"

MsUpload is asking me to rename the files to upload

11
Paperlessnow (talkcontribs)

IMG_7096.MOV5.2 mbThe name of the file you are uploading begins with "IMG", which is a non-descriptive name typically assigned automatically by digital cameras. Please choose a more descriptive name for your file.

and upload button will not appear.


I am uploading files in a bulk, and there will be k of files, to be uploaded and so want to ignore this and upload with their original names.

How to enable ignore this warning and upload with whatever is the current names are.

Samwilson (talkcontribs)

The banned prefixes are defined in a wiki's MediaWiki:Filename-prefix-blacklist system message, so you can just edit that page on your wiki and it'll allow you to upload whatever you fancy.

Paperlessnow (talkcontribs)

How to locate this page?

I looked into SpecialPages: but could not find this page on my wiki. can you guide me to locate that?

Paperlessnow (talkcontribs)
Paperlessnow (talkcontribs)
Samwilson (talkcontribs)

You don't need to translate it on TranslateWiki, you just need to change it on your own wiki. To do that, you need to be logged in as an administrator (or a member of any user group with the editinterface right).

Paperlessnow (talkcontribs)

Let me know if this is right place:

I modified / commented out the same in $IP/languages/i18n/en.json file.

Samwilson (talkcontribs)

No, you shouldn't modify any file.

You had it right before: you need to edit https://localhost/index.php?title=MediaWiki:Filename-prefix-blacklist&action=edit and take out the lines that you don't want. That message about TranslateWiki is saying that if you want to change a translation for all wikis, then you need to go there; otherwise, if you're just changing it for the current wiki, you can edit that page directly.

Paperlessnow (talkcontribs)

But it is uneditable. Just allows me to view source and copy the source. Not edit.

Samwilson (talkcontribs)

Are you logged in as an administrator?

Paperlessnow (talkcontribs)

I created only one account that is me.

Reply to "MsUpload is asking me to rename the files to upload"