Cannot upload images to the Wiki

Started by Chinnery, 18:02, 30 May 18

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Chinnery

I'm attempting to help @The Equalizor with a wiki entry for his Rombo Box, but am stumbling at one of the first steps - uploading an image.


I've tried Chrome (quite anonymised/ad-blocked) and Firefox / ms edge both clean, and get a similar response (as in it doesn't work)


The console output from chrome does suggest an error within the wiki (Sorry for the long output, but the more the merrier when debugging!)


Any advice on this?



load.php?debug=false&lang=en&modules=ext.MsUpload|jquery.async%2CcheckboxShiftClick%2Ccookie%2CgetAttrs%2ChighlightText%2CmakeCollapsible%2Cmw-jump%2Cplaceholder%2Csuggestions|mediawiki.Title%2Capi%2Ccldr%2CconfirmCloseWindow%2Cicon%2CjqueryMsg%2Clanguage%2CsearchSuggest%2Cuser|mediawiki.action.edit.collapsibleFooter%2CeditWarning%2Cstash|mediawiki.api.watch|mediawiki.language.data%2Cinit%2CspecialCharacters|mediawiki.libs.pluralruleparser|mediawiki.page.ready|mediawiki.page.watch.ajax|user.defaults&skin=vector&version=20180530T141043Z&*:64 Uncaught ReferenceError: wgFileExtensions is not defined
    at check_extension (load.php?debug=false&lang=en&modules=ext.MsUpload|jquery.async%2CcheckboxShiftClick%2Ccookie%2CgetAttrs%2ChighlightText%2CmakeCollapsible%2Cmw-jump%2Cplaceholder%2Csuggestions|mediawiki.Title%2Capi%2Ccldr%2CconfirmCloseWindow%2Cicon%2CjqueryMsg%2Clanguage%2CsearchSuggest%2Cuser|mediawiki.action.edit.collapsibleFooter%2CeditWarning%2Cstash|mediawiki.api.watch|mediawiki.language.data%2Cinit%2CspecialCharacters|mediawiki.libs.pluralruleparser|mediawiki.page.ready|mediawiki.page.watch.ajax|user.defaults&skin=vector&version=20180530T141043Z&*:64)
    at g.File.<anonymous> (load.php?debug=false&lang=en&modules=ext.MsUpload|jquery.async%2CcheckboxShiftClick%2Ccookie%2CgetAttrs%2ChighlightText%2CmakeCollapsible%2Cmw-jump%2Cplaceholder%2Csuggestions|mediawiki.Title%2Capi%2Ccldr%2CconfirmCloseWindow%2Cicon%2CjqueryMsg%2Clanguage%2CsearchSuggest%2Cuser|mediawiki.action.edit.collapsibleFooter%2CeditWarning%2Cstash|mediawiki.api.watch|mediawiki.language.data%2Cinit%2CspecialCharacters|mediawiki.libs.pluralruleparser|mediawiki.page.ready|mediawiki.page.watch.ajax|user.defaults&skin=vector&version=20180530T141043Z&*:60)
    at Function.each (load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20150528T130846Z:5)
    at g.Uploader.<anonymous> (load.php?debug=false&lang=en&modules=ext.MsUpload|jquery.async%2CcheckboxShiftClick%2Ccookie%2CgetAttrs%2ChighlightText%2CmakeCollapsible%2Cmw-jump%2Cplaceholder%2Csuggestions|mediawiki.Title%2Capi%2Ccldr%2CconfirmCloseWindow%2Cicon%2CjqueryMsg%2Clanguage%2CsearchSuggest%2Cuser|mediawiki.action.edit.collapsibleFooter%2CeditWarning%2Cstash|mediawiki.api.watch|mediawiki.language.data%2Cinit%2CspecialCharacters|mediawiki.libs.pluralruleparser|mediawiki.page.ready|mediawiki.page.watch.ajax|user.defaults&skin=vector&version=20180530T141043Z&*:60)
    at g.Uploader.trigger (load.php?debug=false&lang=en&modules=ext.MsUpload|jquery.async%2CcheckboxShiftClick%2Ccookie%2CgetAttrs%2ChighlightText%2CmakeCollapsible%2Cmw-jump%2Cplaceholder%2Csuggestions|mediawiki.Title%2Capi%2Ccldr%2CconfirmCloseWindow%2Cicon%2CjqueryMsg%2Clanguage%2CsearchSuggest%2Cuser|mediawiki.action.edit.collapsibleFooter%2CeditWarning%2Cstash|mediawiki.api.watch|mediawiki.language.data%2Cinit%2CspecialCharacters|mediawiki.libs.pluralruleparser|mediawiki.page.ready|mediawiki.page.watch.ajax|user.defaults&skin=vector&version=20180530T141043Z&*:15)
    at o (load.php?debug=false&lang=en&modules=ext.MsUpload|jquery.async%2CcheckboxShiftClick%2Ccookie%2CgetAttrs%2ChighlightText%2CmakeCollapsible%2Cmw-jump%2Cplaceholder%2Csuggestions|mediawiki.Title%2Capi%2Ccldr%2CconfirmCloseWindow%2Cicon%2CjqueryMsg%2Clanguage%2CsearchSuggest%2Cuser|mediawiki.action.edit.collapsibleFooter%2CeditWarning%2Cstash|mediawiki.api.watch|mediawiki.language.data%2Cinit%2CspecialCharacters|mediawiki.libs.pluralruleparser|mediawiki.page.ready|mediawiki.page.watch.ajax|user.defaults&skin=vector&version=20180530T141043Z&*:38)
    at HTMLInputElement.E.onchange (load.php?debug=false&lang=en&modules=ext.MsUpload|jquery.async%2CcheckboxShiftClick%2Ccookie%2CgetAttrs%2ChighlightText%2CmakeCollapsible%2Cmw-jump%2Cplaceholder%2Csuggestions|mediawiki.Title%2Capi%2Ccldr%2CconfirmCloseWindow%2Cicon%2CjqueryMsg%2Clanguage%2CsearchSuggest%2Cuser|mediawiki.action.edit.collapsibleFooter%2CeditWarning%2Cstash|mediawiki.api.watch|mediawiki.language.data%2Cinit%2CspecialCharacters|mediawiki.libs.pluralruleparser|mediawiki.page.ready|mediawiki.page.watch.ajax|user.defaults&skin=vector&version=20180530T141043Z&*:39)
