[00:27:17] Hello! the SVG recrunching patch would be properly placed in https://phabricator.wikimedia.org/T178867 "Unify and optimize SVG markup across Foundation products" ? [00:31:15] Vector is already tagged, so it should be fine [00:33:01] Thanks [00:41:48] on that subject - WHEN are we going to have built-in support for inline SVG? [00:42:37] No idea [00:42:41] Don't think anyone is working on it [00:47:13] in all seriousness it should be pretty much as simple as just adding the tags to the allowed list [00:47:57] Patches welcome :) [01:14:38] DSquirrelGM: The blockers are the security issues. [01:14:55] Actually shipping SVGs at users is, indeed, trivial. [01:15:10] Working out that the SVG we're shipping at them doesn't root their browser is, err, less so. [01:17:47] specifically disabling script event handlers, script elements, and foreignobject, would take care of MOST of it [01:18:40] If you have a hardened open source SVG sanitiser that can strip those things we'd love to have it. [01:19:13] ISTR (but it's been years since I looked) that the best-in-class wasn't very "best", it was a regex that hopefully knew what it was doing. [01:20:14] But going the other way, to an element allow-list, makes for a quite frustrating experience when creating "cool" SVGs. E.g. we'd probably need to ban raster assets along with all scripting. [01:21:56] There's also the question of when to decide to ship SVG vs. raster to the user, based on size/complexity/device capability/network/…, which is both hard to know what the right thresholds are and awkward to see a tech-debt-free way forward. [01:22:03] Because, I too would love to ship user-generated SVGs at our readers. It'd give us so many options. [01:22:57] DSquirrelGM: Sorry. :-( [01:23:56] the main use case I see is for integrating it into styling templates of various types, and modules or templates for generating graphs [01:24:35] So just lightweight decorate simple objects? Yeah, that we could support reasonably well. [01:27:43] I'm not talking about fully interactive game application-level integration, just being able to adapt the graphic elements to make scalable graphic layouts - don't really need most of the interactivity support [01:30:10] Yeah. [01:30:54] We do ship SVGs from the chrome to users (e.g. the icons in the interface and the site logos); they're all manually committed to git and go through expert review, however. [01:31:13] Which is not your use case. [01:34:44] I currently use a Widget that I wrote to do this sort of stuff - while it's not EXACTLY inline SVG, it's enough for most purposes, but doesn't allow for the same degree of integration and shared styling that inline SVG would make possible [01:35:59] it doesn't do full tag verifications though, but tries to catch most scripting-related issues [01:37:01] it's over on the mediawikiwidgets site if you want to take a look [01:52:41] Entirely different subject: Can someone verify this? (anonymous user edit) - https://www.mediawiki.org/w/index.php?diff=3695395&oldid=3686368&rcid=4894300 [01:55:08] 2 of them are resolved, 1 is stalled [01:56:13] Doesn't seem wrong [01:57:26] just seemed a little odd that it wasn't someone logged in, that's all [01:57:40] I'm guessing it's someone that didnt' realise they're logged out [11:18:54] Hi, i have some categories with common prefix, i want show them ordered by the count of pages they contains, any idea how to do this? [13:32:52] Is there a way to reset docker-dev ? [13:49:16] Sohom_Datta: https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/+/master/DEVELOPERS.md#re_install does that help? [13:50:09] Yes, that exactly what I need [15:31:46] Okay, silly question... but in tests/parser/tests/parserTests.txt how do I know which files are there ? [15:35:16] Sohom_Datta: could you rephrase your question please? [15:37:31] Like, in tests/parser/parserTests.txt it seems foobar.jpg seems to be taken to exist be default while... are there any other files that are taken to exist by default ? [15:37:55] *while testing [16:06:15] Sohom_Datta: that'S not a silly question :) [16:07:15] Hi, i have some categories with a shared prefix, i want to sort them by the page count in each category. [16:08:12] Anyone has a way to do it? the best approach i came with until now is to select all of them with dpl into an array, loop on each one of them and save the category name with the page count (using the PAGESINCATEGORY macro) and then try to dynamically create wikitable. but its seems complicated [16:09:12] Sohom_Datta: I suppose you Just Have To Knwo (tm). It doesn't seem to be documented. You can look at ParserTestRunner::setupUploadBackend() though. I only just learned that myself by grepping for Foobar.jpg ;) [16:20:44] Okay, I'll take a look at that :) [22:09:26] 2 accounts created in a few minutes?... https://www.mediawiki.org/wiki/Special:RecentChanges [23:32:10] Hello all. Weird question. I inherited an old 2003 windows server that is running MediaWiki on it and I'm trying to move it to a newer windows server. I have basically zero MediaWiki knowledge (or php, etc).. I can get the site to come up, and the headings show.. but there is no contents on the pages [23:32:50] Coworker basically copied the websites folder to new server, and installed/restored mysql.. but thats about it [23:36:37] if you just copied an old mediawiki code to the new server [23:36:44] it's possible that it uses a newer php version [23:36:52] which is unable to run the old code [23:37:00] I think thats what happened.. nothing was "installed" that I know of [23:37:06] except for mysql [23:37:06] (some classes had names that became reserved words in later versions) [23:37:28] so I would recommend to update to latest mediawiki codebase [23:37:37] it should be able to pick the old schema [23:37:48] well, I hope you do have php installed! [23:38:06] lol I think it is (for an existing site) [23:38:11] apologies for being dumb about this stuff [23:38:31] My next question is how to install mediawiiki on windows :-\ we tried looking that up and got stumped lol [23:38:32] no problem [23:38:46] IIS or Apache? [23:38:48] it's quite the same as in a different OS [23:38:50] IIS [23:38:56] Windows 2012 r2 [23:39:03] "current" server is 2003 / IIS [23:39:18] i want to get rid of this thing so bad ;) [23:39:23] you basically place the mediawiki folder in the right place where IIS will pick it [23:39:49] you could as well move it to a *nix machine if that was easier for you [23:39:52] so our site is called "wikibestos" in IIS, and its pointed to d:\wikibestos [23:40:01] we created an IIS site for that to match whats on the old server [23:40:18] the most recent doc about IIS on windows seems to be https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki_on_Windows_Server_2016 [23:41:18] Yeah we can get the site to launch but just no content [23:41:20] ill show ya [23:41:31] A blank page? [23:41:39] not entirely [23:42:21] https://usercontent.irccloud-cdn.com/file/ZqDzj6yd/image.png [23:42:24] working [23:42:34] https://usercontent.irccloud-cdn.com/file/L9L5Fej0/image.png [23:42:37] this is the new server [23:43:40] Checked the error logs/browser console? [23:48:36] what happens if you press the edit link? [23:48:40] do you see the wikitext? [23:56:20] sorry, phone call [23:56:21] sec [23:56:32] Edit = Internal Error [23:56:39] Detected bug in an extension! Hook FCKeditor_MediaWiki::onCustomEditor failed to return a value; should return true to continue hook processing or false to abort. [23:56:40] Backtrace: [23:56:40] #0 D:\wikibestos\includes\Wiki.php(502): wfRunHooks('CustomEditor', Array) [23:56:40] #1 D:\wikibestos\includes\Wiki.php(63): MediaWiki->performAction(Object(OutputPage), Object(Article), Object(Title), Object(User), Object(WebRequest)) [23:56:40] #2 D:\wikibestos\index.php(116): MediaWiki->initialize(Object(Title), Object(Article), Object(OutputPage), Object(User), Object(WebRequest)) [23:56:41] #3 {main} [23:58:19] hmm if I hit F12 in chrome, it says "DevTools failed to parse SourceMap: chrome-extension://hdokiejnpimakedhajhdlcegeplioahd/sourcemaps/onloadwff.js.map" as a warning of some kind at bottom