[00:13:10] Does anyone know if there's a way to use UploadWizard on a form? [00:13:20] or can it only be used on its special page? [00:38:53] Sazpaimon: Only on the special page, I believe. There was an exploration about including it via iframe or otherwise, but it never took off. [00:39:05] You might use the upload dialog in core? [00:43:11] The issue is the upload wizard is the only thing that supports large file uploads [00:43:25] rather, only one that does on a clouldflare backed site [00:44:35] cloudflare adds a 100MB upload limit unless you're on one of their enterprise plans, so UploadWizard's ability to upload in chunks helps bypass that limit. The only other option is to expose a non-cloudflare backed IP to upload to, which kind of defeats the purpose of it [00:45:26] Sazpaimon: I thiiiink we wrote a mixin class for the upload dialog to do chunked uploads [00:45:49] What kind of uploads? Uploading files > 100MB on a wiki is atypical. [00:46:02] The MSUpload extension chunks things too I think [00:46:22] archive files mostly [00:46:37] Could consider something like Dropbox or an S3 bucket or similar. [00:46:41] Sazpaimon: https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw.Upload.Dialog (but this only really helps if you're able to do some JS programming on your side) [00:46:47] Dunno how much you need wiki integration tho. [00:47:16] The wiki integration we have is helpful. I'm not pressed for storage space either [00:47:32] All right. MediaWiki can certainly handle large files, don't get wrong. :-) [00:47:37] get me * [00:47:48] yeah, we've been doing it for >5 years now [00:48:02] Cloudflare Enterprise is prohibitively expensive? [00:48:21] It basically costs $ContactUs [00:48:32] and even then it only ups the limit to 500MB [00:48:38] Ahh. [00:49:29] our wiki hosts a large amount of abandonware for preservation, so some entries can have rather large attachments [00:50:39] marktraceur, I'll take a look at this, should it be done in Common.js? [00:50:55] Sazpaimon: Either that, your own extension, or a userscript [00:51:15] Common.js is the lazy man's approach, which is alright with me [00:51:38] says the guy with 20+ hooks defined in his LocalSettings [00:51:48] I feel that [00:52:23] Sazpaimon: fwiw https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw.Api.plugin.upload - in the dialog class where it says upload.upload() you probably just need upload.chunkedUpload [00:53:34] I don't know, it might be more complicated, it's been a while since I played with this/wrote this [00:53:59] so right now the form just uses a UploadWindow iframe [00:54:28] I'll see how I can play around with this to see how it can be replaced [00:58:33] How do I even get mw.Upload in scope? It isn't defined [01:19:45] I forgot to mention that this form is a SMW Page Form [13:07:58] Doing an actor migration, still have WRITE_BOTH, READ_NEW on, and it seems I'm losing IP edits on the new format? Like... 75 revisions or so? [14:41:04] Ahh, sorted theat. [14:41:07] that* [14:41:37] Where does Special:LockDB store its lock? [14:42:59] File on disk isn't it? [14:43:21] # If the lock file isn't writable, we can do sweet bugger all [14:43:32] Whatever $wgReadOnlyFile is set to [14:49:08] Thanks Reedy :) Seem to be failing at grep today. [14:50:08] sometimes it's just easier to open the code file in github :P [14:52:10] It took me long enough to work out it was a core feature and not an extension lol [14:52:15] https://gerrit.wikimedia.org/r/c/mediawiki/extensions/MobileFrontend/+/587823 [14:52:28] But yeah, I guess includes/specialpages/LockDB.php or whatever would have been a good shout. [14:54:06] Can somebody help me figure out why jenkin's bot -1ed my change... [14:55:15] I went through the output but couldn't understand what I messed up [14:55:32] Sohom_Datta, click the link which says "FAILED" [14:55:36] err FAILURE [14:55:52] It's not very clear, that's for sure [14:55:58] It says [14:55:59] 07:14:23 npm ERR! @ test: `npm -s run lint && bash ./dev-scripts/svg_check.sh && npm -s run coverage && npm -s run test:bundle && npm -s run jsdoc` [14:56:19] Ah [14:56:19] 07:14:23 After I built the assets, I noticed differences in the contents to what you committed. [14:56:25] 07:14:23 Try running `npm run build` again or removing the node_modules folder and running npm install with the correct node version. [14:56:36] I was looking much further up :P [15:00:40] So, like I need to run `npm run build` before commiting ? [15:01:17] That's what it's saying :) [15:01:48] Nah, cause node_modules and npm install are local stuff :) [15:01:59] So I got confused... [15:25:14] Hi does anyone know if Jenkins is having problems right now? It keeps rejecting my patch, but in a very generic-looking way: https://integration.wikimedia.org/ci/job/quibble-composer-mysql-php72-docker/13639/console [15:25:38] And here's the patch, by the way: https://gerrit.wikimedia.org/r/#/c/mediawiki/extensions/Mpdf/+/588007/ [15:26:13] it's a PHPCS fail [15:26:13] 16:19:40 102 | WARNING | Silencing errors is discouraged; found: [15:26:13] 16:19:40 | | @$mpdf->WriteHTML... [15:26:14] 16:19:40 | | (Generic.PHP.NoSilencedErrors.Discouraged) [15:27:36] Oh, oops, I forgot to click on "Show details". Thanks. [15:27:39] heh [15:30:07] So, uh, what's the code to ignore/suppress a check like "Generic.PHP.NoSilencedErrors.Discouraged"? [15:30:35] Ironically, I have to suppress warnings about suppressing warnings. :) [15:30:43] Or maybe appropriately. [15:31:42] Why not just replace @ with \Wikimedia\suppressWarnings(); and Wikimedia\suppressWarnings(); ? [15:32:02] Ah - even better. [15:32:50] You probably mean "restoreWarnings" for the second one. [15:33:05] I do [15:33:07] copy paste fail [15:33:19] Or you can do suppressWarnings( false )IIRC [15:34:25] What does that do? [15:35:03] Basically exactly the same thing [15:35:07] as restoreWarnings [15:35:35] oh, wrong logic [15:35:37] https://github.com/wikimedia/at-ease/blob/master/src/Wikimedia/AtEase/AtEase.php#L60-L62 [15:36:06] Oh, weird. [15:36:39] the restoreWarnings() function makes more sense semantically [15:37:04] Yeah, speaking of the syntax, looking through the MW code, sometimes it's \Wikimedia\suppressWarnings() and sometimes it's AtEase::suppressWarnings(). Is there any difference between those two? [15:38:04] AtEase is the new one.. moving them into class static functions rather than global functions [15:38:20] At some point \Wikimedia\suppressWarnings() will go away [15:38:42] Well, I'll switch to AtEase, then... [15:39:51] FWIW, that does make MW >= 1.34.0 required if you use the class static functions [15:40:40] Oh. :( [15:41:40] I'll stick with \Wikimedia for now, then. [15:42:38] I think that is good down to at least 1.31 [15:44:08] Oh, this is bringing back memories... I had handle this for some extension before. [15:44:42] It was wfSuppressWarnings(), then \MediaWiki\suppressWarnings(), then \Wikimedia\suppressWarnings(), and now AtEase::suppressWarnings(). [15:45:48] Something like that, yup [20:05:25] what's the best place to confirm sftp settings? [20:09:26] Confirm them how? [20:15:47] Ask your trustworthy SFTP server if it accepts them? :P [20:16:50] i'm working on a project with a person who set it up several years ago and doesn't recall their settings [20:18:05] so if i could pull the server name out of my rear end, I would. is there someone working for mediawiki in here or is there live ops around to help me get to someone? [20:18:33] What kind of settings are there? [20:19:14] Host URL, port, username, password, or anything else? [20:19:23] What have you tried so far? [20:19:30] Asking because this is still quite vague, sorry :) [20:19:32] i'm trying to confirm the host url [20:20:26] I doubt anyone here can help you about that. It's like you forget where do you live and you ask someone that knows nothing about you [20:21:55] do they have support people on this IRC or is this just a place for random people to hang out? [20:22:54] dedzilla, who is "they"? [20:23:09] MediaWiki is a piece of software that you or your company is using. We do not maintain your servers [20:24:07] Calling someone at Microsoft would have the same effect [20:30:52] yep, get it. I am more interested in getting in touch with someone who works with mediawiki. this irc channel was listed on the website. is there an op who can grant access to #wikimedia-tech? [20:31:04] or who works for $$ to answer questions about the software? [20:31:23] #wikimedia-tech is public and open [20:31:29] dedzilla, there is nothing to "grant". You can just join #wikimedia-tech . But that's more off-topic there. [20:31:40] it spits people out to an overload channel and tells you to ask an op to grant access [20:31:45] i have other questions [20:31:57] dedzilla: If your wiki is not on a Wikimedia server, then #wikimedia-tech is offtopic for the problem anyway [20:32:24] look, i'm super happy to have people just trying to help but i'm also on the clock so just need to get with someone who can answer more specific questions that aren't blasted in a channel full of people who may or may not have something helpful to say [20:32:36] dedzilla, you can also ask questions here without $$ to people who work on the MediaWiki software. But we cannot solve your FTP server problem because we do not run your FTP server. [20:32:56] dedzilla: Then feel free to ask more specific questions here. [20:33:21] dedzilla: I'd say we've answered all questions so far when it comes to MediaWiki. [20:33:35] k, i still need to be able to answer to a person giving me grades which are like a students dollars. and they want to know if i was able to talk to an employee [20:33:42] can anyone answer that question first? [20:33:55] dedzilla, employee of what? [20:34:32] mediawiki. they list this irc server and group of channels as a place to get in touch with employees who answer questions about mediawiki [20:34:41] No one is employed by MediaWiki [20:34:41] MediaWiki is not a company. It is a software project. [20:34:52] ah ok [20:34:54] Please see https://www.mediawiki.org/wiki/Differences_between_Wikipedia,_Wikimedia,_MediaWiki,_and_wiki [20:35:12] so are there "official" people who answer questions about articles on the mediawiki wiki? [20:35:18] I might have an employee but I don't see how that matters. [20:35:34] dedzilla, no, because nobody can define what "official" is supposed to mean. [20:35:47] or how that matters anyway. [20:35:55] This is about as "official" as you might get for real time support relating to MediaWiki though [20:36:00] right [20:36:14] i'm having to type a report with status. this is a professor's website who hasn't used anything other than the website to manage their mediawiki site in several years. they can't tell me much about what they have setup so i'm having to write a doc for future students so they don't have to suffer like i am [20:36:28] It's full of people that develop MediaWiki, extensions, sysadmin it or use it [20:36:31] got it, thanks for clarifying on the "official" part [20:37:04] cool. well my main issue is that i am tasked with cleaning up a boatload of spam caused by someone who never setup a secure site using mediawiki [20:37:13] er, spam bots. they haven't spammed the site yet [20:37:35] What do you mean by cleaning? [20:37:49] Removing them? [20:37:54] Prevent them being able to spam in future? [20:37:57] deleting the bots [20:38:04] yes, preventing them from spamming in the future [20:38:04] https://www.mediawiki.org/wiki/Manual:Combating_spam [20:38:18] yah, it suggests that i need to connect to the host and run a script [20:38:32] With SSH, not SFTP [20:38:40] It depends what OS it's running on though [20:38:49] If it's windows, you're probably not going to have an ssh server on it [20:38:50] i tried ssh [20:39:35] from what they've told me: it's a godaddy site that uses wikimedia and cpanel. [20:40:01] but i've never used wikimedia or cpanel. it looks like fluff or bloatware to do something that could be done by just logging in [20:40:03] then maybe contact godaddy support if you have no credentials. if. [20:40:29] Not all hosting providers provide shell access [20:40:32] it looks like they just have the domain hosted on godaddy. i didn't see any services for file hosting [20:40:44] https://uk.godaddy.com/help/connect-to-my-web-hosting-account-with-ssh-secure-shell-4943 [20:41:45] You can probably work out from the ip address where it's hosted, if it's not godaddy [21:58:56] i haven't been able to ssh so far but this has been helpful in understanding what they have setup and directing me to the correct resource. thanks [22:04:54] cheers :)