check_extension @ load.php?debug=false&lang=en&modules=ext.MsUpload|jquery.async%2CcheckboxShiftClick%2Ccookie%2CgetAttrs%2ChighlightText%2CmakeCollapsible%2Cmw-jump%2Cplaceholder%2Csuggestions|mediawiki.Title%2Capi%2Ccldr%2CconfirmCloseWindow%2Cicon%2CjqueryMsg%2Clanguage%2CsearchSuggest%2Cuser|mediawiki.action.edit.collapsibleFooter%2CeditWarning%2Cstash|mediawiki.api.watch|mediawiki.language.data%2Cinit%2CspecialCharacters|mediawiki.libs.pluralruleparser|mediawiki.page.ready|mediawiki.page.watch.ajax|user.defaults&skin=vector&version=20180530T141043Z&*:64
(anonymous) @ load.php?debug=false&lang=en&modules=ext.MsUpload|jquery.async%2CcheckboxShiftClick%2Ccookie%2CgetAttrs%2ChighlightText%2CmakeCollapsible%2Cmw-jump%2Cplaceholder%2Csuggestions|mediawiki.Title%2Capi%2Ccldr%2CconfirmCloseWindow%2Cicon%2CjqueryMsg%2Clanguage%2CsearchSuggest%2Cuser|mediawiki.action.edit.collapsibleFooter%2CeditWarning%2Cstash|mediawiki.api.watch|mediawiki.language.data%2Cinit%2CspecialCharacters|mediawiki.libs.pluralruleparser|mediawiki.page.ready|mediawiki.page.watch.ajax|user.defaults&skin=vector&version=20180530T141043Z&*:60
each @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20150528T130846Z:5
(anonymous) @ load.php?debug=false&lang=en&modules=ext.MsUpload|jquery.async%2CcheckboxShiftClick%2Ccookie%2CgetAttrs%2ChighlightText%2CmakeCollapsible%2Cmw-jump%2Cplaceholder%2Csuggestions|mediawiki.Title%2Capi%2Ccldr%2CconfirmCloseWindow%2Cicon%2CjqueryMsg%2Clanguage%2CsearchSuggest%2Cuser|mediawiki.action.edit.collapsibleFooter%2CeditWarning%2Cstash|mediawiki.api.watch|mediawiki.language.data%2Cinit%2CspecialCharacters|mediawiki.libs.pluralruleparser|mediawiki.page.ready|mediawiki.page.watch.ajax|user.defaults&skin=vector&version=20180530T141043Z&*:60
trigger @ load.php?debug=false&lang=en&modules=ext.MsUpload|jquery.async%2CcheckboxShiftClick%2Ccookie%2CgetAttrs%2ChighlightText%2CmakeCollapsible%2Cmw-jump%2Cplaceholder%2Csuggestions|mediawiki.Title%2Capi%2Ccldr%2CconfirmCloseWindow%2Cicon%2CjqueryMsg%2Clanguage%2CsearchSuggest%2Cuser|mediawiki.action.edit.collapsibleFooter%2CeditWarning%2Cstash|mediawiki.api.watch|mediawiki.language.data%2Cinit%2CspecialCharacters|mediawiki.libs.pluralruleparser|mediawiki.page.ready|mediawiki.page.watch.ajax|user.defaults&skin=vector&version=20180530T141043Z&*:15
o @ load.php?debug=false&lang=en&modules=ext.MsUpload|jquery.async%2CcheckboxShiftClick%2Ccookie%2CgetAttrs%2ChighlightText%2CmakeCollapsible%2Cmw-jump%2Cplaceholder%2Csuggestions|mediawiki.Title%2Capi%2Ccldr%2CconfirmCloseWindow%2Cicon%2CjqueryMsg%2Clanguage%2CsearchSuggest%2Cuser|mediawiki.action.edit.collapsibleFooter%2CeditWarning%2Cstash|mediawiki.api.watch|mediawiki.language.data%2Cinit%2CspecialCharacters|mediawiki.libs.pluralruleparser|mediawiki.page.ready|mediawiki.page.watch.ajax|user.defaults&skin=vector&version=20180530T141043Z&*:38
E.onchange @ load.php?debug=false&lang=en&modules=ext.MsUpload|jquery.async%2CcheckboxShiftClick%2Ccookie%2CgetAttrs%2ChighlightText%2CmakeCollapsible%2Cmw-jump%2Cplaceholder%2Csuggestions|mediawiki.Title%2Capi%2Ccldr%2CconfirmCloseWindow%2Cicon%2CjqueryMsg%2Clanguage%2CsearchSuggest%2Cuser|mediawiki.action.edit.collapsibleFooter%2CeditWarning%2Cstash|mediawiki.api.watch|mediawiki.language.data%2Cinit%2CspecialCharacters|mediawiki.libs.pluralruleparser|mediawiki.page.ready|mediawiki.page.watch.ajax|user.defaults&skin=vector&version=20180530T141043Z&*:39

