Topic on Extension talk:MsUpload/Flow

MW 1.35.1 - Msupload not working/showing

5
Kraba (talkcontribs)

Hello,

I installed MsUpload (master or version for 1.35) on a fresh installation of MW 1.35.1 with this setup:

wfLoadExtension( 'MsUpload' );
$wgMSU_useDragDrop = true; // Should the drag & drop area be shown? (Not set by default) 
$wgMSU_showAutoCat = true; // Files uploaded while editing a category page will be added to that category
$wgMSU_checkAutoCat = true; // Whether the checkbox for adding a category to a page is checked by default
$wgMSU_useMsLinks = false; // Insert links in Extension:MsLinks style?
$wgMSU_confirmReplace = true; // Show the "Replace file?" checkbox
$wgMSU_imgParams = 'none'; // Any image parameter(s), delimited by pipes, e.g., {width}px, left, right, center, none, border, frameless, frame, 
$wgHiddenPrefs[] = 'usebetatoolbar';

When I edit a page with wikieditor enabled I'm able to catch this error on my nginx logs:

$MYIP - - [31/Mar/2021:10:51:09 +0000] "GET /index.php?title=MY_PAGE_EDITED&action=edit HTTP/1.1" 200 8245 "http://$MY_WIKI_IP/MY_PAGE_EDITED" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36"
$MYIP - - [31/Mar/2021:10:51:09 +0000] "GET /extensions/MsUpload/resources/plupload/plupload.full.min.js HTTP/1.1" 404 31 "http://$MY_WIKI_IP/index.php?title=MY_PAGE_EDITED&action=edit" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36"
$MYIP - - [31/Mar/2021:10:51:10 +0000] "GET /extensions/WikiEditor/modules/images/toolbar/arrow-down.svg?4c840 HTTP/1.1" 404 31 "http://$MY_WIKI_IP/index.php?title=MY_PAGE_EDITED&action=edit" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36"
$MYIP - - [31/Mar/2021:10:51:10 +0000] "GET /extensions/MsUpload/resources/images/msu-loading.png?99192 HTTP/1.1" 404 31 "http://$MY_WIKI_IP/index.php?title=MY_PAGE_EDITED&action=edit" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36"
$MYIP - - [31/Mar/2021:10:51:10 +0000] "GET /extensions/MsUpload/resources/images/msu-upload-button.png?87a5f HTTP/1.1" 404 31 "http://$MY_WIKI_IP/index.php?title=MY_PAGE_EDITED&action=edit" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36"

I changed my Ip/wiki IP and page name with $MYIP, $MY_WIKI_IP, MY_PAGE_EDITED. I'm using Tweeki as skin but i've the same result if I use vector, the files are present of course.

Kraba (talkcontribs)

Sorry i forgot: the msupload bar is not showing/present.

Sophivorus (talkcontribs)

I was unable to reproduce your issue. MsUpload is working fine for me on my 1.35.2 installation. Are you still experiencing this issue? If yes, are there any errors or warnings on your browser console? Also, is your wiki public?

Kraba (talkcontribs)

Yes, it's public (I tried it with the wiki "closed" and public) but no luck. The console, when I edit a page return:

GET http://$MYWIKI/extensions/MsUpload/resources/plupload/plupload.full.min.js net::ERR_ABORTED 404 (Not Found)
JQMIGRATE: Migrate is installed with logging active, version 3.1.0
VM657:211 This page is using the deprecated ResourceLoader module "jquery.throttle-debounce".
Please use OO.ui.throttle/debounce instead. See https://phabricator.wikimedia.org/T213426
(anonymous) @ VM657:211
runScript @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:13
execute @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:14
doPropagation @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:7
requestIdleCallback (async)
requestPropagation @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:7
setAndPropagate @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:8
implement @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:20
(anonymous) @ load.php?lang=en-gb&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=tweeki&version=d2vm4:1
load.php?lang=en-gb&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=tweeki&version=d2vm4:410 This page is using the deprecated   ResourceLoader module "jquery.ui". 
Please use OOUI instead. 
mw.loader.implement.css @ load.php?lang=en-gb&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=tweeki&version=d2vm4:410
runScript @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:13
(anonymous) @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:14
flushCssBuffer @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:5
requestAnimationFrame (async)
addEmbeddedCSS @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:5
execute @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:14
doPropagation @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:7
requestIdleCallback (async)
requestPropagation @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:7
setAndPropagate @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:8
implement @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:20
(anonymous) @ load.php?lang=en-gb&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=tweeki&version=d2vm4:1
load.php?lang=en-gb&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=tweeki&version=d2vm4:144 JQMIGRATE: jQuery.fn.delegate() is  deprecated
migrateWarn @ load.php?lang=en-gb&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=tweeki&version=d2vm4:144
delegate @ load.php?lang=en-gb&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=tweeki&version=d2vm4:153
bindHover @ load.php?lang=en-gb&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=tweeki&version=d2vm4:605
Datepicker @ load.php?lang=en-gb&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=tweeki&version=d2vm4:560
(anonymous) @ load.php?lang=en-gb&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=tweeki&version=d2vm4:607
mw.loader.implement.css @ load.php?lang=en-gb&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=tweeki&version=d2vm4:607
runScript @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:13
(anonymous) @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:14
flushCssBuffer @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:5
requestAnimationFrame (async)
addEmbeddedCSS @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:5
execute @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:14
doPropagation @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:7
requestIdleCallback (async)
requestPropagation @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:7
setAndPropagate @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:8
implement @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:20
(anonymous) @ load.php?lang=en-gb&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=tweeki&version=d2vm4:1
load.php?lang=en-gb&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=tweeki&version=d2vm4:51 jQuery.Deferred exception: plupload is  not defined  ReferenceError: plupload is not defined
      at Array.createUploader (<anonymous>:116:128)
      at mightThrow (http://$MYWIKI/load.php?lang=en-gb&modules=jquery%2Coojs-ui-core%2Coojs-ui- widgets%7Cjquery.ui&skin=tweeki&version=d2vm4:49:149)
     at process (http://$MYWIKI/load.php?lang=en-gb&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets%7Cjquery.ui&skin=tweeki&version=d2vm4:49:808)   undefined
jQuery.Deferred.exceptionHook @ load.php?lang=en-gb&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=tweeki&version=d2vm4:51
process @ load.php?lang=en-gb&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=tweeki&version=d2vm4:49
setTimeout (async)
(anonymous) @ load.php?lang=en-gb&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=tweeki&version=d2vm4:50
fire @ load.php?lang=en-gb&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=tweeki&version=d2vm4:46
fireWith @ load.php?lang=en-gb&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=tweeki&version=d2vm4:47
fire @ load.php?lang=en-gb&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=tweeki&version=d2vm4:47
fire @ load.php?lang=en-gb&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=tweeki&version=d2vm4:46
fireWith @ load.php?lang=en-gb&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=tweeki&version=d2vm4:47
(anonymous) @ load.php?lang=en-gb&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=tweeki&version=d2vm4:51
fire @ load.php?lang=en-gb&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=tweeki&version=d2vm4:46
fireWith @ load.php?lang=en-gb&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=tweeki&version=d2vm4:47
deferred.<computed> @ load.php?lang=en-gb&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=tweeki&version=d2vm4:50
(anonymous) @ VM657:248
doPropagation @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:7
requestIdleCallback (async)
requestPropagation @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:7
setAndPropagate @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:8
markModuleReady @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:12
runScript @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:13
(anonymous) @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:14
flushCssBuffer @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:5
requestAnimationFrame (async)
addEmbeddedCSS @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:5
execute @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:14
doPropagation @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:7
requestIdleCallback (async)
requestPropagation @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:7
setAndPropagate @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:8
markModuleReady @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:12
runScript @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:13
(anonymous) @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:14
flushCssBuffer @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:5
requestAnimationFrame (async) 
addEmbeddedCSS @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:5
execute @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:14
doPropagation @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:7
requestIdleCallback (async)
requestPropagation @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:7
setAndPropagate @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:8
markModuleReady @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:12
runScript @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:13
(anonymous) @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:14
flushCssBuffer @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:5
requestAnimationFrame (async)
addEmbeddedCSS @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:5
execute @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:14
doPropagation @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:7
requestIdleCallback (async)
requestPropagation @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:7
setAndPropagate @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:8
implement @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=tweeki:20
(anonymous) @ load.php?lang=en-gb&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=tweeki&version=d2vm4:1
index.php?title=Category:Applications&action=edit:1 GET http://$MYWIKI/extensions/WikiEditor/modules/images/toolbar/arrow-down.svg?4c840 404 (Not   Found)
index.php?title=Category:Applications&action=edit:1 GET http://$MYWIKI/extensions/MsUpload/resources/images/msu-upload-button.png?87a5f 404 (Not  Found)
index.php?title=Category:Applications&action=edit:1 GET http://$MYWIKI/extensions/MsUpload/resources/images/msu-loading.png?99192 404 (Not Found)


The file is present and with the proper permissions.If it can help my config is: MW 1.35.1 with Tweeki as skin (but the same problem appears with vector or the defaults one)

$wgScriptPath = "";
$wgScript = "{$wgScriptPath}/index.php";
$wgRedirectScript = "{$wgScriptPath}/redirect.php";
$wgArticlePath = "/$1";
## The protocol and server name to use in fully-qualified URLs
$wgServer = "http://$MYWIKI";
## The URL path to static resources (images, scripts, etc.)
$wgResourceBasePath = $wgScriptPath;
$wgGroupPermissions['*']['createaccount'] = true ;
$wgGroupPermissions['*']['edit'] = true;
$wgGroupPermissions['*']['read'] = true;
$wgGroupPermissions['*']['talk'] = true;
$wgGroupPermissions['*']['createtalk'] = true;
$wgGroupPermissions['*']['writeapi'] = true;
$wgGroupPermissions['*']['submit'] = true;
$wgGroupPermissions['*']['autocreateaccount'] = true;
### msupload req
$wgEnableUploads = true; // Enable uploads
$wgAllowJavaUploads = true; // Solves problem with Office 2007 and newer files (docx, xlsx, etc.)
$wgGroupPermissions['user']['upload'] = true; // Allow regular users to upload files
$wgBlockDisablesLogin=true;
wfLoadExtension( 'MsUpload' );
$wgMSU_useDragDrop = true; // Should the drag & drop area be shown? (Not set by default)
$wgMSU_showAutoCat = true; // Files uploaded while editing a category page will be added to that category
$wgMSU_checkAutoCat = true; // Whether the checkbox for adding a category to a page is checked by default
$wgMSU_useMsLinks = false; // Insert links in Extension:MsLinks style?
$wgMSU_confirmReplace = true; // Show the "Replace file?" checkbox
$wgMSU_imgParams = 'none'; // Any image parameter(s), delimited by pipes, e.g., {width}px, left, right, center, none, border, frameless, frame,  thumb etc.
$wgHiddenPrefs[] = 'usebetatoolbar';

Thanks and let me know if you need more infos

Kraba (talkcontribs)

found the problem. PEBCAK :) nginx had a "location ^~ /extensions/ { internal; }" My fault, sorry