Author Topic: Cannot upload images to the Wiki  (Read 642 times)

0 Members and 1 Guest are viewing this topic.

Offline Chinnery

  • CPC664
  • ***
  • Posts: 115
  • Country: gb
  • Liked: 66
  • Likes Given: 85
Cannot upload images to the Wiki
« on: 18:02, 30 May 18 »
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

Offline Skunkfish

  • Supporter
  • 464 Plus
  • *
  • Posts: 444
  • Country: gb
  • Editor of Colour Personal Computing
    • Colour Personal Computing - The CPC Fanzine
  • Liked: 320
  • Likes Given: 740
Re: Cannot upload images to the Wiki
« Reply #1 on: 18:12, 30 May 18 »
My initial thoughts are either an issue with the file type or size, I just uploaded a .JPG and a .PNG without issue.
Nothing to say for now

Offline Chinnery

  • CPC664
  • ***
  • Posts: 115
  • Country: gb
  • Liked: 66
  • Likes Given: 85
Re: Cannot upload images to the Wiki
« Reply #2 on: 18:26, 30 May 18 »
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

« Last Edit: 18:54, 30 May 18 by Chinnery »

Offline Chinnery

  • CPC664
  • ***
  • Posts: 115
  • Country: gb
  • Liked: 66
  • Likes Given: 85
Re: Cannot upload images to the Wiki
« Reply #3 on: 18:55, 30 May 18 »
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

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 15.178
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
  • Liked: 3009
  • Likes Given: 5350
Re: Cannot upload images to the Wiki
« Reply #4 on: 17:15, 29 August 18 »
Another one I didn't catch in time... does the problem persist?

Offline Chinnery

  • CPC664
  • ***
  • Posts: 115
  • Country: gb
  • Liked: 66
  • Likes Given: 85
Re: Cannot upload images to the Wiki
« Reply #5 on: 17:19, 29 August 18 »
@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
« Last Edit: 17:39, 29 August 18 by Chinnery »

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 15.178
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
  • Liked: 3009
  • Likes Given: 5350
Re: Cannot upload images to the Wiki
« Reply #6 on: 10:24, 30 August 18 »
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!