[00:18:02] Timeless is on Beta Labs? Interesting. [01:33:16] how do I hide redirects from showing up in search suggestions [01:35:25] Probably not easily. [01:35:27] Why? [03:06:03] Esther: annoying double results from redirects of different casing [03:11:35] c: The behavior should be to show the target as the top result. [03:11:45] And not show the misspellings/redirects directly. [03:11:54] That's how the English Wikipedia behaves, AFAIK. [03:12:40] it does show the target on top, the target and the redirect look the same [03:13:33] c: Use a better search backend? [03:13:54] Maybe it's a configuration option. [03:14:43] if there is a configuration option i haven't found it [03:20:28] c: Are you using CirrusSearch? [03:20:49] And/or Elastica? [03:20:56] Or Elasticsearch? [03:21:14] probably not, whatever comes out of the box [03:21:28] Only heartache, I've found. [03:25:03] https://en.wikipedia.org/w/api.php?action=opensearch&format=json&formatversion=2&search=Barak+Oba&namespace=0&limit=10&suggest=true [03:25:35] https://www.mediawiki.org/wiki/API:Opensearch [03:25:39] So... are you using that? [03:26:36] a search outputs a w/index.php?title=Special%3ASearch&search=Open+Sea&go=Go [03:26:48] c: Is this wiki linkable? [03:26:57] https://ffxiv.gamerescape.com/wiki/Main_Page [03:27:01] Example input? [03:27:33] a good one would be Fire and [03:28:14] c: I can't even get the suggestions to work because of JS errors? [03:29:15] God almighty this site. [03:29:17] I can't with this. [03:29:26] we're working on another issue with search suggest not functioning inside of a wordpress menu, try on special:search [03:29:26] It's up to 2600 requests and 12.3 MB transferred. [03:29:32] Oh, over 3200 now. [03:29:43] 4000 requests! [03:29:51] What is it possibly loading... [03:30:24] Wow, that's impressively terrible hosting. [03:30:44] The auto-playing videos... [03:31:05] yes those are evil [03:31:25] Well, I guess I can just use the API. [03:32:11] https://ffxiv.gamerescape.com/w/api.php?action=opensearch&format=json&formatversion=2&search=Fire+and&namespace=0&limit=10&suggest=true [03:32:21] So you don't want "Fire and blood" to be listed? [03:32:51] in suggestions [03:32:54] https://ffxiv.gamerescape.com/w/api.php?action=opensearch&format=json&formatversion=2&search=Fire+and&namespace=0&limit=10&suggest=true&redirects=resolve [03:33:24] Looks like you need to set &redirects=resolve. [03:36:07] appears so, where is that set [03:39:22] https://ffxiv.gamerescape.com/w/load.php?debug=false&lang=en&modules=mediawiki.searchSuggest I guess? [03:40:17] That's resources/src/mediawiki/mediawiki.searchSuggest.js [03:40:21] Can you edit that file? [03:40:58] yes [03:54:16] c: Great! [03:54:18] Sounds like you're all set. [03:54:36] Esther: almost, looking where to plug it in [03:55:15] c: Do you see this line? [03:55:19] search: query, [03:55:33] You can add this line below it: [03:55:54] redirects: 'resolve', [03:55:59] To see if that fixes it. [03:56:08] ooh i was close, i didn't have it wrapped in '' [03:56:44] success [03:57:02] I don't see a way to do that more cleanly. [03:57:06] Maybe we should have one. [03:57:10] You can file a Phabricator task if you want. [03:57:26] I guess Wikimedia wikis get around the issue by... doing something. [03:57:43] last time I filed a phabricator task someone rudely closed it within seconds! [03:58:06] Well, do it better next time, then. [03:58:35] i did it correctly, it just so happened that the extension I was filing an issue on did not yet have a presense on phabricator (only on it's github) [03:58:49] I remember bb. [03:58:56] I was just teasing. [03:59:34] inconsistency is annoying, everything should be in one place [04:00:10] You're telling me! [04:01:18] now I'm going to pester you about getting search suggestions to work in the search box in the wordpress menu [04:01:39] I can't with that site. [04:01:56] All JavaScript is terrible, but that site is particularly egregious. [04:02:50] that's because ads are a necessary evil that could probably be implemented better, i just block them [08:17:08] Im Gergő from Hungary Im trying out mediawiki for the first time, I wanted to make it easier and more visual to edit pages so Ive installed VisualEditor but it seems to need parsoid as well, how to install it on Windows 10. Im running my mediawikipage on my local computer using xampp [08:18:29] Hello, I'm looking to hide my mediawiki while I work on it. I've looked up the preventing access help page but I don't really get it. Can anyone help with what exactly I have to click on to get into these settings, and then do I just add in $wgGroupPermissions['*']['read'] = false. Thank you in advance! [08:19:44] LocalSettings.php is in the file system and not something to click into. During configuration it will be generated. [08:22:15] Okay thank you. So I need to contact the system administrator then? [08:23:58] Im Gergő from Hungary Im trying out mediawiki for the first time, I wanted to make it easier and more visual to edit pages so Ive installed VisualEditor but it seems to need parsoid as well, how to install it on Windows 10. Im running my mediawikipage on my local computer using xampp [08:24:29] the question is how do i set this up? im struggling to find a download link [08:24:42] the installation guide is not really clear for me [11:24:25] hi there...what's the best way to move content of just one namespace from one mediawiki instance to another? [11:30:22] beli: if the second wiki starts empty, you can use grabbers. If not, the only solution I think should be through XML dumps [11:32:10] Vulpix: it's like productional env and testing env....we want to rebuild content on testing env and deploy it afterwards to productional env. so you mean to export to xml; delete any content on prod_env in the namespace; cleanup the xml for just the namespace; and import the xmp to prod_env is the only way? [11:34:58] the XML dump can be generated for just one namespace. Apart from that, it should be better if, after testing, you apply the same process of page editing on prod instead of removing content from prod and applying content from testing [11:36:02] you can just have testing as a mirror of prod by generating a complete backup, and apply your data modification process on both environments [11:50:57] Parameter 1 to visualeditorhooks::onbeforepagedisplay() [11:51:08] im getting this error if i activate visualeditor [11:52:08] Parameter 1 what? [11:52:44] VisualEditor needs "current" master version of MediaWiki from git to work, IIRC [11:53:16] visualeditorhooks::onbeforepagedisplay() [11:53:46] that's not the complete error message [11:54:22] parameter 1 to visualeditorhooks::onbeforepagedisplay() expected to be a reference, value given in ....\htdocs\mywiki\includes\hooks.php on line 195 [11:54:52] line 195 is: $retval = call_user_func_array( $callback, $hook_args ); [11:55:02] that's more useful, indeed [11:56:37] and is it useful to u now? [11:57:23] What MediaWiki version are you running? [11:57:32] last stable version [11:57:47] do you mean 1.28.2? [11:58:26] mediawiki-1.28.2 [11:58:28] yes [11:59:52] and you installed the 1.28 version of VisualEditor from https://www.mediawiki.org/wiki/Special:ExtensionDistributor/VisualEditor right? [12:00:04] yes [12:00:11] im running mediawiki on my own computer using xampp [12:00:48] this warning parameter 1 blabla is at the top of my webpage and if i want to edit and click on editing via virtual editor [12:00:56] it stops loading and get an error message [12:01:08] "(curl error: 28) Timeout was reached" [12:02:07] aha, this seems the same problem https://www.mediawiki.org/wiki/Topic:Tr9pl906tvyxqxz6 [12:02:28] timeout means probably parsoid is not running on the server [12:02:56] yes i installed parsoid [12:02:59] via node [12:03:39] do i have to do anything else with it rather than just install it from node? [12:04:04] be sure it's running, firewall is not blocking connections to it, and configuration matches IP address and port on both sides (MediaWIki and parsoid) [12:04:23] with "netstat" you should be able to see if parsoid is listening on any port [12:06:00] but is locally hosted then where can i tell it that its a localhost [12:07:15] Vulpix: thanks for your advices [12:07:37] it's probably assuming localhost already, by default [12:09:17] at xampp netstat cant seem to find parsoid :S [12:10:19] maybe is it because [12:10:27] i was so bloody stupid [12:10:32] and i installed it from cmd [12:10:36] not from xampp shell?? :O [12:11:26] i hope this would be it [12:11:35] thanks for your patience m8 [12:12:30] I don't know, I haven't installed parsoid myself [12:12:46] and what about visualeditor? [12:12:58] do u have it on ur mediawiki (assuming you use it) [12:13:03] no [12:14:45] me myself wouldnt want it too cause i dont mind using the plain old editor [12:15:16] but this gonna be an intranet for tutorials etc for my company and the regular users wouldnt be happy if they had to use that thats y i want visualeditor [12:18:20] I don't think parsoid needs to be installed from the xampp console, it's a standalone process run from nodejs [12:19:47] first you should do is make sure nodejs is running with the parsoid script [12:54:57] how to check that? [12:59:55] try task manager [15:31:56] so i setup fixDoubleRedirects.php in crontab so I wouldn't have to worry about them, but curiously they do not appear in recent changes not even as bot edits but populate in the contributions for "Redirect fixer" - is this some sort of database magic? i would expect if they are actual edits it should be possible to see the changes in RC [15:33:27] c: It depends on how the script in question was implemented. Most maintinance scripts make edits in RC, but occasionally some will do db magic [15:34:15] i'm not familiar with the scripts author but I would expect if they are editing as a pseudo account, it would be able to be logged in RC [15:36:23] huh, the script doesn't even do it itself, it uses the jobqueue, i guess from the old double redirect fixer feature [15:37:39] i was wondering that because I saw something about jobs>10000 in the file [15:38:32] hmm, the job does use EDIT_UPDATE | EDIT_SUPPRESS_RC | EDIT_INTERNAL flags [15:38:42] so that would kill the rc entry [15:38:50] I don't even know what EDIT_INTERNAL does [15:39:33] (this is line 252 of includes/jobqueue/jobs/DoubleRedirectJob.php that i'm looking at) [15:39:44] yeah just saw that in a grep [15:40:04] i assume i can remove the EDIT_SUPPRESS_RC but it will be overwritten on an upgrade [15:40:05] I think EDIT_INTERNAL means that it bypasses blocks [15:40:12] (but could be wrong) [15:40:53] hmm, appearently it means ignore the cache from api action=stashedit [15:41:37] Not appearing in RecentChanges is by design, apparently, or at least is documented at https://www.mediawiki.org/wiki/Manual:FixDoubleRedirects.php [15:41:46] c: Yes, but we do not officially recommend editing the mediawiki code [15:42:19] it could have a parameter to choose whether leave entries in RC or not, though [15:42:48] yeah, if someone submitted a patch to add an option to show things in RC, I would review the patch [15:43:43] c: actually you don't need a cron if you set https://www.mediawiki.org/wiki/Manual:$wgFixDoubleRedirects [15:45:26] it won't show up on RC neither [15:45:50] Does that feature still work, I thought it was broken [15:46:17] oh, its still there, nevermind [15:46:25] maybe it just got turned off on enwikipedia [15:47:20] it uses the job queue so if it doesn't work it may be because of T100085 and related [15:47:20] T100085: PHP Notice: JobQueueGroup::__destruct: 1 buffered job(s) never inserted - https://phabricator.wikimedia.org/T100085 [15:49:13] I had a vauge memory of the feature being removed entirely, but I guess I was wrong [16:51:31] Vulpix: the whole point of this conversation was to get it to show up in RC [17:39:53] Anyone worked on a SessionProvider for 1.27+? [17:40:42] for some reason information that is being stuck in the session manager isn't coming back out -- but just for my user [17:40:49] other people seem to be fine [18:23:34] Hi, I'm looking into using MediaWiki but I have a couple questions. 1. who owns the data that we upload to the server? 2. can it be put behind our company's firewall? [18:24:50] You do. And yes, if you want to [18:25:15] great, that's all I need for now. thanks! [18:33:02] * MaxSem bites Reedy. It's owned by whomever the license says! [18:33:56] * bawolff bites MaxSem. The license permits certain usages, it does not transfer ownership :P [18:34:04] *copyright ownership [18:34:31] or at least ours do [18:34:57] although Guest15638 is probably going to setup his wiki with everything is owned by his company [18:37:06] "Hey, I've created a wiki for /b/ participants, I now own everything they uploaded?" [18:48:24] Hello, I am making a MediaWiki skin. For some reason, I have to load a JavaScript from other server. But $out->addScriptFile() doesn't work. [18:50:40] Here is my code https://github.com/openSUSE-zh/wiki/blob/master/skins/Chameleon.php#L30 [18:50:50] Hope somebody could help me! [18:51:50] define doesn't work? [18:52:18] guoyunhe: Since MediaWiki 1.17, resource loader is supposed to be used for js/css that's part of the skin [18:55:38] guoyunhe: The $out->addScriptFiles() just get passed back to the skin at a later point, my guess would be that the skin isn't handling them correctly when they are passed back to the template [18:56:43] You mean the script file itself has problem? [18:58:47] no [18:59:10] I mean the ChemelonTemplate part is probably missing something [18:59:20] I'm not really a skin expert so this is just a guess [19:04:16] although It does include headelement, which is all I thought was needed [19:05:08] i finally used an ugly way. just add