[03:37:03] Evening all. [03:40:12] bye [13:07:42] quick question - does the way mediawiki does versioning of pages depend on what diff engine you've selected or are those just for how users see diffs? [13:15:43] Shall we start a raffle as to where it might end up?/ [13:15:44] ffs [13:15:48] versioning of pages in what/ [13:16:25] the history diffs of the page [13:16:45] is whatever diff engine you choose responsible for how that's done as well, or just how it's rendered for users? [13:17:05] wondering if I can change it at a later date or if I have to pick one and stick to it forever [13:17:17] Yeah, you can change it [13:17:33] The diffs aren't cached in the database... They might end up in object cache for a shorter period [13:17:51] It'll just do a diff between revision texts on the fly [13:18:42] revision texts aren't stored entirely though, are they? aren't they stored as diffs themselves? [13:19:47] they are stored in full, yes. [13:20:04] you can compress them into not full revisions, but that's not default config [13:22:21] on https://www.mediawiki.org/wiki/Manual:MediaWiki_architecture it states: "The first revision of the blob is stored in full, and following revisions to the same page are stored as diffs relative to the previous revision; the blobs are then gzipped." [13:22:34] however, if I understand you correctly, all changes are stored as full copies of the page? [13:23:05] by default at least [13:24:20] yes [13:25:21] great, that's what I needed to know, thanks [13:25:34] wikipedia at least used to use the compression, but the latest references to that i can find date to ~2005. :P [13:26:40] recompress external storage or some such [13:27:28] you mean this? https://www.mediawiki.org/wiki/Manual:$wgCompressRevisions [13:29:27] if you do mean this, it's set to `true` in InitializeSettings.php, here: https://noc.wikimedia.org/conf/highlight.php?file=InitialiseSettings.php [13:29:49] sorry, default true, the manual says otherwise [13:31:22] That's just on WMF wikis [13:31:32] It's still $wgCompressRevisions = false; in MW core [13:32:09] https://github.com/wikimedia/mediawiki/blob/master/includes/DefaultSettings.php#L2016 [14:22:30] i have an old sql dump from 2010. i cant load it into the new MW because the table structure changed. when i uploaded an old MW version it seems its not compatible with the new PHP version -.- is there a easy way to extract the texts from the pages? how are those blobs actualy encoded? [14:23:42] just run the database updater script [14:23:43] !update [14:23:43] update.php is a script that updates the database tables. You usually need to run it after upgrading MediaWiki or installing certain extensions. For details, see [14:25:33] hi, i created a tool without actually checking if anyone wrote a similar one before... the tool lets me see the wikipedia edit in which a given word in an article was introduced, like "blame" in version control systems (but with a word resolution). is there anything like this already around? something like this: http://kolos.math.uni.lodz.pl/~d33tah/blame.html - if it's new, i could try to make this tool [14:25:35] more user friendly [14:26:26] https://en.wikipedia.org/wiki/Wikipedia:WikiBlame [14:26:26] !e BlameMaps [14:26:26] https://www.mediawiki.org/wiki/Extension:BlameMaps [14:26:43] I think that is too [14:27:44] Reedy: thanks, i'll take a look at that [14:31:54] Reedy: no easy way to check the extension, but wikiblame is definitely not what i wanted [14:32:08] as in - nice tool, but not usable in my scenario. thanks anyway [14:35:32] damn ddos on freenode -.- [14:36:02] Reedy so how should i proceede? install new media wiki, set db prefix to the old tables and run /mw-config/update.php? [14:36:23] You could do, yeah [14:36:42] maintaincene is the folder, sry [14:36:45] Well, you don't even need to install MW if you can make your localsettings correct [14:36:59] yea but i have only the db dump [14:42:18] And? [14:42:25] by "install mediawiki" i mean run the installer [14:42:37] You can just get the latest release, unzip the files, make a LocalSettings to point it to the right db, and update [14:44:29] thanks worked like a charm :D [14:44:58] i already thought about reading the code how to interpret the BLOBs or fix the php bug with the old mw version xD [14:47:01] hi [14:48:27] I installed ConfirmEdit and configured QuestyCaptcha but it doesn't show in http://www.bksys.at/ecowiki/Special:SpecialPages and when editing pages. [14:48:56] debian 8.0 [14:49:51] I put it in /usr/share/mediawiki-extensions/ConfirmEdit [14:50:11] where also /usr/share/mediawiki-extensions/base is [14:51:51] We generally don't recommend running os packaged versions of MediaWiki [14:52:00] Also, your version of MediaWiki is pretty old, and very unsupported [14:52:30] From memory, it shouldn't appear in Special:SpecialPages. It does show on Special:Version [14:52:34] I added http://pastebin.com/FGimBHYF to /var/lib/mediawiki/LocalSettings.php [14:52:53] ok [14:53:59] ahh, it's there. [14:57:00] but not working [14:57:33] my server is under spam attack. Has load 10. [14:59:31] I stopped mysql to reduce the load. [15:12:53] ok, so do you recommend I install a newer version? Will it reuse my wiki content? [15:14:47] Should I remove the debian packages first? [15:18:19] Will it work with debian/stable or will I have to make/install backports or install software from upstream and potentially remove debian packages to do so? [15:19:02] You're running a newish version of PHP so that shouldn't be a problem [15:19:03] !package [15:19:03] Many Linux distributions provide MediaWiki in a packaged format for that distro. These packages typically contain obsolete & unsupported versions of MediaWiki; they also like to move around & change files, & do other super-counterproductive things. You'll get the best support here if you install MediaWiki directly from one of our tarballs - https://www.mediawiki.org/ - or Git https://www.mediawiki.org/wiki/Download_from_Git [15:34:54] hey, having an issue with installing visualeditor on a vanilla mediawiki 1.25.2 setup. I have set up parsoid, downloaded the visualeditor extension package into the correct folder, modified the LocalSettings.php but how do I set it as editor for all or existing users? [15:35:33] basisbit: You want to set $wgDefaultUserOptions['visualeditor-enable'] = 1; [15:35:44] basisbit: See https://www.mediawiki.org/wiki/Extension:VisualEditor#Basic_configuration_for_MediaWiki-VisualEditor [15:37:43] James_F, from what I see, it says to directly jump to "Linking with Parsoid" if the user wants to be able to also edit existing pages [15:38:02] basisbit: Then someone has edited it to be wrong. :-) [15:38:24] "To set up your own Parsoid service follow the Parsoid installation instructions before setting up VisualEditor.” [15:38:28] Before. Not instead. [15:38:49] >> "For the initial setup, before you have installed the Parsoid node.js service you can experiment with loading MediaWiki-VisualEditor on your own wiki." [15:38:49] basisbit: (string) 'For the initial setup, before you have installed the Parsoid node.js service you can experiment with loading MediaWiki-VisualEditor on your own wiki.' [15:39:10] Yes, you can. [15:39:15] that was unclear for me [15:39:16] ok [15:42:54] great, now I get http 500 when opening and no error message... if I had some spare time, I'd (re-)implement an extension manager^^ [15:43:10] We're working on it. [15:43:12] Slowly. [15:45:00] James_F, oh, verry good *thumbs up* thanks for your work! [15:45:33] basisbit: Thank me when it's done. :-) [16:08:16] QuestyCaptcha is working now. It was installed already, but I hadn't configured it completely and didn't know when it triggers. [18:55:45] hi [18:55:56] Anyone here? [18:55:56] Hi hackerananay, I am here, if you need anything, please ask, otherwise no one is going to help you... Thank you [18:56:16] Are you a robot? [18:56:34] @wm-bot [18:56:49] Anyone here for Google Code-in? [19:02:27] hackerananay: Hi and welcome! I am. Though not as a student, more like a mentor/co-admin for GCI :) [19:07:16] wm-bot is a robot indeed. andre__ is not (as far as I know :) [19:10:10] * andre__ takes a mirror and spots a human body [19:17:40] he may appear like a robot on phabricator [19:18:11] being subscribed to ALL the tickets :p [19:18:21] andre__: [[Humans_(TV_series)]] [19:22:08] Hi everyone. I'm planning to upgrade to Mediawiki 1.26.0 from 1.25.0 but I have a question. I edited some of the files in my Mediawiki folder, so I would like to see a list of which files are affected in this update. Is such a list available anywhere? [19:23:28] That's bad [19:23:36] Do you install from git or tarballs? [19:24:10] Tarball [19:24:56] Swen: technically, yes, although i'm not sure if it'll help you… it'd be easier to find out what your changes were, and re-apply them on 1.26 if still needed [19:25:43] https://github.com/wikimedia/mediawiki/compare/REL1_25...REL1_26 [19:25:56] (warning, large page) [19:26:16] Ok thank you MatmaRex. I believe I didn't change too many files, it's just hard to remember which areas of each file I changed. [19:26:33] If you get a new version of the tarball, extract it to another folder [19:26:37] Do you reckon it's worth the hassle updating from 1.25.2 to 1.26.0 though? [19:26:45] Swen: if i were you, i'd check out the old REL1_25 branch of mediawiki from git (in a separate directory), then copy and paste all your files over it [19:26:54] and use `git diff` or such to show the differences [19:29:30] Ok, thank you for the help everyone :) [19:36:37] o/ [19:36:44] anyone here have mediawiki installed as chroot? [20:02:48] The point of mediawki is to share information. Lets say I want to use it within a organisation where some people are not allowed to see certain pages. In sharepoint it is possible to use Active Directory. Is it a way to to it in Mediawiki? [20:03:23] You can interface with AD using an LDAP extension [20:03:37] You can lock mediawiki down based on things [20:03:44] But like you say, it's designed for open-ness [20:07:13] How well would an interface with AD using an LDAP extension work? Would if work if the mediawiki was on the web? [20:07:32] It can be a bit of a pain to set up, but it's not impossible [20:07:53] https://www.mediawiki.org/wiki/Extension:LDAP_Authentication/AD_Configuration_Examples [20:09:54] As a solution what type of rating would you give that solution, lets say 1 is bad, and 10 is good access controll? And not to complicated for the users that may have to set limitation on different pages. [20:10:22] Access restriction on a page basis isn't great [20:10:28] By Namespace or similar is easier I think [20:10:52] !access [20:10:52] For information on customizing user access, see . For common examples of restricting access using both rights and extensions, see . [20:11:43] if some of the users was working on one projects and another group on another, and they were not supposed to see eachothers projects, then namespaces would be a goog thing? [20:12:48] MW isn't well designed for that granuality [20:14:40] So the best way would probably be to have different wiki installations for different groups? [20:15:34] If you want to guarantee no leaking etc, yrah [20:16:52] Lets say i do that, and I want to transfer the wikipages for that wikiproject to a masterwiki when the information is ready for shearing; is that straight foreward? [20:17:07] !export [20:17:07] To export pages from a wiki, navigate to Special:Export on the wiki, type in the names of the pages to export, and hit "export". See for an example of this form. See also: !import [20:17:11] !import [20:17:11] To import pages a few pages, use Special:Import - you can also import pages directly from another wiki (see !importsources). For mass imports, use importDump.php - see for details. NOTE: when using content from another wiki, follow the LICENSE TERMS, especially, attribute source and authors! [20:17:17] it should be straightforward [20:18:43] Will it be straight foreward even though i am running the mediawiki on a windowsserver and not linux? [20:19:02] Shouldn't make much difference [20:19:45] Thanks for all the help! I will try it tomorrow. [20:39:28] I'm kind of a noob, It's my first time using IRC. [20:39:55] I just started using IRC because Google Code-In wants me to. [20:40:06] This thing looks really cool. [20:40:27] hi hackerananay [20:40:36] hi MamtaRex [20:40:44] How do you mention someone on IRC? [20:40:56] I can see my name in orange when you messaged. [20:41:01] the best online chat technology 1980s have to offer ;) [20:41:18] Hahahaha this is great! :D [20:41:22] hackerananay: just type somebody's name. you can use tab autocompletion in most clients [20:41:24] !tab [20:41:24] There are multiple keys, refine your input: tabcompletion, table, tables.sql, tabs, [20:41:28] !tabcompletion [20:41:28] Instead of manually typing another person's nickname in IRC, you can type the beginning of their name and hit TAB on your keyboard to get it autocompleted, like on the command line. This avoids misspellings. Just make sure it's the right person! [20:41:31] !tab [20:41:31] There are multiple keys, refine your input: tabcompletion, table, tables.sql, tabs, [20:41:48] tabs [20:42:10] MatmaRex: [20:42:13] MatmaRex: Sup [20:42:18] Hi MatmaRex [20:42:31] :) [20:42:38] Thanks! :D [20:42:50] MatmaRex: Are you for GCI too? [20:42:54] Google Code in? [20:43:05] hackerananay: i'll be mentoring a few tasks [20:44:19] That's great! So you're working with the MediaWiki organization for this? [20:45:53] yeah [20:45:57] Slack is just like IRC all over again! :O [20:46:09] MatmaRex: Cool! [20:47:58] Are there a lot of Lua tasks issued in Google Code In? [20:48:13] Because I'm a pure Javascript and PHP programmer. [20:49:07] there'll probably be more in JS and PHP. but who knows what people come up with [20:49:32] Okay. That's great. [20:53:36] [15:46] Slack is just like IRC all over again! :O <-- He tempts the flames ;) [20:54:35] bawolff: Hahahahaa, what do you mean ? :P [20:54:54] hackerananay: Some people on the internet have strong feelings about slack vs irc [20:55:07] hahahaha ohh [20:55:43] This is my first time using IRC and believe me, IRC > Slack. In not just one, but many aspects [20:56:04] Slack feels like they've given branding to IRC, and calling it revolutionary. [20:57:11] That's essentially what they did + integrate bouncers [20:57:17] I think. I've never actually used slack [20:57:28] Okay. [20:57:58] anyways, if you google "slack vs irc", you will find a lot of angry people on the internet [20:58:22] Hahahahahaha just like iPhone vs Android ? :P [20:59:03] perhaps a little more principled [20:59:22] Nobody says, I want to use Android because FREEDOM! [21:00:06] bawolff: where are you from? [21:00:15] Canada [21:00:26] bawolff: Oh! I'm from India :D [21:00:44] bawolff: Are you organizing Google Code-In too? [21:00:59] No, much too lazy to be a mentor [21:01:12] bawolff: LOL, okay. [21:01:40] bawolff: It's my first and the last chance to participate in Google Code-In. So I want to make sure everything goes right. [21:02:36] Well, once you're no longer eligible for google code-in, you're probably eligible for google summer of code [21:02:57] Oh yeah :P [21:03:16] But I wanna do something great, when I'm below 18. [21:03:22] Age matters :P [21:09:03] Well hey, no time like the present [21:09:46] Also keep in mind, mediawiki is open source, so you don't have to be participating in a program to contribute, you can contribute any time you want [21:09:47] Why does Age Matter? [21:10:16] You've probably been outdone by some of our other contributors in terms of large additions ;) [22:47:43] I need to delete lots of spam. Where in the database is the page creation date stored? [22:48:02] !spam [22:48:02] For information about combating and handling spam in MediaWiki, see . [22:48:32] I guess you'll want rev_timestamp [22:50:40] which table is that? [22:50:56] revision [22:51:12] I wouldn't reccommend just arbitarily deleting revision rows via sql [22:52:01] darsie: currently most of spambots cannot handle abusefilter warnings [22:52:12] I'm trying to modify this: https://www.mediawiki.org/wiki/Manual:DeleteBatch.php mysql -e "select page_title from page where page_touched between 20150431000000 and 20150519000000 into outfile '/tmp/pagelist.csv'" [22:52:54] I have about 102520 spam pages. [22:53:11] .__. [22:53:39] I'd like to extract the page names from the pages created in a range of time. [22:53:44] and I guess stuffs like special:nuke won't do the trick [22:54:09] But I have few enough good pages so I could manually remove them from the list. [22:54:35] I haven't checked whether the spam came from only a few IP addresses. [22:55:01] I also have tons of spam users. [22:55:33] don't you have a backup? [22:55:38] no [22:56:04] fuck off spam [22:56:34] wow, what were you doing while spambots were creating 102520 spam pages? [22:56:43] nothing [22:57:33] That's the good thing, spam edits happened at a different time than good edits. [23:01:26] maybe you can delete from revision where rev_timestamp > (time when spam started), then delete all pages with no revisions, and fix page_latest on all remaining pages to point to latest revision [23:01:39] but be sure to perform a backup first [23:03:00] If I delete all the spam revisions, will the spam pages be deleted? [23:03:29] if you then "delete all pages with no revisions" [23:04:21] delete from page where not exists (select * from revision where rev_page = page_id) [23:05:15] you can then use purgeOldText.php to delete orphaned text records [23:06:23] A backup with all the spam? [23:07:01] well, in case you mess up with the deletes and end deleting your precious wiki content [23:07:23] mhm [23:07:24] +1 [23:07:57] gtg [23:14:36] Is there any way to use VisualEditor without the wiki admin installing it? eg: GreaseMonkey? [23:16:31] darsie: https://www.mediawiki.org/wiki/Manual:Combating_vandalism#Cleaning_up <-- did you have a look here? [23:16:41] yeah [23:17:50] Hi. To get categorized pages with broken reference names in a category with the same name it's enough to create page MediaWiki:Cite error references no text category with title of this category? [23:18:23] "MediaWiki:Cite error references no text category" [23:27:50] That should do the trick: select page_title from page where page_id>=10 [23:28:12] then I'll feed that to DeleteBatch.php [23:31:39] Someone say "sounds good" ;) [23:40:12] That looks like it should work, yes [23:40:22] :) [23:44:23] Hmm, that also lists user pages. I'll have to include the namespace or so. [23:51:09] hello everyone. I cant find where to change another users password. I tryed most of the special pages related to users, but only saw the privileges [23:51:22] where do I change another user password, or force to send a new one to him via email [23:51:55] dtcrshr: Special:PasswordReset [23:52:35] you can do it for anyone if you know the user name and email address [23:53:17] well I know the username and email. but I got an error with this page, told me email is not setup [23:53:27] Erro interno [23:53:27] Ir para: navega��o, pesquisa [23:53:27] Os recursos de e-mail foram desativados nesta wiki. [23:53:30] oops sorryu [23:54:31] then that user actually did not set an email address i guess [23:55:13] you could check on db level if you have server access [23:56:49] dtcrshr: php changePassword.php --user=example --password=newpassword [23:57:01] dtcrshr: that's a script in ./maintenance/ that you can use