[00:01:54] I'm not actually sure timeless entirely works with mobilefrontend, too. >.> [00:02:09] I think there've been issues with faulty assumptions. [00:02:33] It works without mobile front end though. [00:02:37] And it works well. [00:02:45] Hi Isarra. :) [00:02:51] No MobileFrontend = Best experience. [00:03:16] I guess I'm a glutton for punishment since I prefer to pour my time into updating a skin from 2010 that looks terrible on mobile :P [00:04:45] I intend to replace Vector and MobileFrontend on the project I work on over the next year with a fully CSS grid setup. [00:12:39] Platonides: Didn't like my usual password, or the one saved in a vault. password reset failed. Restarting php-fpm got me past that. Later I tried an upload, not sure I tested that when I moved / upgraded the wiki it failed. [00:13:08] Hello, how can i redirect to a page after registration [00:13:09] I hadn't updated the users permissions to the php-fpm pool I am running that wiki under. [00:14:37] uploads started working after that correction [00:21:35] Quasar`: MAke it look good on mobile, then! [00:21:49] I'm currently making monobook responsive. [00:22:05] tall order, but maybe with enough work :> [00:22:14] Well, okay, right now I'm vectorising all its images so they retain the same lovely pixellatedness on hidpi... [00:22:22] But this is for mobile support, I swear. [04:08:20] Hmm are there any good tools to simply migrate or export an old version of MW (1.10.0) with some customizations [04:11:06] Hi fcser_. [04:11:11] Migrate or export to where? [04:11:36] You can upgrade from 1.10.0 to the latest version of MediaWiki fairly easily typically. [04:11:49] Depending on how invasive the customizations are. [04:11:52] well I’m debating - migrate to updated MW or migrate the raw data to be build another system [04:12:19] I’ve attempted this once in the past and got partially through it and now looking at trying again [04:12:49] and ya the customizations may not have been done in the best way - custom skin and custom extensions and no longer suppported extensions exist [04:14:04] ideally it seems best to stick with mediawiki since that’s what the whole site was built on [04:14:11] and get back to a default skin and go from there [04:15:33] I’ll probably have to do some more research and digging [04:16:01] just was curious if there were any new magical tools to make the process simpler [04:16:47] in iaddition the site has been flooded with spam content [04:16:52] You can start with a fresh installation of MediaWiki, point to the old database, run update.php, and it'll probably be fine. [04:16:55] so separating that out is another challenge [04:17:11] oh ok I’ll try that [04:17:21] thank you for the suggestion Ivy [04:17:25] No problem. [04:17:27] !upgrading [04:17:27] http://www.mediawiki.org/wiki/Manual:Upgrading [04:17:34] We have docs and such too. [04:18:19] thanks again [04:19:31] how do I get an array of all the namespaces? [04:20:07] Goop: Are you familiar with api.php ? [04:20:31] Well, I guess I should ask whether you mean in PHP or in your own script. [04:20:34] Ivy, not really. I'm trying to write something in my LocalSettings.php, and I need to get the full list of namespaces. [04:20:50] What are you trying to do? [04:20:54] specifically, I'm trying to enable all namespaces for VisualEditor. [04:21:12] VisualEditor won't work with many namespaces, tho. [04:21:48] What? Why? [04:22:04] It barely supports articles, in my experience. [04:22:07] Maybe you have better luck. [04:22:35] Well, I have a wiki of like 300 articles, 20 users, and like 6-10 namespaces. [04:23:19] Just I'm not going to be at the organization forever, so if I make it to where it includes all the namespaces, then it'll be more of a plug-n-play system. [04:23:51] Anyway, how do I get an array of all the namespaces? [04:24:12] in regards to fresh install, make sure to copy the images directory if you have uploads enabled [04:24:28] I mean, make backups of everything first. [04:24:51] There may also be salvageable skins and extensions, who knows! [04:24:58] Goop: I'm not sure there's an array of them available. [04:25:21] They're defined in includes/Defines.php. [04:25:27] usually it works fine to enable on non-existing namespaces, so you could do array_fill() to fill all of them [04:25:54] Just listing integers? [04:27:26] Is it $wgVisualEditorNamespaces or $wgVisualEditorAvailableNamespaces ?? [04:27:50] I'd try the former first. [04:35:22] bawolff, wouldn't that flood stuff? [04:36:12] Namespaces that don't exist will generally be ignored so it ends up ok [04:36:25] usually. don't know about VE in general [04:36:27] So, if I use the variable, $wgExtraNamespaces, that would work for the namespaces I added. [04:36:44] How do I get the list of default namespaces? [04:38:37] It goes from 0 to 15 (-1 and -2 are pseudo-namespaces) [04:38:51] The full list of default namespaces is not yet determined in LocalSettings.php [04:39:03] as extensions can add more namespaces during extension loading [10:07:57] cheers, is there any sensible documentation existing to get ldap running on mediawiki-1.27 or later? [10:08:04] i am honestly confused what i all need [13:49:19] Hello, How can i redirect users to a page after registration? [13:56:09] does something like ?next=/path/to/page work? [13:57:20] returnto= is the name of the url parameter [13:57:32] but i assume kevindank doesn't really want to have to specifiy the page in the url [13:58:12] !wg RedirectOnLogin | kevindank [13:58:12] kevindank: https://www.mediawiki.org/wiki/Manual:%24wgRedirectOnLogin [13:59:06] bawolff: that is the method im currently using, however that occurs at login and not at registration only which is what im going for... [13:59:24] oh, I'm not sure then [14:16:40] Today's EMWCon live stream link is https://www.youtube.com/watch?v=9aCQ4v64UAw [14:19:34] added back to sitenotice [14:25:23] thanks! [14:44:14] cheers, still the question on ldap... what is mediawiki's official approach to offer an ldap-based login? [14:45:16] i see since wiki-1.27 the recommendation to be LDAP_Authorization which is a PluggableAuth Authorization module meaning i need to also configure an Authentication module akin SimpleSAMLphp or the likes [14:45:37] i assume simplesamlphp needs to also be configured then for ldap, correct? [14:55:29] Hello everyone [14:56:08] Can anyone else visit this page to confirm that the SVG file is errored? https://ways-of-darkness.sonck.nl/File:Artaburro_today_vector.svg [14:56:28] I created it with Inkscape, and the native SVG handler doesn't seem to like it. [15:19:45] https://i.imgur.com/IKK17M5.png [15:19:48] metalhead33: https://ways-of-darkness.sonck.nl/images/6/68/Artaburro_today_vector.svg displays correctly in my browser. Or do you refer to the PNG thumbnail instead? [15:19:49] https://i.imgur.com/gln7Pu2.png [15:20:01] I am referring to the thumbnail. [15:20:13] Which is also suppsed to be an SVG, since I have the NativeSvgHandler extension [15:20:27] See the two images I linked [15:20:52] which tool is used to create thumbnails? [15:21:05] I said I have the NativeSvgHandler [15:21:13] https://www.mediawiki.org/wiki/Extension:NativeSvgHandler [15:21:48] And I asked which tool is used to create thumbnails. :) [15:22:00] Uhm... no tool. [15:22:59] Are there examples for other image file formats (JPG, PNG) on that wiki which have proper thumbnails? [15:23:10] Yes, there are. SVGs too. [15:23:19] https://ways-of-darkness.sonck.nl/File:CoA_Death_Knights.svg one example [15:24:10] Ah, I see. Thanks [15:24:40] https://ways-of-darkness.sonck.nl/File:Froturn_today_vector.svg [15:25:22] metalhead33: "Artaburro_today_vector.svg ‎(Invalid SVG file: Expected tag, got in NS ) " [15:25:25] see https://ways-of-darkness.sonck.nl/File:Artaburro_today_vector.svg [15:25:43] yes, I noticed that too [15:26:30] Pretty sure that's the reason. [15:26:48] Yes, but... [15:26:57] I don't know the reason for THAT. [15:27:37] weird, because it definitely has an tag [15:27:59] the reason it doesn't show up is probably because MediaWiki can't determine its width/height [15:28:37] I wonder what must I do to make Mediawiki able to determine its dimensions [15:29:14] metalhead33: So the error means that MW thinks the first tag is <> (e.g. an empty tag in an empty namespace) which is weird [15:30:14] the first tag tends to be even amongst working SVGs [15:30:35] oh, I managed to fix one [15:31:24] Yeah, but the xml prolog is optional [15:32:08] its totally fine to omit it (Well actually, if you set standalone="no" its not optional, as that's not the default. However you probably want the doc to be standalone) [15:32:27] metalhead33: https://validator.w3.org/check?uri=https%3A%2F%2Fways-of-darkness.sonck.nl%2Fimages%2F6%2F68%2FArtaburro_today_vector.svg&charset=(detect+automatically)&doctype=Inline&group=0 gives an error about certificate validity [15:32:35] which is weird and probably a validator bug [15:33:10] although, using validate by direct input says its fine [15:33:56] maybe try reuploading it, and see if its still broken [15:34:55] I have no idea why you are encountering the error you are. Its very weird [15:35:32] Unless NativeSVGHandler is overriding metadata extraction and doing something weird (I'm mostly looking at default mw svg support) [15:44:28] bawolff: incomplete certificate chain. so likely the validator doesn't have the issuer certificate on the validator server side. (common with java enterprise services) [15:44:49] https://www.ssllabs.com/ssltest/analyze.html?d=ways-of-darkness.sonck.nl&hideResults=on [15:45:44] so the ways-of-darkness server has not correctly configured it's letsencrypt integration. [15:46:50] metalhead33: ping ^ [15:48:02] Oh? [15:48:31] I'm not the owner of the server. [15:48:58] Take it up with Thyra#9811 (Discord), if you find it that much of an issue.... on second thought, maybe not. [15:49:10] metalhead33: when a webserver delivers the certificate, it is supposed to also deliver the certificates of all it's 'parents' that are not roots. This is called the "chain". [15:49:34] I thought that in such a case though, that the cert would get downloaded separately [15:49:40] here the server only has the one certificate (called the leaf), and that causes problems like that. [15:49:52] bawolff: not if u use any sort of Java based host. [15:50:24] i know.. because we had tomcat/glassfish on our servers and this used to happen all the time to us :) [15:51:25] which is also why this gets you downgrade points on ssllabs :) [15:51:36] I might take it up with the owner of the server, but right now, I fix the SVG images [15:53:17] I wonder if ssllabs is just worried about DOS/reliability potential and java compatibility, or if they are actually capping the grade for some sort of security issue [15:55:04] bawolff: according to their docs: [15:55:05] "n most deployments, the server certificate alone is insufficient; two or more certificates are needed to build a complete chain of trust. A common configuration problem occurs when deploying a server with a valid certificate, but without all the necessary intermediate certificates. To avoid this situation, simply use all the certificates provided to you by your CA. [15:55:10] An invalid certificate chain effectively renders the server certificate invalid and results in browser warnings. In practice, this problem is sometimes difficult to diagnose because some browsers can reconstruct incomplete chains and some can’t. All browsers tend to cache and reuse intermediate certificates." [15:56:08] so because the configuration error, might lead to invalid certificate errors on the client side. that's how i interpret it. [15:59:42] WARNING: XML declaration not found and is strongly recommended [15:59:43] Successfully parsed XML structure. [15:59:43] Check finished! [15:59:50] Hello, im trying to use transclusion to display a secondary page inside the current page name. the title of the secondary page depends on the current page name....so im trying to use transclusion and magic words as follows: {{{{PAGENAME}}_Filing Requirements}} [15:59:51] https://commons.wikimedia.org/w/index.php?title=Commons:Commons_SVG_Checker&withJS=MediaWiki:CommonsSvgChecker.js [16:00:29] However, all that is doing is displaying a red link to a template: The Page Name_Filing REQUIREMENTS [16:00:46] its not actually showing the content of The Page Name_Filing Requirements [16:00:57] You can't transclude a page that does not exist [16:01:06] metalhead33: not sure if MW can handle this unit: width="2.51e3" height="2.82e3" [16:01:40] Maybe not, but the error message suggests it can't even find the root tag [16:01:54] yeah, i think the xml marker is the biggest problem [16:02:09] kevindank: err, wait, you probably want {{:{{FULLPAGENAME}}_Filing Requirements}} [16:03:05] bawolff: spot on, thanks [16:03:32] metalhead33: ideally you'll want: [16:03:33] [16:03:33] "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> [16:03:34] xmlns="http://www.w3.org/2000/svg"> [16:03:43] for an SVG header of a file. [16:03:53] kevindank: For subpages, people often like doing a naming scheme like {{:{{FULLPAGENAME}}/Filing Requirements}}, since if $wgNamespacesWithSubpages is set for that namespace, you get breadcrumb links [16:03:54] right [16:04:52] bawolff: i will give it a show, im using pageforms to create a page mname automatically so i didnt want to rock the boat to much [16:05:53] kevindank: Whichever way works best for you. There's no right or wrong way [16:05:56] but [16:05:58] !subpages [16:05:58] By default some namespaces have subpages enabled and others don't. You can enable or disable them using $wgNamespacesWithSubpages in LocalSettings.php. http://www.mediawiki.org/wiki/Manual:$wgNamespacesWithSubpages [16:06:05] err, that's not what i wanted to link to [16:06:32] https://www.mediawiki.org/wiki/Help:Subpages for some docs about potential options [16:11:11] bawolff: could i use the same{{:{{FULLPAGENAME}}_Filing Requirements}} to link back to the eit page for that page [16:11:53] like do Victoria is speaking now at EMWCon https://www.youtube.com/watch?v=9aCQ4v64UAw [17:10:33] https://www.mediawiki.org/wiki/Manual:$wgDisableUploadScriptChecks do I have to disable this to be able to upload SVG files that contain references to other uploaded SVG or raster images? [17:10:50] because right now, I am being prevented from uploading SVG images that contain references. [17:14:40] metalhead33: yes. Without doing that, you can only embed images using data: urls. However that also disables other checks and allows basically arbitrary JS in svgs [17:15:01] metalhead33: Which means essentially that anyone who can upload an svg can basically take over any account [17:15:45] metalhead33: So if you do that, be aware of the risks and only let people you trust upload files [17:16:06] metalhead33: And highly reccomended to configure your $wgUploadPath to be an entirely separate domain, so that svgs are in a different origin [18:14:12] ugh, I wish packed-hover was the default gallery mode [18:14:26] Even if not for Wikimedia, just having it as default for mediawiki [18:20:44] would be very un-fun for the default of that to change :[ [18:23:39] Quasar`: I mostly think it looks much prettier on categories [18:24:14] Quasar`: I also think default image size is to small [18:26:37] yeah that's true. [18:32:41] Quasar`: but compare how pretty https://commons.wikimedia.org/wiki/Category:Quality_images_of_Citrus?gallerymode=packed-hover#mw-category-media looks vs https://commons.wikimedia.org/wiki/Category:Quality_images_of_Citrus#mw-category-media and then imagine if image size was also increased [18:33:03] I dont know, I'm probably biased as i was involved in the feature development [18:35:39] First link: Cluttered mess. Second link: Better. [18:36:17] Ah, looks like I have an unpopular opinion ;) [18:36:47] I like the kind of collage of images approach [18:37:11] The consistent column width is a better user experience, but the details of the image could be moved into the hover state. So just "hover" instead of "packed-hover". :D [18:39:01] TIL you can change the gallery mode of categories [18:39:02] Hmm. interesting. The idea with packed was that people like having consistent whitespace between images and having consistent margins on left and right was more important than making sure each image has same width [18:39:33] There are also edge cases where packed does not look good at all, with really narrow images [18:39:47] but it works quite nice for very wide panoramas [18:40:48] I had a really wide monitor at high resolution so packed mode looks terrible. At skinnier screen widths packed mode is better. [18:40:51] *have [18:42:08] Hmm. I should try it on a big monitor [18:42:18] https://i.imgur.com/cqPKfI1.png [18:42:19] https://i.imgur.com/id9gkyY.png [18:42:51] Trela: Oh hmm, that does look icky when it only has one full row [18:43:39] You could use Javascript to determine where to split the rows to enforce a fluid maximum width, but I hate adding Javacsript for layout changes. [18:44:11] It already adjusts layout with js to avoid ragged edges [18:44:46] but its maybe not super smart. I think it only works within a single row and not the entire thing, so last row is short [18:45:03] Trela: so for wide screens, big categories might look better (e.g. like https://commons.wikimedia.org/wiki/Category:Featured_pictures_on_Wikimedia_Commons?gallerymode=packed-hover#mw-category-media ) [18:45:35] A bit better. [18:46:22] Imgur used to be fast for uploading images. :( [18:47:00] try http://snag.gy/ for simple sharing [18:47:20] https://i.imgur.com/pydl6Mo.jpg [18:48:58] yeah, i guess its just too wide rows. Maybe we should have a max-width and have a lot of whitespace on the right of the gallery [18:51:00] Anyways, thanks for this. This was interesting to hear [18:54:52] Of course. :D I am collecting information for an upcoming project to create a new skin from scratch for Gamepedia. I am(We are) shooting for a 100% modern fully fluid responsive design. Things like that may end up getting incorporated and put back out with the final project. [18:58:21] yikes requesting a different gallery mode on a large category for the first time on a small wiki eats up a good amount of server resources :> [18:58:36] generating thumbnails I suppose [18:58:39] Yes there is that [18:58:44] yep [19:07:22] https://doomwiki.org/wiki/Category:Compilation_cover_art?gallerymode=packed-hover this needs a wood shelf graphic in the bg ;) [20:13:51] This is a call in AbstractContent.php: Hooks::run( 'ContentAlterParserOutput', [ $this, $title, $po ] ); [20:14:02] $po being a ParserOutput [20:14:40] How am I supposed to alter $po if it is not given by ref? [20:15:39] In particular, how do I change the text? [20:17:18] FoxT: it's an object. you can call methods on it [20:17:30] like ->setText() [20:22:10] MatmaRex: Does not work. Neither does SetExtensionData [20:24:41] FoxT: sorry, i don't really have time to help right now, but there are a few extensions using it and it seems to work on them. seeing your code would be useful anyone who has time to help debug this [20:25:08] MatmaRex: Ok. Thanks.