Skunkfish

My initial thoughts are either an issue with the file type or size, I just uploaded a .JPG and a .PNG without issue.
An expanding array of hardware available at www.cpcstore.co.uk (and issue 3 of CPC Fanzine!)

Chinnery

#2
Its a .jpg, just under 200k, 800x790px
I've tried saving it as lower quality to 150k, and still can't upload. For fun, I tried an 8k gif... nope :(
Every time I get the same exception...


Chrome:
Uncaught ReferenceError: wgFileExtensions is not defined
    at check_extension (load.php?debug=false&lang=en&modules=ext.MsUpload|jquery.async%2CcheckboxShiftClick%2Ccookie%2CgetAttrs%2ChighlightText%2CmakeCollapsible%2Cmw-jump%2Cplaceholder%2Csuggestions|mediawiki.Title%2Capi%2Ccldr%2CconfirmCloseWindow%2Cicon%2CjqueryMsg%2Clanguage%2CsearchSuggest%2Cuser|mediawiki.action.edit.collapsibleFooter%2CeditWarning%2Cstash|mediawiki.api.watch|mediawiki.language.data%2Cinit%2CspecialCharacters|mediawiki.libs.pluralruleparser|mediawiki.page.ready|mediawiki.page.watch.ajax|user.defaults&skin=vector&version=20180530T141043Z&*:64)
    at g.File.<anonymous> (load.php?debug=false&lang=en&modules=ext.MsUpload|jquery.async%2CcheckboxShiftClick%2Ccookie%2CgetAttrs%2ChighlightText%2CmakeCollapsible%2Cmw-jump%2Cplaceholder%2Csuggestions|mediawiki.Title%2Capi%2Ccldr%2CconfirmCloseWindow%2Cicon%2CjqueryMsg%2Clanguage%2CsearchSuggest%2Cuser|mediawiki.action.edit.collapsibleFooter%2CeditWarning%2Cstash|mediawiki.api.watch|mediawiki.language.data%2Cinit%2CspecialCharacters|mediawiki.libs.pluralruleparser|mediawiki.page.ready|mediawiki.page.watch.ajax|user.defaults&skin=vector&version=20180530T141043Z&*:60)
    at Function.each (load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20150528T130846Z:5)
    at g.Uploader.<anonymous> (load.php?debug=false&lang=en&modules=ext.MsUpload|jquery.async%2CcheckboxShiftClick%2Ccookie%2CgetAttrs%2ChighlightText%2CmakeCollapsible%2Cmw-jump%2Cplaceholder%2Csuggestions|mediawiki.Title%2Capi%2Ccldr%2CconfirmCloseWindow%2Cicon%2CjqueryMsg%2Clanguage%2CsearchSuggest%2Cuser|mediawiki.action.edit.collapsibleFooter%2CeditWarning%2Cstash|mediawiki.api.watch|mediawiki.language.data%2Cinit%2CspecialCharacters|mediawiki.libs.pluralruleparser|mediawiki.page.ready|mediawiki.page.watch.ajax|user.defaults&skin=vector&version=20180530T141043Z&*:60)
    at g.Uploader.trigger (load.php?debug=false&lang=en&modules=ext.MsUpload|jquery.async%2CcheckboxShiftClick%2Ccookie%2CgetAttrs%2ChighlightText%2CmakeCollapsible%2Cmw-jump%2Cplaceholder%2Csuggestions|mediawiki.Title%2Capi%2Ccldr%2CconfirmCloseWindow%2Cicon%2CjqueryMsg%2Clanguage%2CsearchSuggest%2Cuser|mediawiki.action.edit.collapsibleFooter%2CeditWarning%2Cstash|mediawiki.api.watch|mediawiki.language.data%2Cinit%2CspecialCharacters|mediawiki.libs.pluralruleparser|mediawiki.page.ready|mediawiki.page.watch.ajax|user.defaults&skin=vector&version=20180530T141043Z&*:15)
    at o (load.php?debug=false&lang=en&modules=ext.MsUpload|jquery.async%2CcheckboxShiftClick%2Ccookie%2CgetAttrs%2ChighlightText%2CmakeCollapsible%2Cmw-jump%2Cplaceholder%2Csuggestions|mediawiki.Title%2Capi%2Ccldr%2CconfirmCloseWindow%2Cicon%2CjqueryMsg%2Clanguage%2CsearchSuggest%2Cuser|mediawiki.action.edit.collapsibleFooter%2CeditWarning%2Cstash|mediawiki.api.watch|mediawiki.language.data%2Cinit%2CspecialCharacters|mediawiki.libs.pluralruleparser|mediawiki.page.ready|mediawiki.page.watch.ajax|user.defaults&skin=vector&version=20180530T141043Z&*:38)
    at HTMLInputElement.E.onchange (load.php?debug=false&lang=en&modules=ext.MsUpload|jquery.async%2CcheckboxShiftClick%2Ccookie%2CgetAttrs%2ChighlightText%2CmakeCollapsible%2Cmw-jump%2Cplaceholder%2Csuggestions|mediawiki.Title%2Capi%2Ccldr%2CconfirmCloseWindow%2Cicon%2CjqueryMsg%2Clanguage%2CsearchSuggest%2Cuser|mediawiki.action.edit.collapsibleFooter%2CeditWarning%2Cstash|mediawiki.api.watch|mediawiki.language.data%2Cinit%2CspecialCharacters|mediawiki.libs.pluralruleparser|mediawiki.page.ready|mediawiki.page.watch.ajax|user.defaults&skin=vector&version=20180530T141043Z&*:39)


Firefox:

ReferenceError: wgFileExtensions is not defined[Learn More]
load.php:64:786


Chinnery

A minor update, using my phone in "Desktop Mode", I get the same issue, however in mobile view, I have been able to upload a file and do it that way. Not ideal but it seems to have worked

Gryzor

Another one I didn't catch in time... does the problem persist?

Chinnery

#5
@Gryzor Lets see:
/clicks "insert attachment 1" many times...
Yes, it does.

If it's any help, the debug console now displays the following:


<major snip because I was in the wrong area>


Dragging and dropping a file fails :(



load.php?debug=false&lang=en&modules=startup&only=scripts&skin=vector&*:20 [Violation] Avoid using document.write().
(anonymous) @ load.php?debug=false&lang=en&modules=startup&only=scripts&skin=vector&*:20
2load.php?debug=false&lang=en&modules=startup&only=scripts&skin=vector&*:20 [Violation] Parser was blocked due to document.write(<script>)
(anonymous) @ load.php?debug=false&lang=en&modules=startup&only=scripts&skin=vector&*:20
load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20150528T130846Z:159 [Violation] Avoid using document.write().
addScript @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20150528T130846Z:159
doRequest @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20150528T130846Z:163
work @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20150528T130846Z:165
request @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20150528T130846Z:162
load @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20150528T130846Z:169
(anonymous) @ index.php?title=RomboRedux&action=edit:29
2load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20150528T130846Z:159 [Violation] Parser was blocked due to document.write(<script>)
addScript @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20150528T130846Z:159
doRequest @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20150528T130846Z:163
work @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20150528T130846Z:165
request @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20150528T130846Z:162
load @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20150528T130846Z:169
(anonymous) @ index.php?title=RomboRedux&action=edit:29
load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20150528T130846Z:155 [Violation] 'setTimeout' handler took 72ms
content.js:5 --------init----------- http://www.cpcwiki.eu/index.php?title=RomboRedux&action=edit

Gryzor

Wait - what? Insert attachment? Where's that? :D


Other than that, images upload nicely - just uploaded this: http://www.cpcwiki.eu/index.php/File:Avatar_2434_1516010288.gif .


I suspect you have some other editor going on, can you send me a screenshot and tell me your steps exactly?


Thanks!

Powered by SMFPacks Menu Editor Mod