[08:04:51] hi [08:19:20] Hello! Anyone know what "Exception encountered, of type "LocalFileLockError"" might mean? Self-hosting mediawiki 1.27.0 with nginx on RHEL6, and I can't find the cause for this message [08:19:34] Get the message when trying to upload a file [08:19:45] any file really [08:22:38] kalasmannen: perhaps a permission issue somewhere, but there is a bug because you should not be seeing uncaught exceptions [08:23:42] Nikerabbit: yeah, I've dwelt on the permissions of the "images" directory for a while, but it does not even work if i temporarily set permissions to 777 or try disabling selinux [08:23:54] so it seems a bit odd [08:24:17] kalasmannen: could be that it tries to create lock files in a temporary directory [08:25:17] Seeing some "body is buffered to a temporary file" messages in the nginx error log that i think is connected to this [08:26:29] Nikerabbit: I'll see if i can find anything regarding nginx being unable to write somewhere.. [08:27:11] kalasmannen: that just means that your nginx in-memory buffers are too small for the uploads. that should not be a problem at all [08:27:22] this error is coming from mediawiki [08:27:39] Nikerabbit: ah, okay [08:35:58] there are a few denies for php-fpm execmem syscalls in the audit.log, but since i tried running with selinux in permissive without change i doubt it is something that can cause this [09:33:47] I need help with the MediaWiki API [09:33:54] can someone guide me [09:34:32] I want to fetch wikipedia data in plain text format [09:35:35] with no special character or [09:35:55] or markups [09:35:59] Please [09:37:45] is anybody out here who can help me ? [09:39:35] you could fetch the html and strip all html tags out from it [09:41:05] Narendra Damodardas Modi (Gujarati: [nəreːnd̪rə d̪ɑːmoːd̪ərəd̪ɑːs moːd̪iː] [09:41:45] The data in brackets is not printable or readable [09:42:17] Is there any option in MediaWiki to extract only text [09:43:30] Yes [09:44:02] https://en.wikipedia.org/w/api.php?action=query&prop=revisions&titles=Main%20Page&rvprop=content [09:47:32] Thanks Reedy, tried your call for Narendra Modi and I am getting following [09:47:34] {{pp-semi-protected|small=yes}}\n{{Use Indian English|date=June 2014}}\n{{Use dmy dates|date=April 2015}}\n{{Infobox officeholder\n| image = PM Modi 2015.jpg\n| alt = Narendra Modi\n| caption = Narendra Modi\n| [09:47:58] That is the text [09:48:06] But if you want to remove templates etc, you'll have to do that yourself [09:48:41] ok [09:49:35] so I will be required to write code to remove text between brackets [09:54:39] Is there any pattern that I need to strip from the result [09:55:15] Depends what you don't want... [09:55:27] You're gonna have templates, categories, wikilinks to replace.. [09:55:35] chances are you don't want to remove wikilinks completely [09:56:08] I need to remove all as I would put this in sms message and push [13:52:24] Hello guys, does anyone know of a working access control list extension for mediawiki (version 1.27.0 or v 1.26.3). I already tested all of the stable and beta extensions on this page: https://www.mediawiki.org/wiki/Category:Page_specific_user_rights_extensions None of them is working or the extension is not available [14:03:22] Florian, shouldn't you first find out why those extensions aren't working even though you have the right version and they are stable? [21:10:35] Hey guys, does anyone know where the list of interwiki prefixes is please? I'm trying to IW link from enwp to Wikivoyage. [21:14:13] https://meta.wikimedia.org/wiki/Special:Interwiki [21:14:43] Thanks Reedy [21:16:26] Doesn't look like it has a prefix like the others [21:16:42] I can find the long link, but I mean the two letter code which goes in the wikilinks [21:16:48] voy //en.wikivoyage.org/wiki/$1 [21:17:22] Thanks [22:22:32] hi, is it somehow possible to let page title ({{DISPLAYTITLE:..) contain [[links]] ? [22:32:12] auvajs: maybe you need to set https://www.mediawiki.org/wiki/Manual:$wgRestrictDisplayTitle to false, but I'm not sure [22:35:12] Vulpix: no, that's for allowing/restricting setting display title other than page name, IMO [22:36:31] the restriction includes formating (html tags), but I think you can easily test that [22:39:53] Vulpix is correct, turning that false should allow arbitrary wiki markup in the title [22:40:03] (semi-arbitrary, at any rate) [22:40:39] Vulpix: {{DISPLAYTITLE: whatever[[whatever]] whatever}} [22:41:02] page title is whatever[[whatever]] whatever [22:41:19] but I wanted the [[link]] be made into a regular wiki link [22:41:45] sorry if I didn't express myself properly [22:41:53] $wgRestrictDisplayTitle = false; [22:42:02] on my wiki for some time, btw [22:42:42] hmm [22:43:49] {{DISPLAYTITLE: whateverwhatever whatever}} doesn't seem to work either [22:43:57] oh [22:44:04] it only allows a small subset of wiki markup [22:44:18] e.g. ''italic'' and '''bold''' (and /similar tags) [22:45:06] yes, I have some color titles [22:45:33] no way to do a link without an extension [22:45:46] (or js, but that's fidgety) [22:46:50] is there some extension for it? [22:49:29] I'm not aware of one [22:49:47] the extension would need to call OutputPage::setDisplayTitle() [22:55:22] hm I'll probably find some other ways how to do what I want :) tnx Skizzerz [22:55:30] How can I make a list that's not sorted alphabetical, displayed and sorted alphabetical? [22:56:41] table.sort(list) ? [22:57:29] if speaking about lua [22:58:13] I haven't installed lua thing yet I think. [22:58:33] Jordy: so what kind of a list you mean? [22:58:48]
[22:58:48] *this *kind *of *list
[22:59:45] ah lol [23:00:24] idk but I guess it's not possible [23:01:01] maybe some js [23:01:12] copy it in Excel/OpenOfficeCalc, sort there, and copy back to wikitext :) [23:01:17] lol