[01:42:14] Hello all! I am having problems with ParserFunctions, it doesn't seem to be working on my install even though it shows it in the extensions list on Special:Version. When I use the #if it just displays as text [01:45:16] Did you add the #if to the page prior to installing the extension? Could be some sort of caching issue (Although that would be odd as any edit to LocalSettings.php is supposed to kill all caches) [01:46:34] How exactly are you using #if? If you go to Special:ExpandTemplates and input something like {{#if:true|yes|no}} is that entire string being output? [01:48:10] Going to Special:ExpandTemplates and entering that worked so it might be a cache issue? I'll try making a new page and copying it over by hand [01:49:20] Remaking the template did not work, it still has the same issue [01:49:33] even when I include it to another page [01:49:43] If its a complicated template, there could be something else going wrong causing the text to show up [01:50:23] shouldn't be that complicated, is it okay if I link to it? [01:50:27] yeah [01:50:35] https://doormonster.wiki/wiki/Template:Pongbox2 [01:50:57] You're missing the colon [01:51:05] needs to be {{#if: ... [01:51:32] ... [01:51:36] wow I feel dumb [01:52:10] template syntax is super confusing, minor typos happen a lot, you're not alone [01:53:15] yeah, but I really shouldn't be this newbish at it. I'm basically repeating work I did last year but completely forgot how to do [02:12:03] Okay now I have a new problem, for some reason including the template adds a big chunk of empty space above it [05:07:29] God does not roll normal dice with the universe [05:07:34] He rolls quantum d20s [07:24:20] Hello channel, I converted my MW database from utf8 to (recommended) binary using `alter table ... convert to character set binary;' (except for the `searchindex' table) and `alter database wiki character set binary;', and switched to `$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=utf8";' in `LocalSettings.php', and find I cannot log into my wiki site (`There seems to be a problem with your [07:24:26] login session; ...'). How can I fix this? Many thanks. [07:27:07] (Correction: I switched `$wgDBTableOptions' from `ENGINE=InnoDB, DEFAULT CHARSET=utf8' to `ENGINE=InnoDB, DEFAULT CHARSET=binary'...) [08:00:58] CasperVector: Additionally, I tried to modify `$wgMainCacheType' and `$wgSessionCacheType', all to no avail as of now. [08:44:30] hi [08:44:55] small question, i migrated to mw 1.27 and now my images are not visible ( see: https://wiki.mageia.org/en/First_step_with_Mate ) [08:45:02] where should i look to fix this ? [08:54:17] neoclust, webserver log. https://www.mediawiki.org/wiki/Manual:How_to_debug [11:58:08] Is it possible to create dynamic forms/templates on Pages? Extension:Quiz is used to create Quizzes on the site, and I would like to create a form and a template in which you can define how many questions will be in the Quiz [12:00:09] There seems to be this thing called #arraymap, and I was wondering if I can use it to solve this issue. Can I add arrays within arrays, so that I could then loop through them on the template? [12:05:02] Well these template parameters and such are pretty poorly documented in my opinion. Very hard to get a clear image on what can be done with them [12:06:25] Hmm, I guess I can create a template for a single Question, and then somehow create a form that can add multiple. [13:43:27] Is there any way to get MediaWiki to give you errors? [13:43:51] It seems to be a pure guess game to get things working on Pages/Templates, as you don't know what is wrong [13:56:48] what kind of errors specifically? [13:56:51] !debugging [13:56:51] For information on debugging (including viewing errors), see http://www.mediawiki.org/wiki/Manual:How_to_debug . A list of related configuration variables is at https://www.mediawiki.org/wiki/Manual:Configuration_settings#Debug.2Flogging [13:57:03] although i'm not sure if that's what you mean [14:20:44] Hello there. [14:20:51] Does anyone know why in MW1.27 showJobs showsJobs as queued although they have finished already. Only after 20-30seconds they will not show anymore. [14:24:30] I suspect DeferredUpdates, but have no idea how that works. [15:01:04] anybody have thoughts on a good name for an extension that adds functionality to scribunto, primarily to simplify making generic UI messages (ex: on wikipedia, protectedpagewarning has a switch for each protection type so it knows which groups to list, where I just made a function groups_granted_privs so you can directly get the list of groups with a priv) [15:31:38] Is there an extension or built-in way to make it so certain words can be hovered over to pop-up a tooltip (to ex, explain abbreviations)? [15:33:41] wiki_guest: word in standard HTML? [15:34:39] that works, but I was kind of hoping for something where I wouldn't have to manually mark each instance individually. Something like a hook that would do that based on a list of words I defined somewhere [15:39:08] wiki_guest: none that I'm aware of. But if you know how to do the replacements in PHP, you could code it using the hook https://www.mediawiki.org/wiki/Manual:Hooks/ParserAfterTidy [15:40:19] I think the extension lingo will do what I want. I'll have to try it out [15:41:53] wiki_guest: you could create templates for each word. you'd still have to explicitly use "{{foo}}" rather than "foo" in the page text, but that still beats "foo" every time [17:45:09] Hi [17:45:20] I'm trying to set up a online wiki host MediaWiki [17:45:21] A database query error has occurred. This may indicate a bug in the software.[WPpE9Hlk8DbV1owuOdrqZwAAACA] 2017-04-21 17:44:20: Fatal exception of type "DBQueryError" [17:45:29] this is what I get because I'm not sure how to use phpMyadmin database [17:45:30] Please help [17:46:05] SarahDer: add this to LocalSettings.php: $wgShowSQLErrors = true; [17:48:35] Vulpix I have and it still only shows [17:48:37] and maybe $wgShowExceptionDetails = true; [17:48:37] Database error [17:48:37] A database query error has occurred. This may indicate a bug in the software.[WPpGD2V7iZzZ7UaRXkv3tgAAABw] 2017-04-21 17:49:04: Fatal exception of type "DBQueryError" [17:48:45] Ok I will try that too [17:49:26] Still the same unfortunately :( [17:49:35] no more details? :( [17:49:42] Nope [17:49:43] Only that [17:49:48] It's when I try any action that requires database [17:49:55] such as creating a new account [17:50:17] The weird thing is it does the error but next time I try to create an account with the same name it says its existent [17:50:18] Uhm. According to https://www.mediawiki.org/wiki/Manual:How_to_debug $wgShowExceptionDetails should actually show a stacktrace. [17:50:26] Though it doesn't shop up in the logs [17:50:31] It's weird, it doesn't show anything [17:50:50] So you set $wgShowExceptionDetails to true and you still do not get a stacktrace displayed in your browser? [17:50:57] I'm setting it up and didn't buy a domain yet, here is my temporary wiki http://nasimos.eu.ai/mw28/index.php/Main_Page [17:51:08] there's also $wgShowDBErrorBacktrace = true; [17:51:16] I'll try that too [17:51:58] Now it worked [17:52:12] Vulpix: https://dpaste.de/mYZC [17:52:56] you're missing some steps to install CheckUser [17:52:58] !e CheckUser [17:52:59] https://www.mediawiki.org/wiki/Extension:CheckUser [17:53:22] oh. Update.php [17:53:34] The thing is I'm not too sure how to run that without access to a server [17:54:06] ah, you can run the web installer again, it will detect the database has been setup already [17:55:07] it will perform the same as update.php [18:05:45] Vuplix sorry to bother but one more question, how do you delete a user? [18:08:13] You can't really delete them, but you can use an extension to merge them on the same account [18:08:15] !e UserMerge [18:08:15] https://www.mediawiki.org/wiki/Extension:UserMerge [20:05:44] Does anyone know why in MW1.27 showJobs shows jobs as queued although they have finished already. Only after 20-30seconds they will not show anymore. [20:45:08] Wow that was tough debugging - I have a wiki where only users in certain groups have the 'read' privilege (ie a truly private wiki). Lingo, when it reads its glossary page, uses "new User()" to create a user to get the contents. This was failing since (I think) that was creating an anonymous user, which doesn't have the read privilege. [20:55:54] Is there a way to construct a generic user with read privileges? Or do I create a bot account for lingo to use? Right now, I have the glossary page on the list of pages anybody can view, but I'd rather not [20:57:40] I'd make a new account for Lingo to use [20:59:49] and then change it to User::newFromName("Lingo") or similar? [21:24:09] wiki_guest: If you could add a bug report on that it would be very much appreciated: https://phabricator.wikimedia.org/maniphest/task/edit/form/1/?projects=MediaWiki-extensions-Lingo [21:39:04] FoxT: done https://phabricator.wikimedia.org/T163608 [21:40:14] now I'm having an issue where updating the glossary page does not result in updated other pages - it seems they are staying cached (if I purge a page, it then shows correctly) [21:40:17] wiki_guest: Thanks! [21:40:41] I'll see if I can get it to work without having to create a dedicated user [21:46:09] Does wfMessage depend on the current user? [22:09:33] I have installed mediawiki again lately. But for some reason I have random wikipedia files available as far as I can tell. Is that normal? I don't think so... [22:09:45] Images [22:10:29] Aebian: such as? [22:11:48] russian rank images I never uploaded [22:12:05] check your LocalSettings.php for $wgEnableInstantCommons [22:12:24] if it's true, then your wiki will automatically use images/files from Wikimedia Commons should they not exist locally [22:12:28] you can set it to false to disable that behavior [22:12:54] soryr [22:13:00] the variable is $wgUseInstantCommons [22:13:04] got it a bit wrong above [22:13:07] Aebian: ^ [22:15:51] hmm ok [22:15:56] I'll check [22:16:26] hmm yeah its set to true [22:16:36] then I guess thats why it works [23:08:11] what exactly do I need to do in order to display four tables in a horizontal line together? Instead of | the get displayed -Table1- -Table2- -Table3- // Is there a Wiiki Way for it or do I really need to go with HTML for this? [23:08:33] the Table wikimedia page is not really explaining that [23:26:23] TIL: php has a yield keyword [23:29:57] Since apparently php 5.5 [23:30:16] I didn't even slightly realize that php had generators