[02:38:57] Is anyone home? I'm having trouble installing LuaSandbox. [02:47:23] ZeroSerenity: Your best bet is to ask your question; a lot of people keep IRC open but don't look at it constantly. [03:44:50] Taken from here: https://www.mediawiki.org/wiki/Extension_talk:Scribunto [03:45:03] [[Extension:Scribunto]] These instructions don't make sense. I understand the git clone command, but it doesn't explain where its supposed to go (Debian/Ubuntu by the way). Then getting down to installation, it says cd luasandbox. Is that assuming where I am is where I put in the clone command? This is confusing. [03:46:26] I also am having issues getting CirrusSearch to work. I've gotten as far as the require commands, but while I can enable Elastica, CirrusSearch causes the entire setup to fail. [03:56:10] ZeroSerenity: any extension go to extensions/ folder [03:56:41] you have a folder with the MediaWiki files and directories: index.php api.php includes/ etc. [03:57:08] One of these directories is extensions/ and hosts each of these Git repos. [03:58:26] You would probably like to have WikiEditor, CodeEditor in addition to Scribunto [03:58:40] One thing at a time. [04:00:01] But before I keep going: http://www.twitch.tv/ZeroSerenity [04:00:42] so Scribunto is the extension which will allow you to use Lua, but you also need a Lua interpreter [04:01:20] LuaSandbox is a PHP extension developed especially to use Lua from PHP for Scribunto [04:01:52] You can use it, or you can directly use a normal lua interpreter, the kind you'll get with the lua package [04:03:18] Note they live in two different repos: https://gerrit.wikimedia.org/r/p/mediawiki/php/luasandbox.git for LuaSandbox, https://gerrit.wikimedia.org/r/p/mediawiki/extensions/scribunto.git for Scribunto [04:03:43] Click the twitch link. I think you're a bit behind me. [04:11:31] Okay, I think I've got it. At least PHPInfo shows the sandbox now. [04:28:48] Dereckson: I'm seeing luasandbox reported by PHPInfo, but MediaWiki Versions doesn't see it. I also don't have a /etc/php5/conf.d folder. [04:53:30] phpinfo is authoritative enough, as long as it's on the same webserver or php fpm pool or CGI interpreter [04:54:45] So, now in LocalSettings.php you need to configure the extension to use LuaSandbox: by default, it will use a standalone installation. [04:55:38] For that, after the require_once line, you add: [04:55:43] $wgScribuntoDefaultEngine = 'luasandbox'; [04:56:13] Got it. [04:56:21] Twitch stream is showing it as installed software. [04:58:23] if you also see scribunto on the page, you're done [04:58:25] I just forgot to change the engine. I left it as luastandalone when I tried doing this earlier. [04:59:00] When you write a Lua module, it could be interesting to get an editor with syntaxical highlight, the capability to use tab, see line numbers, etc. [04:59:22] This is the goal of the combo WikiEditor + CodeEditor I suggested before. [04:59:34] I probably won't be writing the modules. I'm upgrading a wiki from 1.19 to current so other people are satisfied being able to make LUA. [05:00:17] that's the point: when they click on edit they will get a nice editor, instead of just a textarea [05:00:19] But I'm trying to get the major components set up first. [05:00:40] this will also be used by CSS and JS by the way, so their common.css or vector.css will benefit of it too [05:01:29] No configuration at all is needed fot both extension. Only this to add, so Scribunto know to use it: [05:01:32] $wgScribuntoUseCodeEditor = true; [05:02:07] In the localsettings file? [05:04:08] aye [05:04:44] How can I test this/confirm its working? [05:52:23] Noob question: I want to get *just the text* of Special:ActiveUsers from our installation, so I can use it for something else (generating a slide for our self-updating bulletin board in the hallway), so what I want is something like a print-view, or mobile-view, or something, minus the input text field, minus the footer... I'm handy with wget but I'm not even sure where to start with stripping out all th [05:52:29] e other elements. [05:52:48] ZeroSerenity: editing a page in Module: namespace [05:53:27] https://en.wikipedia.org/w/index.php?title=Module:Bananas&action=edit [05:54:19] then on a page, add {{#invoke:bananas|hello}} [05:54:36] and if it prints "Hello, world!" it works [05:54:55] That's after I put in the editors, right? [05:55:31] Yes, if you also wish to validate the editing UI. But even before, it will already work. [05:55:58] Don't think I did: http://www.twitch.tv/ZeroSerenity [05:56:14] Because that looks like the standard editor to me. [05:57:25] Oh by "already work" I thought about the lua code and the hello world output, not the editor. They'll be there when you eanble the two other extensions. [05:58:06] WikiEditor+CodeEditor, right? [05:58:23] yes [05:58:46] ZeroSerenity: I wonder if in the user preferences there isn't a checkbox to enable editor [05:58:54] myself: https://www.mediawiki.org/wiki/API:Allusers [06:01:43] I have some leftovers here in the previous config file, but it looks like they're depreciated. Let me pull them up. [06:02:52] You recognize any of this? [06:03:42] * Dereckson reconnects to the stream. [06:04:33] yes, it's the config when Vector were released I think [06:05:05] https://phabricator.wikimedia.org/T29515 it has been removed [06:05:20] And they're gone. [06:06:35] I would load the extension in this order: WikiEditor, CodeEditor, Scribunto. Not sure this is important. [06:07:15] But I've memories of a glitch before the new extension registration system when you loaded Scribunto before the others [06:11:57] myself: the API will give structured data, here in JSON, you can then extract the names. In CLI, a good tool for that is jq. Try curl -A 'StatsUsers' https://yourwiki/w/api.php?action=query&list=allusers&format=json&auactiveusers=' | jq .query.allusers[].name [06:12:00] Dereckson: Is this your card? [06:13:01] ZeroSerenity: card? [06:13:11] As in I think I got it. [06:18:50] Okay, this might be a bit of an odd one, but do you have any idea how to set up Cirrus Search? [06:28:47] ZeroSerenity: have you followed the instructions at https://www.mediawiki.org/wiki/Extension:CirrusSearch ? [06:29:12] Yeah. [06:33:57] ori: http://twitch.tv/ZeroSerenity You'll see the config is there and commented out. But I feel like something might have been missed or I didn't get. [06:34:08] Dereckson: whoah, okay, api.php is gonna take a ton more reading, this is super cool. I'm only getting the first 10 results (there should be 23) but I'm sure I'll get that. thanks, this is enough to get me started! [06:39:05] haha, aulimit parameter, got it [06:39:17] first time ever using anything that called itself an API, this is cool as hell. [06:41:22] :D [06:43:03] Hey, I know that grin! That's the exact same grin I wear when I get a developer to solder something together and they hook up power and the thing lights up for the first time! [07:25:00] is there any reason why the default "database character set" is not utf-8? [07:46:49] jirib: works for me, MPlayer SVN-r37302-4.9.1 [07:48:15] jkale: does https://www.mediawiki.org/wiki/Manual:$wgDBTableOptions answer? [07:48:21] Is the a way to have mediawiki throw up when it has an error? [08:17:20] ZeroSerenity: AFAIK, MediaWiki bites more than enough when it's unhappy. But maybe you're asking about https://www.mediawiki.org/wiki/Manual:How_to_debug [08:35:12] A question about gerrit etiquette: I'm waiting on feedback on a revised patchset in gerrit, is it uncouth to rattle the reviewers' cages with "hurry up" comments on the gerrit page? It's a very small patch and likely to be a no-brainer [08:41:24] JosefAssad: how long has it been? [08:43:16] It's been 3 days. Granted weekend, but I got immediate response with the first patchset, and it's really about 3-4 lines [08:43:47] Nemo_bis: When I was trying to work out why it was biting hard, all the HTML spat back was...nothing. So I have to keep running this by hand. [09:30:28] !downgradwe [09:30:30] !downgrade [09:30:30] I don't know anything about "downgrade"... you must be a Windows user. Perhaps you mean http://www.mediawiki.org/wiki/Manual:Upgrading [09:30:41] !downgrading [09:30:42] There is no such key, you probably want to try: !anglebrackets, [09:37:31] is there any automated way to downgrade a LocalSettings.php file? [10:52:38] Is it possible to have a translated subpage MyPage/xy as URL and at the same time have MyPageTranslatedInXy as content title? [12:55:12] How can I produce 'italic text'? 'italic text' works, but is a bit cumbersome [12:55:42] I mean '''italic text''' works [13:01:58] fdel: three single quotes is the syntax for [13:02:10] I know [13:02:29] so yeah you would want to use . An alternative is to use different quotes [13:02:40] Or use ' maybe? [13:03:24] well [13:03:26] no [13:03:50] apostrophe is to mark omission of a letter [13:04:16] for example in french, "the star" is written "L’étoile" (instead of "La étoile") [13:04:33] you will want quotation marks, a bunch are described on https://en.wikipedia.org/wiki/Quotation_mark [13:04:34] Well here it's for explanation of a command-line [13:05:00] french has specific ones which are I believe widely use « » [13:05:16] you could use double quotes maybe [13:05:36] Is there no escape character in mediawiki? [13:05:50] maybe you can use the html encoding for single quote [13:07:13] ''“italic text”'' which yield: “italic text” [13:19:15] fdel: '' or ' ' will work for escaping. [13:19:31] ok thx [13:19:42] or && of course [14:17:19] morning [14:59:47] Heya :) [14:59:58] had a question about custom skin editing [15:00:07] trying to get a list of "last 5 edited" in a namespace list [15:00:18] any suggestions on where to start? [15:19:42] Roux_: How is a list of the last 5 edited namespaces related to custom skins? [15:21:18] it wouldn't be the last 5 edited namespaces, i meant the last 5 articles edited within a specific namespace (for instance "News"), and then i could show those on the skin [15:21:36] i thought since it will be on every page, it would be added in the skin file -- i'm not sure though [15:38:35] Which version of MediaWiki works with PHP 5.2.17? I don't understand the compatibility page. [15:41:01] hexhaxtron: looking at https://www.mediawiki.org/wiki/Compatibility#PHP, MW 1.19 is the last one. [15:41:11] MatmaRex, thanks! [15:41:19] it's not longer supported, i think. i'd try upgrading your PHP. [15:42:34] MatmaRex, this one? mediawiki-1.19.24.tar.gz [15:42:46] yeah [15:45:14] MatmaRex, do you know how to get a free alias for http://electric-guitar.comxa.com/eguitar/ [15:45:22] dot tk says it is invalid. [15:45:48] no idea [15:46:04] hexhaxtron: why are you running PHP 5.2, though? :/ [15:47:08] MatmaRex, the webhost is using it, not me. [15:47:24] have you tried switching to a better webhost? :P [15:47:36] I haven't. [15:48:29] i mean, personally, if somebody still hasn't gotten the memo that PHP 5.2 is old and unmaintained and insecure, i wouldn't trust them to host my site. :) [15:49:16] i don't have any suggestions off-hand, but surely there have to exist even free hostings that offer something more recent. [16:00:06] hexhaxtron: Could i ask you what host your using. If it is a free one i know of a better one that has an updated php. If it is paid one then there are cheeaper hosts that use new software. [16:01:38] paladox, I was using 000webhost.com for free. [16:02:18] hexhaxtron: Oh i used them but didnt like them. Go with this host http://www.heliohost.org/home/ they are really good. [16:02:42] hey folks, I am using table generator (http://www.tablesgenerator.com/mediawiki_tables) to create tables, so far so good, but I would like to set the CSS attributes of several rows in a single point rather than editing one at a time. [16:02:46] is it possible? [16:03:55] hexhaxtron: Or if you need to have more domains and more space then use https://infinityfree.net/ or http://sixserve.com/ [16:05:32] MediaWiki:Common.css sounds like a good place to start looking :D [16:08:17] paladox, thanks a lot! infinityfree seems good. [16:08:43] hexhaxtron: Ok. [16:11:49] hexhaxtron: You can switch today by setting up then moving your data accross from your other host. Then chaning your dns settings on your domain host then delete your account on your other host. [16:12:17] paladox, have you used uk.godaddy.com before? [16:12:30] hexhaxtron: No. [16:17:24] hexhaxtron: Your going with godaddy. [16:19:02] paladox, I'd like to have a e-guitar.co.uk domain, it's 0.99 pounds but I don't know for how long is it or if I can redirect the DNS to another one. [16:25:05] the 1.00 pounds is for one year and second year is priced at 6.99 pounds. I think from second year it is priced at 6.99 pounds. This is with godaddy. And also hosting is cheep per month which would be 3.99 pounds for 100gb of space and one website you can host or 4.99 pounds for unlimited storage and websites or 7.99 for a free ssl which is https. If you look at https://uk.godaddy.com/hosting/web-hosting you get with 7.99 pounds hosting a free domain [16:25:06] with annual subscribition you wont be able to get a .co.uk free domain but .com domain. [16:25:32] paladox, what is this?... The following reason was reported for your suspension: [16:25:32] NO_COMMENTS_GIVEN [16:25:47] My infinityfree account was suspended. [16:26:10] hexhaxtron: Not sure why. it should not have done that. [16:28:35] hexhaxtron: You have to first sign up with a subdomain from epizy.com which is already set up. Once you done all the setup and they then send you the email you can login an add an addon domain. [16:30:00] hexhaxtron: Try again. [16:31:33] paladox, do you know more webhosts with unlimited space? [16:32:14] hexhaxtron: I am going to look for one since so many scam you so i have to check correctly. But even then some may say something but actually do something else. [16:38:04] hexhaxtron: Try this host please https://www.hostt.com/account/?ccce=cart [16:38:31] i havent signed up to them since they want you to transfer your domain too them or to register with them. [16:40:48] paladox, hostt requires an existing domain. [16:40:59] hexhaxtron: Oh ok. [16:41:12] Or to pay for one. [16:46:16] hexhaxtron: Please try http://mobhost.in/ [16:50:01] paladox, wait, I'm going to register a .co.uk domain. [16:50:19] hexhaxtron: Ok. [17:06:44] This is the weirdest bug I have yet to figure out. As far as I can tell our server environment is causing this issue. O_o (Note: "Pf5" is randomized gibberish.) Warning: filesize(): stat failed for Pf5 in /home/hydra/public_html/includes/debug/MWDebug.php on line 407 [17:21:19] hexhaxtron: Hi have you registered your domain. [17:22:11] paladox, I didn't. [17:22:26] paladox, I already have a host. Do you know a free and nice domain? [17:23:27] hexhaxtron: I know of free domains like .tk and .ml. And also a good free host is http://heliohost.org/ ive been using them for last few years even though the storage is 500mb it is unlimited bandwidth. [17:24:04] hexhaxtron: Or if you need to use unlmited sotrage then https://infinityfree.net/ but helihost is better for it has been arround longer. [17:25:51] hexhaxtron: http://www.freenom.com/en/index.html?lang=en [17:32:48] hexhaxtron: Which of the host which i suggested you like. Heliohost is best since it has been up and running i belive for 10+ years and its free. [17:35:41] paladox, I'm using hostinger.co.uk [17:36:21] hexhaxtron: Oh ok. are you using there free package or paid one. [17:36:21] paladox, It has 2GiB of space but if I like it I can pay just a little bit to have unlimited space. [17:36:29] paladox, the free one. [17:36:33] hexhaxtron: Ok. [17:38:32] hexhaxtron: According to the specs the free plan internet speeds will be 10mb which means your website will load really slow wheras the paid one has 100mb which would load your website faster. or there 3.99 pounds does 1gb internet speeds. [17:38:54] 4 pounds is cheap. [17:39:08] But I want to try it first. [17:39:43] hexhaxtron: Ok. [17:58:40] paladox, all is going well. The MediaWiki is working as you can see here: http://e-guitar.96.lt/e-guitar/ [17:59:00] I'll look for a domain now. [17:59:03] hexhaxtron: Ok good. [18:29:29] paladox, I'm buying a e-guitar.co.uk domain. Is this worth it? Have your domain name listed instantly with the UK Domain Directory which will promote your web address to thousands of daily searchers and be indexed throughout Google, Yahoo and more... This service is automatic and uses your web site's meta-tags making updating your listing easy. [18:45:33] hello [18:46:30] Hi, we hear you. [18:47:40] paris [18:48:09] and you? [18:51:00] hexhaxtron: Hi i doint own a .co.uk domain. I own a free .tk domain and .ml domain. So i woulden notice if it does it instant. [20:28:59] !index.php [20:28:59] https://www.mediawiki.org/wiki/Manual:Parameters_to_index.php [20:29:44] !blankpage [20:29:44] A blank page or HTTP 500 error usually indicates a fatal PHP error. For information on debugging (including viewing errors), see . [20:29:58] what are the usual reasons why http://localhost/mywiki/index.php is blank? [20:33:18] jkale: i did append "error_reporting( -1 );" and "ini_set( 'display_errors', 1 );" to LocalSettings.php and i still get a blank page [20:34:09] jkale: the error may happen before those lines are actually parsed, maybe there's a PHP syntax error in localsettings.php, bad syntax in a .htaccess... [20:34:36] apache error logs may give you a hint [20:34:44] Vulpix: by the way, i can access http://localhost/mywiki/mw-config/index.php?page=DBConnect [20:35:23] Vulpix: oh, that's a good point (parsing) [20:35:48] Vulpix: moving those lines to the top [20:36:23] jkale: if there's a parse error, it won't matter where are those lines [20:37:37] Vulpix: damn, it's a wfLoadSkin(). is there any way to automatically convert LocalSettings.php to the 1.23 (lts) format? [20:37:50] *error [20:38:06] no, there's no automatic way [20:38:28] jkale: https://www.mediawiki.org/wiki/Manual:Upgrading#Adapt_your_LocalSettings.php [20:40:34] Vulpix: moving those lines upper did help. so i guess it didn't qualify as a parse error. did i get it wrong? [20:41:59] yes, you're right [20:42:31] Can anyone help me understand the tools I have at my disposal for organization in mediawiki? I.e. when I'm organizing files on my file system, I've got folders, symlinks, files, etc ... and tools that operate on those. [20:42:38] What tools and constructs do I have when working in mediawiki? [20:44:54] folders=namespaces; symlinks=redirects; files=pages [20:45:07] there are also categories, which are more like tags than folders. [20:47:59] subpages can somewhat act like subfolders [20:54:07] Does anyone know why my thumbnails of my images won't show up in my 1.26 installation? [20:55:54] Repton: open the thumbnail directly on the browser, do you see an error message? [20:56:14] MatmaRex: thanks! [20:56:24] No. [20:56:34] I dont. [20:56:45] It shows the full image. [21:00:46] uh, the URL of the thumbnail image, not the link (which correctly points to the file description page) [21:07:46] What is the easiest way to have (English) Foo page and Foo\xy subpages where xy is an ISO code for language (fr, de, etc)? [21:08:30] Ideally, Foo\xy language should automatically be set to using language xy [21:08:59] fdel: the Translate extension lets you do that. but i think it requires a lot of fiddling to mark pages as translateable :( [21:09:02] !e Translate [21:09:02] https://www.mediawiki.org/wiki/Extension:Translate [21:09:16] I saw Extension:Translate but it seems way too big for what I need [21:12:17] i don't know of anything else, other than just creating the pages manually. [21:12:17] yeah I create them manually, but language is always set to "en" [21:12:18] http://hypotheticalhurricanes.info/w/File:Arthur_(2020_-_Track).png here is what I mean. [21:12:18] The thumbnail won't show up. [21:14:50] fdel: ooh, i see what you mean now, i think [21:15:30] fdel: you can set the content language for each page using Special:PageLanguage [21:15:39] (starting with MediaWiki 1.24) [21:16:06] MatmaRex: I tried that, but it doesn't seem to work (MediaWiki 1.26) [21:16:20] hmm [21:16:36] it seems to be disabled by default, apparently. [21:16:56] you have to set $wgPageLanguageUseDB=true; in your LocalSettings (and probably run update.php afterwards) [21:17:04] I used that [21:17:26] it worked for me last time i tried it [21:18:07] fdel: hmm, from old release notes: [21:18:09] (bug 9360) Added ability to change the page language for MediaWiki pages using [21:18:10] Special:PageLanguage. All pages are set to wiki language by default. [21:18:10] The feature needs to be enabled with $wgPageLanguageUseDB=true and [21:18:10] permission needs to be set for 'pagelang'. [21:18:19] so i guess you need to grant somebody that permission. [21:18:26] !permissions [21:18:26] For information on customizing user access, see < http://www.mediawiki.org/wiki/Help:User_rights >. For common examples of restricting access using both rights and extensions, see < http://www.mediawiki.org/wiki/Manual:Preventing_access >. [21:19:19] $wgGroupPermissions['sysop']['pagelang'] = true; [21:57:17] Sorry to ask again but why is the thumbnails of my images acting weird? [22:05:34] Repton: That is very descriptive diagnosis of your issue [22:06:10] perhaps if you provide some more information, people may see your question and be able to more readily answer and /or assist you [22:06:38] http://hypotheticalhurricanes.info/w/2020_Atlantic_hurricane_season This is what I'm talking about the first image won't show up. [22:06:59] http://prntscr.com/9xtn7u [22:11:20] WFM [22:14:14] Is there a way to specify a page language inside code, without reverting to "uselang" URL parameter? [22:18:40] Repton: I've fixed it by loading thumb.php http://hypotheticalhurricanes.info/w/thumb.php?f=Arthur_%282020_-_Track%29.png&w=150px maybe you don't have https://www.mediawiki.org/wiki/Manual:$wgGenerateThumbnailOnParse set to true? [22:18:59] Oh I see. [22:19:14] (this happened before I got disconnected... logs show this message never went to the channel :S) [22:21:58] Thank you. [22:21:59] Too many Guillaumes, Br[iy][ao]n, and other homophonic staff. Just sayin’. [22:22:07] It worked. [22:22:53] And Jameses. They’re the wurst. [22:24:03] Amgine, no shortage of Dans either [22:24:58] Exactly. Henceforth staff shall be renamed as french numbers. Un, Deux, etc. [22:25:56] (they can use roman notation as a nickname.) [22:29:34] Amgine: Can we use Belgian for nonante? [22:29:55] No, Swiss French for nonante. [22:30:09] * James_F grins. [22:30:09] Uh-huh. [22:30:12] (although it’s clearly less stylish to say it that way.) [22:30:27] Now I want chocolate. [22:30:30] Gah. [22:30:50] And I am semi-craving fondue at the baths! [22:31:49] * James_F glares at Amgine. [22:32:14] It’s *good*, with a bottle of chaselas, a fire going... [22:32:45] Amgine: If the next item you propose is a sheepskin or bear fur rug I'm going to banish you to the '70s. ;-) [22:33:40] How can I add a Paypal button to WikiMedia? [22:34:31] http://www.bains-des-paquis.ch/ [22:34:45] No rugs. Or swedish women.