[04:32:57] I'm trying to find a way to get some stuff out of my mediawiki for offline reading [04:33:29] I used dumphtml long time ago, it was doing its job back then :) [04:36:23] hey, [04:36:39] can anyone tell me how to contribute to media wiki [04:36:43] i am new to this [04:36:56] i am unable to find how to contribute to this [04:42:43] bharatmrd: Take a look at https://www.mediawiki.org/wiki/How_to_become_a_MediaWiki_hacker to know more about contributing to MediaWiki. [04:43:01] nvt: WikiTeam's downloader can export a wiki to XML which can then be imported into a local wiki installed on your own computer. https://github.com/WikiTeam/wikiteam [04:43:32] @abhinand: I had a look at this [04:43:44] now i am at little annoying bugs [04:44:03] and have no idea how to contribute [04:46:57] bharatmrd: Did you install MediaWiki locally in your machine ? [04:47:21] yeah [04:47:27] i have installed it [04:50:41] @abhinand: yeah, I have installed it [04:51:31] bharatmrd: https://phabricator.wikimedia.org/project/profile/169/ are for beginners to start with. See the "Workboard" for small bugs. [04:52:21] @abhinand: okay. Will I have to clone the bugs repo from git? [04:55:07] Replicate the bug locally in your machine and try to find the fix. [04:56:03] @abhinand: okay. Thanks a lot for helping [04:57:48] Code, Share and Grow :) [05:02:51] You'l probably want to read up on the gerrit revision system as well, since Mediawiki uses that and its online interface is not obvious. Though, working with the mediawiki project itself can be quite difficult, if you're interested in just making stuff for Mediawiki, there are skins and extensions that can be made. [05:03:04] @abhinand: sure :) [05:03:11] Mediawiki has a severe lack of skins, and there's a lot of stuff out there you can make an extension for. [05:25:17] hey [05:25:43] anyone know any contributppor who helped in creating wikipedia android a [05:25:50] ap [11:09:02] Hi! [11:09:20] AbuseFilter does funny things: [11:09:26] Warning: This filter was automatically disabled as a safety measure. It reached the limit of matching more than 5.00% of actions. [11:09:53] that's not too surprising if a wiki with 3 "normal" edits per day is under spam attack ;-) [11:10:03] is there a way to quickly re-enable this filter? [11:10:30] (currently, the spammers can happily post spam...) [11:18:38] cboltz: You can modify that limit https://www.mediawiki.org/wiki/Extension:AbuseFilter#Configuration [11:19:28] And the DisableAge seems to be the time limit. [11:20:11] the problem is that the server admin isn't too responsive :-/ [11:20:21] but nevertheless: thanks! [11:20:39] as temporary solution, I created a copy of the filter ;-) [11:59:30] hey there [12:00:12] got some problems with the update script: if i run update.php via ssh it shows an error message: your composer.lock file is not up to date, run "composer update" to install newer dependencies [12:05:58] nic123: Did you run "composer update" then? [12:21:25] nic123: Depends on how you installed things. May simply need to 'rm composer.lock' first. [12:29:23] oh yeah, great. i've accidentally moved an old composer.lock to my root directory [12:29:32] simply removed it and the update worked [12:29:43] thanks, worked like a charm! [13:42:42] morning [13:42:48] hey [13:43:55] is there anyone who could give me some advice relating to the preparation of a multilanguage wiki? [13:46:05] there is an existing single-language wiki wich i wanted to translate to another language. [13:46:27] i'm not sure wether to realise it with interwiki or some translation-extensions... [13:56:53] test < connection dropouts [14:55:06] anyone there to discuss a solution with me? [15:01:25] nic123: https://www.mediawiki.org/wiki/Extension:Translate https://www.mediawiki.org/wiki/Interlanguage_links https://www.mediawiki.org/wiki/Manual:Wiki_family come to my mind [15:01:33] depends on what exactly you want to achieve [15:02:42] yeah, those are the solutions i've already found [15:02:56] but i'm not sure which one to choose [15:03:35] i've already got a relatively big wiki running [15:04:09] and i'm not a tech-geek so it costs me a lot of energy to maintain the whole thing [15:05:00] if i'm choosing the wiki family-solution, do i have to keep several installations up-to-date? [16:26:53] hi all [16:28:00] Can you please help me? I'm trying to use Special:Nuke to mass-delete a lot of pages from my wiki, but the search does not return any pages. Any idea of what I could be doing wrong? [16:28:43] biyectivo: What do you have in the pattern field and what pages do you expect it to return? [16:29:55] Actually I was expecting to fill the form with a wildcard so it could return every existing page and I could select and delete a number of them [16:30:17] So I tried all fields blank and also an asterisk in the 'Pattern' field [16:30:57] biyectivo: it will only list pages that are on Special:RecentChanges (by default: edited in last 90 days) [16:31:01] Asterisk doesn't work there. [16:31:09] You need to use % or _ [16:31:11] biyectivo: the patttern uses the SQL 'like' syntax, i think. try a percent sign [16:31:24] If you leave the field blank, it should show all the pages [16:33:19] @MatmaRex, ok, that is why it is not showing them [16:33:31] Any way to display and select/delete from a list of ALL pages? [16:33:58] perhaps with another extension [16:35:16] There is DeleteBatch extension but I don't think it lets you query by patterns. [16:39:05] biyectivo: the SmiteSpam extension was designed with this purpose in mind, you could try it and let us know how well it works for you [16:44:30] @Nemo_bis thanks. I will try that and let you know. [17:31:15] @Nemo_bis, no it did not work.. It does not show any pages in the "possible spam pages" listing. [17:31:33] It seems to me like a basic function, yet it is so complicated [17:32:34] biyectivo: what matches did you try? [17:33:08] there were no prompts for matches - loading the SmiteSpam page runs an automatic page analyzer that determines what is considered as spam with different degrees of probability [18:07:05] hi [18:07:12] Nemo_bis and others, just so you know [18:07:48] Not exactly what I was looking for, but I used the Delete Batch extension (https://www.mediawiki.org/wiki/Extension:DeleteBatch) [18:08:27] It does not let you click and select to delete, but it lets you type/paste a list of pages to delete (using the title of the page and an optional deletion reason) [18:28:38] another question [18:28:55] any idea on why mediawiki 1.26.3 is not autocompleting search terms on the search box? [18:29:24] Hi pals! [18:29:40] Let us imagine a bunch of pages that are grouped in categories. [18:30:07] Is there a way to change a page, so to change its formatting in category list? [18:30:27] May I make something in the page, so to have its name listed in italics in cat page? [18:30:49] Or make something in the page so to have it with some mark in category page? [18:31:30] The overall idea looks like this. We have transcripts in the pages. We mark the speakers in the pages. We have cats for speakers. We list the pages with a speaker in his category. [18:31:44] Sometimes a speaker does speak, sometimes he keeps silence. [18:32:22] May we mark the pages with speaking speaker? And not mark the pages with silent speaker? [18:32:24] Thank you. [20:26:25] TypeError: Cannot read property 'uri' of undefined [20:26:28] I am getting this from Parsoid [20:26:34] Has anyone seen this error before? [20:51:03] TypeError: Cannot read property 'uri' of undefined [20:51:06] Getting this from Parsoid [20:51:08] Anyone seen it? [20:53:01] tr3l1: never seen that. Configuration error? [20:53:27] I can't account for it. [20:53:37] It gives the error on a default, unedited configuration file with no changes. [20:54:10] Official packages used to install [20:54:11] Standard OS [20:54:20] It seems that something is wrong with the official packages. [20:54:29] It is too bad I don't have time for bug reports. [20:54:54] Is that the jessie-mediawiki package? [20:55:28] sudo apt-add-repository "deb https://releases.wikimedia.org/debian trusty-mediawiki main" [20:55:39] trusty-mediawiki. [20:56:22] I have no idea honestly [20:56:34] Yeah, I didn't hope for much [20:56:47] None of this software is very well supported [20:56:58] The wiki documentation is torturous at best. [20:57:10] Its the inconsistency that hurts the most. None of the information is organized. [21:00:01] Not to mention I can't find the version of Parsoid anywhere [21:02:37] Figured it out [21:02:41] The package is busted [21:02:57] the settings.js included with the package won't start. [21:02:59] :) [21:03:09] cp /usr/lib/parsoid/src/api/localsettings.js.example settings.js [21:03:12] That will take care of the details [21:03:29] If anybody cares about the bug, that will take care of it. [21:03:38] the /etc/mediawiki/parsoid/settings.js is fucked [21:21:08] Would it be too much to ask to get some version requirements? [21:21:15] If parsoid doesn't work on node 0.10, just let us know [21:22:10] What version does it need? [21:22:13] I can't find ANY info on that. [21:22:14] ffs [22:19:53] Anyone worked with Parsoid? [22:19:54] Cannot GET /v3/page/html/Main_Page [22:20:11] I can't figure out why it isn't getting a valid page? [22:21:48] Anyone at all? [22:25:22] Heh [22:25:27] 300 people here and not one person active. [22:29:52] first of all, you're active [22:30:00] And there's 322 [22:30:14] :) [22:30:25] tr3l1: where are you seeing this error? [22:30:58] tr3l1: plenty active, but no one has any idea about that error [22:31:02] I'm seeing it when parsoid is attempting to contact a correcty configured mediawiki [22:34:06] are you comfortable working in the command line, and do you have cURL installed? (if you're on linux or OSX, the answer to the latter question is most likely yes). if so, try "curl -vvv address.of.mediawiki/v3/page/html/Main_Page" [22:34:09] and pastebin the result [22:35:10] Cannot GET /docs.ihnetworks.com/v3/page/html/Main_Page [22:35:19] It ALWAYS says cannot get [22:35:47] sounds like you messed up the config [22:36:10] Where? [22:36:16] What *specifically* is messed up? [22:36:17] let's try to find out! [22:36:26] I've reinstalled it 4 times [22:36:27] Completely [22:36:29] did you install parsoid from source or a package manager? [22:36:59] It is running Ubuntu 14.04 LTS [22:37:07] k, sec [22:37:11] Default packages, default repos, default from documentation stanzas [22:37:19] Official packages from the site [22:37:20] I need to remember where the config file is [22:37:22] All official [22:37:29] Installed in the last 15 minutes [22:38:11] I've tried literally everything [22:38:12] no SSL [22:38:13] SSL [22:38:18] different mediawiki configs [22:38:51] ok [22:38:58] what does your /etc/mediawiki/parsoid/settings.js look like? [22:39:03] disabled htpasswd protection for the wiki, tried to allow all connections, tried private and public. [22:39:12] specifically the parsoidConfig.setMwApi line [22:39:28] 100% default [22:39:37] localhost everything [22:39:42] Default ports [22:39:44] can you paste that line? [22:39:50] Its default.. [22:39:56] I don't know what the default is [22:40:09] That is a problem. [22:40:15] how so? [22:40:20] my install is customized [22:40:22] It has changed in the last version or so to something the documentation sees as wrong. [22:40:28] so I'm asking you to please paste what you have so I can see it [22:40:32] If you use what is in the docs, it will scream [22:40:45] (just the setMwApi line) [22:41:02] One second. [22:43:20] parsoidConfig.setMwApi('localhost', { uri: 'http://localhost/w/api.php' }); [22:43:35] ok [22:43:48] and on the mediawiki side of things, what version of mediawiki are you running? [22:43:54] stable default [22:44:01] sigh [22:44:05] version number please [22:44:07] I just downloaded and installed everything 15 minutes ago [22:44:11] you can get it from Special:Version [22:44:17] 1.26.3 [22:44:22] From the tar I downloaded [22:44:41] cool, so you're going to need to customize your parsoid config a bit to make it work with 1.26 [22:44:49] Do tell [22:45:17] I love the way developers change shit for no reason and break hundreds of guides across the internet just to change syntax [22:46:01] for when I set it up with 1.26, I ended up using something like the following: { prefix: 'local', uri: 'http://localhost/w/api.php', domain: 'localhost' } [22:46:14] you will want to replace uri and domain with where your wiki is actually installed [22:46:18] No no no. [22:46:20] NO NO [22:46:32] That *old* syntax breaks it [22:46:36] hmm? [22:46:37] "unable to parse uri" [22:46:50] This: [22:46:50] parsoidConfig.setMwApi({ uri: 'https://your-mediawiki-server/api.php', prefix: 'localhost', domain: 'localhost' }); [22:46:55] It will break it [22:46:58] That syntax is no longer valid [22:47:03] prefix needs to be 'local' for 1.26 [22:47:10] (it's hardcoded on the php side of things) [22:47:24] assuming you grabbed the 1.26 branch of VisualEditor [22:48:21] local specifically or localhost? [22:48:45] local specifically [22:50:48] looking at my 1.26 install with VE, I have VisualEditor version 0.1.0 [22:51:00] Cannot GET /v3/page/html/Main_Page [22:51:04] No change. [22:51:09] I need more information about what it is doing. [22:51:17] Why it is failiing. [22:51:18] on your wiki, what version of VisualEditor did you install? [22:51:32] (check Special:Version) [22:51:38] https://www.mediawiki.org/wiki/Special:ExtensionDistributor/VisualEditor [22:51:39] That [22:51:51] A snapshot of version a733545 of the VisualEditor extension for MediaWiki REL1_26 has been created. Your download should start automatically in 5 seconds. [22:51:59] on your wiki, what version of VisualEditor did you install? [22:51:59] (check Special:Version) [22:52:33] if I ask you to fetch some info for me, please don't just say "the default" or some other sassy answer, it makes me really want to just stop trying to help [22:52:33] https://www.mediawiki.org/wiki/Extension:VisualEditor [22:52:33] 0.1.0 [22:52:40] and is not conducive to actually accomplishing things [22:52:43] ok, thank you [22:53:04] Skizzerz, let me be clear. Default, current, and up to date means that the version information is literally the default. [22:53:13] It is up to date to the stable version. [22:53:16] yes, and I have no idea what the defaults are [22:54:11] I'm going to check some things, it may take a few minutes [22:54:31] At this point, I'm stuck. [22:54:54] "Cannot GET" isn't terribly specific so I don't know what to debug. [22:55:53] in your wiki's LocalSettings.php, what is your $wgVirtualRestConfig set to? [22:57:30] http://pastebin.ca/3625829 [22:58:24] ah [22:58:27] that is incorrect [22:58:37] the 'url' should be pointing to your *parsoid* instance, not the wiki url [22:59:24] so by default that should be 'http://localhost:8142' [22:59:26] http://pastebin.ca/3625832 [22:59:54] The url was actually edited about a couple of minutes ago by mistake. It isn't a longstanding error. [23:01:05] unless parsoidConfig.serverPort is set in your settings.js (by default it is commented out, so parsoid listens on port 8142) [23:02:07] I changed it back to 8142 [23:02:09] No change [23:02:14] "Cannot GET" [23:02:48] ok, now let's check your /var/log/parsoid/parsoid.log file and see if there's anything relevant at the very bottom [23:03:40] [info][master][5710] initializing 7 workers [23:03:40] [info][worker][5721] loading ... [23:03:40] [info][worker][5713] loading ... [23:03:41] [info][worker][5721] ready on 0.0.0.0:8142 [23:03:41] [info][worker][5712] loading ... [23:03:41] [info][worker][5715] loading ... [23:03:42] [info][worker][5713] ready on 0.0.0.0:8142 [23:03:42] [info][worker][5718] loading ... [23:03:42] [info][worker][5717] loading ... [23:03:43] [info][worker][5723] loading ... [23:03:43] [info][worker][5712] ready on 0.0.0.0:8142 [23:03:44] [info][worker][5715] ready on 0.0.0.0:8142 [23:03:59] Oops, sorry about that. Forgetting my pastebin :) [23:04:04] I was about to say... :) [23:06:12] strange [23:06:23] what was the full error text again (the Cannot GET one)? [23:06:47] Cannot GET /v3/page/html/Main_Page [23:06:57] If I try any URI at all, its always Cannot GET [23:07:02] No changes. [23:07:11] I can't find a debugging mode for it that gives more verbose errors. [23:07:13] stack traces [23:09:14] I added 'local' into the URL and got: [23:09:16] Did not find page revisions for V3/page/html/ [23:12:51] ok [23:13:23] No more progress though [23:13:31] It just says Did not find page revisions when local is added [23:14:26] try going to http://your-wiki/w/api.php?action=visualeditor&format=jsonfm&paction=parse&page=Main_Page [23:14:42] (replace your-wiki with your actual wiki's path to api.php) [23:14:54] hopefully that should output a more useful error message [23:15:30] Blank page [23:15:39] ok, that indicates a PHP error [23:16:45] so try checking the php error log (I think it logs to the same place as apache, but not totally sure) [23:21:16] I'm really confused though because I don't see any reference to "v3" in my checkout of VisualEditor for 1.26 [23:21:36] so I'm wondering if you grabbed the latest VE, which may not be compatible with 1.26 [23:27:21] nvm found it [23:29:08] tr3l1: ok, so in your $wgVirtualRestConfig, ensure that the 'domain' key is set to something, and that it matches whatever you set in parsoid's settings.js for the domain [23:29:52] also check your /var/log/apache2/error.log file to see why that API request is giving a blank page [23:31:19] "info": "parsoidserver-http: HTTP 404", [23:31:36] ok that's something useful :) [23:31:47] did you check the domain thing? [23:32:42] The domain setting isn't used in the updated settings.js syntax [23:32:47] URI is [23:32:49] domain isn't there [23:33:23] if domain is omitted in settings.js it's derived from the URI value [23:33:40] (e.g. if uri is http://my-wiki/w/api.php then the domain is derived to my-wiki) [23:33:53] set domain in $wgVirtualRestConfig to whatever that value happens to be [23:33:53] I can't set it [23:34:03] the software goes nuts and errors every. singe. setting. if I try [23:34:21] in VirtualRestConfig? [23:34:46] parsoidConfig.setMwApi({ uri: 'http://yoursite.com/w/api.php', domain: 'yoursite.com', prefix: 'myspecialwiki' }); [23:35:00] Using that will cause parsoid to fail to start [23:35:09] The other syntax [23:35:19] parsoidConfig.setMwApi('local', { uri: 'https://docs.ihnetworks.com/api.php' }); [23:35:21] It doesn't have domain [23:35:29] You can't use the first one, it will bug out and fail [23:35:32] my parsoid install (also from apt) works just fine with that original syntax... I wonder if it's different [23:35:35] It took me AGES to figure that out [23:35:40] Heh [23:36:06] All I can say so far is the package maintainer needs to keep their day job [23:36:17] apt-cache show parsoid says I have version 0.5.1all [23:36:23] what does yours say? [23:36:49] dpkg -l|grep parsoid [23:36:49] ii parsoid 0.4.0 amd64 Web service converting HTML+RDFa to MediaWiki wikitext and back [23:37:13] ok, so you have an older version of parsoid [23:37:19] I have the latest one from repo [23:37:27] Whatever the repo gave my system, it installed [23:37:31] from official repos [23:37:32] they changed repos fairly recently [23:37:35] sudo apt-add-repository "deb https://releases.wikimedia.org/debian trusty-mediawiki main" [23:37:36] That one [23:37:38] No [23:37:41] You misunderstand. [23:37:47] Unless its the last 60 minutes, no way [23:37:53] The system didn't exist 60 minutes ago [23:37:56] no I was just about to link that [23:37:58] Its all 100% brand new [23:39:08] http://pastebin.ca/3625864 [23:39:09] oh, I have the debian version of the repo on mine [23:39:23] (jessie-mediawiki as opposed to trusty-mediawiki) [23:39:35] What version of nodejs? [23:40:02] 0.10.25~dfsg2-2ubuntu1 [23:46:11] tr3l1: ok yeah, for some reason the debian repo is more up to date than the trusty one [23:46:22] so switch to it in your /etc/apt/sources.list [23:46:48] (change "trusty-mediawiki" to "jessie-mediawiki", then re-update) [23:47:17] after that, you should get a more recent version of parsoid that will support the { prefix: ..., uri: ..., domain: ... } syntax [23:47:23] and everything should hopefully Just Work(tm) [23:47:49] Yeah, that seems to have done the trick. [23:48:15] everything works now? [23:48:21] Yep [23:48:23] woo! [23:48:24] That was all it was apparently. [23:48:27] @#$#$%^#$@$%#$^%&$#$@#$ [23:48:27] thanks for being patient [23:48:38] and that was seriously annoying to track down >_> [23:48:49] Who the hell would have guessed? [23:50:38] If you happen to write up a blog article on how all this works, I'll make sure it gets attention. [23:50:59] I'd probably just edit the docs on mediawiki.org :P [23:51:26] (and file a bug to get the trusty repo updated)