[00:04:05] ok,ßolved with a crazy hack but worked, added /dev/null to the open_basedir in php [00:04:09] *solved [00:05:40] now I have a question about the EquationNote template, I'm getting http://i.imgur.com/a4kOrL4.png as opposed to wikipedia (from where I copy/paste) https://en.wikipedia.org/wiki/Template:EquationNote [00:05:48] any ideas why I'm getting a different result? [00:06:27] [19:04:05] ok,ßolved with a crazy hack but worked, added /dev/null to the open_basedir in php [00:06:36] I think that was the "correct" solution [00:08:03] mefistof1les, Extension:ParserFunctions needs to be enabled [00:08:47] OH-: oh ok, let me check that, thanks [00:10:45] OH-: btw, how did you know that? [00:11:13] mefistof1les, "#if" is a feature of ParserFunctions [00:11:33] OH-: ok, nice, thanks [00:11:43] it's a way of implementing logic into wikitext (see more here https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#.23if) [00:29:11] OH-: thanks, sorry abusing your mind, but all I'm missing is to parse this HTML tags, check http://i.imgur.com/s5tDygL.png [00:29:19] OH-: I appreciat eany thoughts [00:32:47] are those your HTML tags or did they come from a template [00:34:44] OH-: nice catch, I think they come from a template {{NumBlk|:| U(\mathbf{r},t)=Ae^{-i(\omega t - \mathbf{k \cdot r})} [00:34:50] that NumBlk, going to check it [00:36:13] OH-: https://en.wikipedia.org/w/index.php?title=Template:NumBlk&action=edit this is the template [00:44:07] mefistof1les, could you show the whole syntax of the {{Numblk}} [00:47:43] OH-: {{NumBlk|:| U(\mathbf{r},t)=Ae^{-i(\omega t - \mathbf{k \cdot r})} |{{EquationRef|2.1a}}}} [00:47:47] that is one [00:48:18] OH-: hmm, maybe it's in the Math extension [00:48:46] https://en.wikipedia.org/wiki/User:Sn1per/sandbox syntax is fine; works on enwiki [00:49:27] yes [00:49:46] probably some misconfiguration of the math extension, OH- [00:52:42] OH-: the Special:MathStatus page is not loading :( [00:53:19] just to confirm, you copied {{NumBlk}} exactly into your wiki without any errors? [00:57:59] OH-: yes [00:58:52] then it could be the math extension [01:00:21] OH-: I believe so [01:02:19] OH-: http://i.imgur.com/5EMGvRd.png (takes a long to load but that's the output) [01:05:12] I have a feeling there is some kind of extension or template we are missing that is messing up the rendering [01:07:55] OH-: maybe, but I don't know what to look for, if you have any ideas I'd appreciate it, thanks [01:08:14] hmm, maybe the HTML source of your rendered page has some clues [01:17:07] OH-: there's some weird HTML in my rendered page: </dl> [01:17:14] you see how /dl is not inside <> [01:20:05] looks like the main issue [01:20:14] that comes from |}{{#if:{{{1}}}|{{Repeat||{{str len|{{{1}}}}}}}|}} in NumBlk [01:20:26] and Repeat template is {{#invoke:String|rep|{{{1|}}}|{{{2|1}}}}} [01:20:29] OH-: ↑ [01:21:38] Since I noticed you imported Module:String from mediawiki.org, but you are using templates from enwp [01:21:50] try using Module:String from enwp. There are some slight differences [01:22:15] I'm almost sure I used the enwp one [01:23:02] how many bytes long is your version of Module:String? [01:23:29] enwp version is 15,731, but mw.org is 15,733 [01:23:46] 15,731 bytes [01:23:48] yes [01:23:52] huh [01:24:39] Lua version is the same 5.1.5 [01:25:45] I'm thinking maybe enwp's config allows tags but your wiki doesn't. Can you try putting some
tags to see what happens? [01:27:59] OH-: sure, one sec [01:29:07] OH-: looks fine [01:30:04] OH-: it's weird, because the starting
is fine in rendered HTML code [01:30:39] </dl> [01:30:53] oh, and of course, < and > are < > respectively [01:31:01] I'm stumped. last thing I can think of is maybe the mediawiki version has something to do with it [01:32:02] OH-: I'm using 1.28.0, enwp uses 1.29.0-wmf.12 [01:35:03] what happens when you put "{{EquationRef|2.1a}}" by itself? [01:36:37] OH-: works fine [01:37:12] i don't know, sorry :( [01:37:47] OH-: problem is that somehow it's rendering < and > as < and > [01:38:06] no idea why, it happens with that
tag and the starting

