[04:29:21] Hello, account creation on meta.miraheze.org doesn't work https://github.com/miraheze/mw-config/issues/72 [04:30:13] Reception123: The obvious question is, does the database actually exist [04:30:36] although if it didn't, more than account creation should fail [04:30:51] meta.miraheze.org ? Yes, it does exist, we've been using it, and a lot of users created accounts [04:33:48] Hmm, well your error complains about a database named delete3wiki, but your main site's database is named metawiki as far as I can tell [04:34:21] that's probably the central auth central db [04:34:32] Does the delete3wiki database exist [04:34:41] ? [04:35:04] No delete3wiki was deleted, as it was never meant for any use. [04:35:13] just for testing [04:35:34] Do you have any users with accounts still merged on delete3wiki? [04:35:48] I do not have access to the database, but possibly.. [04:36:28] But user account creation worked a few hours ago (and delete3 wiki was delete 1 or 2 days ago) [04:36:36] 14:58 (User creation log) . . User account Unsetlay (Talk | contribs | block) was created (UTC, yesterday) [04:39:17] Reception123: what is $wgCentralAuthLoginWiki set to? [04:40:16] 'wgCentralAuthAutoLoginWikis' => array( 'default' => array( 'spiral.wiki' => 'spiralwiki', [04:40:31] https://github.com/miraheze/mw-config/blob/master/LocalSettings.php [04:41:28] Reception123, you don't have access to the database? [04:41:34] so you're not actually a miraheze sysadmin? [04:41:38] No,. [04:41:48] Both sysadmins are not here ATM. [04:42:03] I have emailed them of course, but they will probably not come back for some hours [04:46:53] I don't really see the LoadBalancer config in that file, maybe something wrong with it [04:47:35] What does LoadBalancer do? [04:48:48] It handles connecting to the database [04:49:12] particularly for foreign wiki connections, its configuration is important [04:49:56] although maybe they're just using $wgLocalDatabases instead. I'm not that familar with what that config var does [04:50:49] no, that wouldn't be sufficient [04:51:12] i don't know, at the start we could create or log in at all and then we configured all of these files.. [04:51:38] *couldn't [04:52:03] Since 2 august there have been no more account creation errors until today. [05:37:43] the answer is always: don't use CentralAuth! [05:41:29] Especially because they're starting a wiki from scratch and have no legacy accounts to support... [05:43:25] Issue was fixed! The wiki was deleted but not removed from the DB [11:02:29] Hi all [11:03:58] looking for help with composer.json and mw if anyone is available [11:04:47] have mw setup on a localhost ... in own sub-domain, [11:07:13] within sub-domain, mw is loaded into folder "mw" .... which gives me a URL of - my_subdomain_tld/mw/index.php .... [11:07:52] this is all as expected, so no help needed there ... [11:08:46] am trying to create a composer file so I can easily port my entire test wiki to live host ... [11:10:56] given that my_subdomain_tld is project root .... do I create a composer.json in there? .... or do I use the modified version ( in mw/ ) created whilst setting up my test wiki ? [12:08:16] should composer queries be asked here, or in wikimedia-dev channel? [13:12:35] I want to write a template which recieves a datetime as parameters and displays it according to the user's timezone and datetime format preferences. Is there any way to do this using magic words or extensions? [13:14:40] looks like I can use the {{#formatdate}} magic word to take care of the datetime format preferences, but I haven't seen anything timezone related [13:48:45] hello I woud like to get information about projects for Google Summer of Code [16:25:45] hey i was wondering, (i think it is possible but not sure), is there any hooks for say pointing mediawiki at git repos, for it to clone in some temp space and read the markdown and populate html pages from it on a loop keeping pages insync ? [16:37:09] slap_stick: none that i know of, but that would be a very interesting project! [16:37:35] slap_stick: subbu prototyped a markdown-to-wikitext converter at the last hackathon, so that would be one piece of the project. [16:37:40] oh i would have thought someone would have done it by now ;-) [16:37:50] yeh [16:39:10] i used parsoid to do it .. but, as was pointed out to me ... markdown is simple enough that you could probably write a straightforward markdown -> wikitext script .. assuming you can handle all the different variants. [16:39:48] so, i guess the benefit of going the parsoid route is that we are insulated from those details of the variants as long as there is a markdown parser lib out there that knows about them. [16:40:27] slap_stick, https://gerrit.wikimedia.org/r/#/c/225253/ if you want to run with it. [16:40:49] cool [16:40:52] thanks [16:44:52] running mw 1.24 I am getting a 'doubling up' of results reported by http://demo.myoffice.wiki/index.php?title=Special%3ASearch&profile=default&search=swot&fulltext=Search ... I have not loaded any extension that relates to search.... is there a known fix for this? thanks [16:51:54] rebuilding the search index may solve that... supposing the underlying issue (if any) has been resolved [16:54:00] oops, fell off for a moment [16:54:06] running mw 1.24 I am getting a 'doubling up' of results reported by http://demo.myoffice.wiki/index.php?title=Special%3ASearch&profile=default&search=swot&fulltext=Search ... I have not loaded any extension that relates to search.... is there a known fix for this? thanks [16:55:37] rebuilding the search index may solve that... supposing the underlying issue (if any) has been resolved [17:08:59] Vulpix, I ran rebuildtextindex.php but still the same problem persists [17:11:10] please, this is a problem [17:12:07] I'm wondering what search engine are you using... my stock test 1.25 wiki doesn't display results as yours (titles vs text) [17:13:06] I haven't explored mw search capabilities, really [17:13:48] oops i meant i am running 1.125 also [17:16:04] no extension has been loaded relating to search... is there anyone else could provide insight to what I should/can do? [17:16:46] wait to see if anyone here knows more about search [17:17:03] "my stock test 1.25 wiki doesn't display results as yours (titles vs text)" -- odd to hear [17:17:44] maybe translations is playing a role? [17:18:55] alright i guess i need to disable all extensions? [17:21:35] you can disable them and rebuildtextindex.php again, preferably on a test wiki, though, or your wiki may look broken meanwhile ;) [17:42:06] is anyone here using the accesscontrol pextension? [20:11:02] Good afternoon, quick question (hopefully) I am setting a mediawiki install and wanted to include navboxes similar to wikipedia. I took a look at the templates there but they nest extremely deep and to modules. Is there a simple way to include navboxes? [20:12:24] yes [20:16:17] Platonides, how would I do that? [20:21:00] is this the channel to report mediawiki.org problems? Protected pages on mw.org such as https://www.mediawiki.org/wiki/Template:Extension display a red "Lua error in Module:Protection_banner at line 770: attempt to call upvalue 'makeFileLink' (a nil value)." [20:25:05] spagewmf: looks like hashar messed it up by importing from en.wp? [20:25:51] MatmaRex: yup, Module:Documentation is calling :wikitext(p.protectionTemplate(env)) with the wrong/different parameters. [20:33:20] * gangleri|back slaps brion around a bit with a large fishbot [20:35:40] (no, protectionTemplate is a local function. And the enwiki versions that hashar imported seem OK, unchanged in months.) [20:36:30] Hi! I have an issue with a global.js Javascript witch dooes **not** work at other WMF wikis the page is https://meta.wikimedia.org/?curid=8341729 and the BiDirectionality editing help was made by brion and sparkla many years ago; can anybody fix that code in order to get it running everywhere via global.js ? [20:51:45] gangleri|back: any error messages in the browser's developer tools? [20:52:33] I am not familiar with the browser's developer tools [20:53:50] andre__ maybe you can copy the code in your [[m:special:MyPage/global.js]] page [20:55:27] Anyone here? [20:55:28] Hi reynaldo, I am here, if you need anything, please ask, otherwise no one is going to help you... Thank you [20:56:02] I’m having trouble finding examples for querying with the wiki API [20:56:08] gangleri|back, which browser? [20:56:10] Does anyone know where I can find some? [20:56:47] reynaldo, look at the api output [20:56:49] reynaldo, https://www.mediawiki.org/wiki/API:Main_page#Getting_started ? [20:56:55] or https://www.mediawiki.org/wiki/API:Tutorial [20:56:57] Right, it’s pretty terse [20:57:30] reynaldo: what are you trying to do? [20:57:45] andre__ I am using FireFox nightly build Mozilla/5.0 (Windows NT 10.0; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0 [20:57:52] I’m trying to use wikitravel to query for destinations, e.g., “San Francisco” [20:57:53] reynaldo: http://devhub.wmflabs.org/wiki/API:Web_APIs_hub is a different introduction to it all [20:58:11] Thanks, you guys are pretty responsive [20:58:49] reynaldo: OK, so you want to find out about the page https://en.wikivoyage.org/wiki/San_Francisco , or do you want to see if such a page exists? [20:59:00] Find out the page exists [20:59:54] Like an index API [21:00:11] reynaldo: OK, try https://www.mediawiki.org/wiki/API:Search_and_discovery [21:00:23] gangleri|back, https://developer.mozilla.org/en-US/docs/Tools/Web_Console [21:00:42] Thanks [21:00:43] gangleri|back, or just press Ctrl+Shift+J [21:01:03] gangleri|back, and then reload the page and bypass the browser cache. curious if there will be some JS errors in the web console [21:01:20] and that's normally a good starting point for investigation [21:01:54] http://wikitravel.org/wiki/en/api.php?format=json&action=query&list=search&srsearch=San%20Francisco [21:02:02] Awesome, let me see if I can use this... [21:02:36] Ok so, given the title, I can find the corresponding wiki? [21:02:55] I am logged in with my normal lery raynhart inHebr script account there I have to go to a wiki without local page but I need to create global.js first [21:04:46] reynaldo: I don't know about wikitravel, it's not WMF and using an older version of MediaWiki. "In 2012, a large portion of the editing community, including the founders, left and brought their contributions to the Wikivoyage project, which was relaunched as a Wikimedia Foundation-hosted project in January 2013." [21:05:08] What’s WMF? [21:05:23] Oh [21:05:25] Nevermind [21:05:40] andre__ please copy / include the content of https://meta.wikimedia.org/wiki/MediaWiki:Gadget-BiDiEditing.js to your global.js page [21:05:49] Hm, thanks though! [21:06:53] gangleri|back: oh sorry I don't have a wiki handy where I could overwrite global.js [21:06:54] reynaldo: haha, Wikimedia Foundation coordinates development of the MediaWiki software and supports ~800 wikis including the famous Wikipedias. But there are lots of third-party wikis running the MediaWiki software. Much of the API should work on those wikis as well, as you've seen, but especially search may be configured differently [21:07:45] I can do it tomorrow [21:08:25] reynaldo: already tried wikivoyage instead of wikitravel? :P (Disclaimer: Wikivoyage is a WMF wiki so I'm biased) [21:08:34] Maybe I could use wikivoyage [21:09:05] It looks like the data for wikitravel and wikivoyage for SF are the same [21:09:20] Ah, I’ll probably use wikivoyage then [21:11:05] Stepping away, be right back [21:11:59] reynaldo: after you run search and found an article, think about what you want to do. Just link to it? Show partial information about it (e.g. the lead image, summary text, description)? Render the text in your own application? [21:12:13] those are all things you can do with APIs. [21:13:34] any suggestion on how to debug a skin refusing to be enabled? [21:13:53] yes, I did add the require_once to LocalSettings.php [21:16:14] Andre__: here multiple lines: at https://mi.wikipedia.org/?curid=14995#Andre [21:19:31] gangleri|back: hmm, does not look too suspicious to me but I'm not a coder. If you attach &debug=true or ?debug=true (if there's no other ? before) to your URL, you should get the exact files and lines for the errors [21:19:42] and then you could investigate [21:22:16] sparkla and brion have written that code / gadget in February 2008 see https://test.wikipedia.org/w/index.php?title=MediaWiki:Gadget-BiDiEditing.js&action=history [21:22:49] andre__ I was absent many years who can help [21:24:21] hopefully somebody around with JS skills, I cannot spontaneously recommend somebody either, sorry [21:39:51] Krenair: thanks for the importer right. Related, when people do an interwiki import on mw.org, do they usually "Copy all history revisions for this page" ? I want to import w:en:Module:Documentation/doc [21:40:40] Not sure [21:40:42] I think so? [21:47:03] it doesn't harm anyway [21:47:12] so I'd go for it [21:48:39] Krenair, Platonides: thanks. FWIW https://www.mediawiki.org/wiki/Module:Documentation?action=history has " (120 revisions imported from w:en:Module:Documentation)" which I assume means hashar didn't copy all history revisions. [21:49:36] spagewmf, no, it means he *did* copy all history revisions [21:49:44] notice how there are exactly 120 revisions in the source page [21:49:46] https://en.wikipedia.org/w/index.php?title=Module:Documentation&action=info [21:50:02] re: BiDi tests of own global account meta user page : https://meta.wikimedia.org/?curid=8332285#BiDi_tests contains a list of RTL wikis using special:MyPage [21:54:25] Krenair: aha, I was confused (as always) because the mw.org history shows 2015 revisions by Paladox2017 and Jackmcbarn that aren't in the enwiki history, but it makes sense that the import somehow intersperses local and imported revisions. Thanks [21:55:00] Yeah, importing is generally terrible. [21:55:51] Krenair: my brain filled up with git merge internals, no room for Special:Import behavior :) [21:55:56] Heh :) [21:57:18] Anyway, importing the modules' /doc subpages didn't help the Lua error in https://www.mediawiki.org/wiki/Template:Documentation and its callers. needs a Mr. Stradivarius [23:43:00] Is it appropriate to use mw.user.options.set(...) to configure user scripts? For example, adding mw.user.options.set("some-script", { enableX: false }) before loading the script. [23:51:21] Pathoschild: you could prefix them with "userjs-", which makes them consistent with https://www.mediawiki.org/wiki/API:Options#Changing_options [23:52:24] Thanks!