tag for the math stuff [01:43:31] OH-: I put this in wiki {{#if:{{{1}}}|{{Repeat||{{str len|{{{1}}}}}}}|}} and I get </dd></dl></dd></dl></dd></dl></dd></dl></dd></dl></dd></dl></dd></dl> [01:43:42] woah, sorry for the hard to read line xD [01:44:02] (that's what I get in rendered HTML) [01:47:39] that doesn't happen on enwp [01:47:48] maybe you have some sort of extension that is interfering [01:47:53] other than that I don't know [01:51:47] OH-: yeah, versions seem the same, with little differences in phabricator, but well, thanks a lot for your help anyways [01:51:59] good luck [01:54:22] OH-: I'm going to try with String module form mw, that's the last thing I can think of [01:57:11] I remember we used to have to do if ( !defined( 'MEDIAWIKI' ) {die} thing, but a lot of the new and updated extensions no longer have it in the ExtensionName.php file - is it no longer advised to include that? [01:58:28] OH-: that didn't work, same output :( [01:58:34] nadors: you mean, for my case? [01:59:33] nah something else [01:59:51] i haven't dabbled in mediawiki for maybe 5 years now and a lot has changed [02:02:20] nadors: In most cases, we're not using PHP entry points for extensions now... :) [02:22:21] the doc says $wgUser should no longer be used - what's the right way to do $groups = $wgUser->getGroups() now? [03:04:34] nadors: https://www.mediawiki.org/wiki/API:Users You can use the user API and run a query (?action=query&list=users&usprop=groups) [03:13:26] nadors, use the RequestContext to get the current user [03:13:36] https://www.mediawiki.org/wiki/Manual:RequestContext.php [03:13:40] then you can use ->getGroups [03:36:17] thanks [04:26:15] How should I go about limiting the amount of entries passed in an API param that takes multiple values (IS_MULTI)? [05:26:21] help [11:51:53] Hmm, my wiki is displaying filenames instead of thumbnails of PNG files uploaded thereto [11:52:43] * Halian_Ashrain tries restarting [11:56:04] …nope, no change [11:56:18] Halian_Ashrain: Maybe permission problem? Or files uploade to wrong directory? [12:00:18] * Halian_Ashrain tries setting the thumbnail epoch to 6am and installing GraphicsMagick [12:00:30] (actually, now I'll just set it to 7am) [12:01:15] Actually, does MediaWiki use UTC or local time timestamps? [12:07:16] …No, it's still not rendering .png thumbnails, argh [12:27:54] Help? :( [13:16:38] :( [13:47:05] …hrm, it doesn't appear to even be creating thumbnails for raster images right now [13:48:29] …why is $wgGenerateThumbnailOnParse set to false [14:55:59] Hi everybody, is it possible to request an export of all pages from a given namespace from the API? [15:16:14] Bonjour: Seems possible from https://www.mediawiki.org/wiki/Special:Export [15:16:23] Err, Special:Export, I mean. [15:19:24] Yes but it's not from the API [15:25:45] Bonjour: https://www.mediawiki.org/wiki/API:Allpages [15:57:23] Thanks! SamanthaNguyen, with api.php?action=query&list=allpages&exportnowrap=1&apnamespace=100&aplimit=100&format=xml I have my pages listed but it does not have the section with the actual content of the pages :/ [15:58:01] is it because I have to use a "generator" ? https://www.mediawiki.org/wiki/API:Query#Exporting_pages O can't get it to work with namespace [16:00:32] Bonjour, 'info: when using allpages as a generator instead of just a list, add a g to the start of its parameter names. E.g. "gapnamespace" instead of "apnamespace"' [16:00:50] from https://www.mediawiki.org/wiki/API:Allpages#Error_Codes [16:01:44] hi, is there really any need for Extension:SpamRegex ? [16:03:20] a few of the spam extensions don't seem to be particularly useful because they just use regex matching [16:03:34] Thanks OH-, but I think I'm doing something wrong because I again have only the with no section :( [16:03:36] couldn't I simply use Extension:AbuseFilter? [16:03:49] api.php?action=query&generator=allpages&exportnowrap=1&gapnamespace=100&gaplimit=100&format=xml [16:04:11] Bonjour, oh, you need to have &export as well as &exportnowrap [16:04:29] garheads: Can if you want. I suspect some people see AbuseFilter as too heavyweight/complex [16:05:10] I guess [16:05:33] Yes !!!!!!!! [16:05:37] Now it is working ! [16:05:43] Thanks your very much OH- :) [16:05:49] cheers [16:06:09] I've already got the abuse filter and was looking for some other anti-spam extensions, but I was puzzled because SpamRegex was basically the same thing [16:06:20] so is $wgSpamRegex I guess [16:06:47] Different things were created/developed at different times to scratch different itches [16:06:57] Some extensions have been imported from third parties that kept them closed source for a long time [16:07:20] as of 2017, is there any reason to use $wgSpamRegex or Extension:SpamRegex? [16:08:33] oh also, I saw the Extension:DisableAccount extension - why does Wikimedia use it? [16:09:07] its feature set seems to match the built-in blocking feature and it's less convenient because you can't undisable accounts via the interface [16:13:22] I think, again, it was written before certain blocking features existed [16:13:26] And migration away from it hasn't happened [16:13:45] https://phabricator.wikimedia.org/T106067 [16:24:16] hey guys, anyone willing to give some tips about a lua module? [16:25:09] !ask supernino [16:25:09] Please feel free to ask your question: if anybody who knows the answer is around, they will surely reply. Don't ask for help or for attention before actually asking your question, that's just a waste of time – both yours and everybody else's. :) [16:27:49] not a specific question, tale, just looking if someone can take a look at http://codepad.org/QUAvCFqx It seems to work in tests, but I'd like an opinion about the code itself, if it looks clean or needs some fixing here and there :) [16:46:45] I don't know if thishe the right area for this dialogue although I wanted to bring to your attention that you have the biographies wrong. In your description of Nationalities you identify the black folks as African Americans and white people as Americans? White people are not Americansure, they would be considered European Americans. Only people that can be considered Americans are the indigenous Indians, Eskimos, and Hawaiians. [16:49:24] “Error creating thumbnail: Unable to save thumbnail to destination” fffffff [16:53:16] …ok, chown -R www-data:www-data thumbs fixed it, but why were a bunch of the thumbnail folders owned by root in the first place?! [17:36:39] !logs [17:36:39] channel logs: http://bots.wmflabs.org/~wm-bot/logs/%23mediawiki/ html version: http://tools.wmflabs.org/wm-bot/logs/index.php?display=%23mediawiki [18:19:06] Hello guys and happy president's day [18:19:52] I am new at editing and need your help to unblock my IP [18:20:17] Your username or IP address has been blocked. The block was made by [[User:Shirayuki|Shirayuki]]. The reason given is Spam/advertising-only account. * Start of block: 02:03, 18 February 2017 * Expiration of block: infinite * Intended blockee: Omarjuvera You can contact [[User:Shirayuki|Shirayuki]] or another [[Project:Administrators|administrator]] [18:20:17] to discuss the block. You cannot use the "email this user" feature unless a valid email address is specified in your [[Special:Preferences|account preferences]] and you have not been blocked from using it. Your current IP address is 2606:6000:67c1:7100:8865:5153:8671:f785, and the block ID is #74778. Please include all above details in any queries [18:20:18] you make. [18:21:05] I was under the assumption that I was working on a draft. It turned out that I was not. [18:22:52] hello [18:23:18] hello [18:24:16] Omarjuvera: you were editing on https://www.mediawiki.org/ , i think you meant to be writing that on https://en.wikipedia.org/ [18:24:39] Omarjuvera: i don't know the details of Wikipedia's policies, but perhaps indeed you should've been working in a draft too [18:25:02] Like I mentioned before, I am new at editing AND under the impression that I was working on a draft [18:25:20] Omarjuvera: i unblocked you on www.mediawiki.org – but note that this is a completely separate wiki from en.wikipedia.org [18:25:42] (your user account and password works on both, but they are separate projects) [18:26:14] Omarjuvera: do you have a copy of the deleted content? or do you want me to retrieve it? [18:26:15] If I was, like you sad, editing on mediawiki, that's was a mistake [18:27:15] Again, a newbby mistake [18:28:06] I have a copy, and thanks to wikiIRC i managed to land on the right place this time AND create a draft NOT an actual article [18:28:22] :) [18:28:55] good luck editing :) [18:29:17] Given my prior history with wikiirc, I though I am at the right place to get my IP unblocked =) [18:29:21] https://en.wikipedia.org/wiki/Draft:Electric_Carlos [18:31:19] The instructions provided, to unblock my IP were to initiate a talk with Shirayuki plus another admin. The problem is, I can't even initiate a talk let alone email [18:31:33] and to include this: [18:31:56] https://thepasteb.in/p/zmh86pgj9LntZ [18:31:56] Your username or IP address has been blocked. The block was made by [[User:Shirayuki|Shirayuki]]. The reason given is Spam/advertising-only account. * Start of block: 02:03, 18 February 2017 * Expiration of block: infinite * Intended blockee: Omarjuvera You can contact [[User:Shirayuki|Shirayuki]] or another [[Project:Administrators|administrator]] [18:31:57] to discuss the block. You cannot use the "email this user" feature unless a valid email address is specified in your [[Special:Preferences|account preferences]] and you have not been blocked from using it. Your current IP address is 2606:6000:67c1:7100:8865:5153:8671:f785, and the block ID is #74778. Please include all above details in any queries [18:31:57] you make. [18:35:07] hello! [18:36:47] Omarjuvera: see #wikipedia-en-unblock [18:37:09] oh, it's mediawiki ? [18:37:17] * tabbycat said nothing [18:37:56] can't initiate a talk nor email the user [18:40:34] Omarjuvera: I believe MatmaRex said they unblocked you already [18:41:11] how can I check if it worked on mediawiki ? [18:41:29] Go to mediawiki and see if you're blocked [18:42:17] Omarjuvera: i'm pretty sure i unblocked you already [18:42:46] Omarjuvera: you were never blocked on en.wikipedia.org, as far as i can see, only on mediawiki.org, and i unblocked you there [18:43:22] <3 [18:43:32] thank you!!! [19:07:17] Hi, I have a problem with the installation of MediaWiki. I have an error message in which it is said that the access was denied for my database and I don't know what to do to run the installation properly? The details about the database and everything are accurate, so I don't know what's wrong. Could someone explain me what could be wrong, please? [19:47:40] Math [19:48:08] Sorry! [20:31:21] !wg [20:31:21] https://www.mediawiki.org/wiki/Manual:%24wg [20:45:00] How do I create a user_token field on a new user for 3rd party auth [20:45:20] My auth works fine for existing MediaWiki accounts but for new accounts just created with no user_token field I get cookie errors trying to create the session [20:46:03] example: https://ghostbin.com/paste/svhga [20:46:17] (that doesn't work because it throws errors about touch timestamps) [21:51:38] the toolbar to bold, underline etc disappeared from my mediawiki, how do i get it back? :D [21:59:49] nvt: which of the wiki text editors do you refer to? [22:00:18] nvt: and more relevant: did you check the error console of your browser if some javascript maybe broke something?