[00:38:05] Howdy. Having some trouble with MediaWiki's VisualEditor setup. [00:38:18] Mostly related with Parsoid setup. [00:38:23] (It seems) [00:38:56] NightMonkey: You're hardly the first. :-) [00:39:17] There's a whole channel for this. #mediawiki-parsoid is sometimes active and helpful. [00:39:24] But you're also welcome to ask in here. [00:39:26] Esther: Thank you. [00:39:43] I'm not sure what #mediawiki-parsoid's active hours are. [00:39:44] Esther: I'll check over there first, then. [12:04:52] hi [12:05:05] so i am following this wiki page: https://www.mediawiki.org/wiki/Manual:Restoring_a_wiki_from_backup#From_the_command_line_using_mysql [12:05:22] and it says to restore a dump with: mysql -u wikidb_user -p wikidb < dump_of_wikidb.sql [12:05:54] nvm [12:05:58] i missread [12:08:50] how do i debug a 500 server error ? [12:22:14] !blank | Duality [12:22:14] Duality: A blank page or HTTP 500 error usually indicates a fatal PHP error. For information on debugging (including viewing errors), see . [13:15:23] my appache error log shows this: Invalid command 'AuthGroupFile', perhaps misspelled or defined by a module not included in the server configuration [13:15:39] how do i fix that ? googling doesn't show me any usefull results [13:17:21] Duality: it's an Apache directive https://httpd.apache.org/docs/2.4/mod/mod_authz_groupfile.html#authgroupfile [13:17:45] you probably have it in an .htaccess or server config, but you don't have mod_authz_groupfile installed/enabled [13:17:49] i am sorry but i had found it just right after asking :D [13:29:23] hi there [13:29:39] dermaggus: Hi [13:29:45] !ask [13:29:45] 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. :) [13:30:01] is it possible to set a timeout in LocalSettings.php for failover for servers in wgLDAPServerNames ? [13:30:34] the timeout is much too high (with 60 seconds) but I havent found a parameter for this failovertime. [13:31:27] Not sure, maybe someone else knows [13:37:23] hi guys [13:39:30] Combined2857: Hi [13:39:36] !ask [13:39:36] 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. :) [13:40:04] hi MacFan4000 [14:38:18] has anyone a solution or answer for my question? [14:40:10] Hi! I want to make a user administrator or bureaocrat from command line, how do I do that? it is a bit unclear for me :w [14:40:54] Minnebo: https://www.mediawiki.org/wiki/Manual:CreateAndPromote.php [14:41:16] So i'll be needing that script [14:41:17] allright [14:41:33] Minnebo: the script is already in MediaWiki, in the maintenance directory [14:41:39] oh [14:41:43] perfect [14:43:08] dermaggus: I've done a quick search on the extension's page but there doesn't seem to be a parameter controlling timeout, you can try hacking the code (if you can see where the timeout could be set) or open a task in phabricator (or the talk page) requesting it [14:47:03] Vulpix: maybe there is another timeout used from the default config file? [14:47:46] not in MediaWiki. Maybe in php.ini but I don't know [15:02:55] You can actually sometimes adjust timeout from php. it doesn't always work though [15:03:33] We do it in wfTransactionalTimeLimit() for example (includes/GlobalFunctions.php) [15:03:50] That said, its probably not something you should do from php unless you have a good reason [16:13:08] bawolff: do you know how I can repeat the background? [16:13:13] For my watermark. [16:13:25] There's a background-repeat css property [16:13:45] https://developer.mozilla.org/en-US/docs/Web/CSS/background-repeat [16:13:49] Thank you! [17:10:37] cscott: Would it have been better if it strictly followed the XML spec and used the character ranges specified therein? [17:12:28] cscott: I'm not really opposed to just following the html5 spec and allowing basically everything (Except I'd like not to have unicode spacing characters because that's sketch, '/' or backtick (`) ), but it is slightly scary from what if old browsers do something weird [17:13:17] bawolff: what's the character ranges in the XML spec? [17:13:37] bawolff: i just don't want to have to link libicu and follow the constantly-changing set of unicode letters and numbers [17:13:54] ":" | [A-Z] | "_" | [a-z] | [#xC0-#xD6] |[#xD8-#xF6] | [#xF8-#x2FF] | [#x370-#x37D] | [#x37F-#x1FFF] |[#x200C-#x200D] | [#x2070-#x218F] | [#x2C00-#x2FEF] | [#x3001-#xD7FF] |[#xF900-#xFDCF] | [#xFDF0-#xFFFD] | [#x10000-#xEFFFF] [17:14:02] is the name start character [17:14:19] and you can also have "-" | "." | [0-9] | #xB7 | [#x0300-#x036F] | [#x203F-#x2040] [17:14:22] that's probably reasonable. that last range covers all emoji, i think. [17:14:24] as long as its non-initial [17:14:37] lol, that's what's important :P [17:14:56] it's important we use a pile-of-poop-y character class [17:15:31] bawolff: could you paste the above into the phab ticket? that seems reasonable to me. [17:15:47] Its actually from a comment in the phab ticket, way back up [17:16:53] this seems to be what arlo is doing right now, in order to get the letters and numbers set: https://gerrit.wikimedia.org/r/#/c/364779/1/lib/wt2html/tt/Sanitizer.js [17:18:47] on the good side, the regexp transpiler he's using seems to be handling the unicode astral plane correctly, which a naive implementation of ...| [#x10000-#xEFFFF] wouldn't. [17:19:38] wow, that's an unfortunately long regex [17:19:49] its slightly different from the xml one [17:21:37] cscott: right, node.js still uses utf-16 which makes everything suck ;) [17:22:36] * bawolff has to look up how pcre handles astral characters [17:25:30] wow, pcre moved bawolff to the astral plane [17:30:09] probably ethereal, actually [17:35:20] * subbu is always amused at the astral plane use [17:35:30] s/at/by [17:41:58] yeah, I try to use that word every excuse I have because I find it funny :) [17:46:14] https://tools.wmflabs.org/bash/quip/AV0350cyy0p8b4nn6sfk ^^ [17:48:45] lol [18:51:46] does anyone know where the code of gerritbot lives? I need to look at the phab api requests it makes to do something of my own... [18:56:19] codezee: https://wikitech.wikimedia.org/wiki/Gerrit_Notification_Bot [19:01:31] cscott: https://gerrit.wikimedia.org/r/364818 [19:02:06] cscott: let me know if that's better for parsoid [19:57:06] So... If Chameleon(skin) isn't properly handling Print.css, what can I do to hack together functionality for this? Or will I need to switch skins? [20:06:13] cwre: What is the exact problem? [20:08:25] FoxT: I'm trying to apply a watermark via Mediawiki:Print.css. Using MonoBook and ?printable=yes works fine, but doing the same with Chameleon does not. The printable page is no different than the original page, although it's still modifying the page before it's printed. [20:09:43] cwre: Chameleon has its own print.css at skins/chameleon/resources/styles/print.less. To override styles you can register your own style files in LocalSettings.php. [20:09:58] cwre: See https://github.com/cmln/chameleon/blob/master/docs/customization.md#changing-styles-fonts-colors-padding-etc [20:10:23] isn't MediaWiki:Print.css supposed to work on all skins? [20:10:32] That's what I was told. [20:10:36] But I guess not. [20:11:46] it's even documented at https://www.mediawiki.org/wiki/Manual:CSS [20:11:54] Vulpix: IIRC, only if it is explicitly pulled in by skins. Which Chameleon does not do [20:14:48] cwre: I guess you should wrap the CSS inside @media print { } in your MediaWiki:Chameleon.css or even MediaWiki:Common.css [20:15:00] https://developer.mozilla.org/es/docs/Web/CSS/@media [20:15:45] Vulpix: there's no Chameleon.css [20:15:46] well, in english :P https://developer.mozilla.org/en/docs/Web/CSS/@media [20:16:28] can't you simply create it as others? see Manual:CSS [20:17:04] Nothing in that either. [20:17:08] it would be very weird if that skin ignores all CSS pages... [20:17:24] of course, you should create the page [20:21:29] Hi guys, I have downloaded the WikiSEO, places the .zip under extensions, and added wfLoadExtension( 'WikiSEO' ); in my LocalSettings.php, but I get an internal 500 error, what have I done wrong? [20:21:54] !blank [20:21:54] A blank page or HTTP 500 error usually indicates a fatal PHP error. For information on debugging (including viewing errors), see . [20:21:58] !e WikiSEO [20:21:58] https://www.mediawiki.org/wiki/Extension:WikiSEO [20:21:59] wtf is WikiSEO? [20:22:21] https://www.mediawiki.org/wiki/Extension:WikiSEO [20:22:25] lol [20:23:10] I probably have to unzip that file ? [20:23:35] uh, yes [20:24:09] the tutorial didnt say :p [20:24:10] cwre: I just did a quick test and it worked on MW 1.28.0 with Chameleon 1.5.1-alpha. [20:24:19] FoxT: what worked? [20:24:44] I put a rule into MediaWiki:Print.css and couild find it in the loaded CSS [20:27:02] but does it put that loaded CSS in the printed file? [20:27:06] Because I can't see it. [20:27:35] maybe your CSS rule is being overridden by chamaleon skin [20:27:50] It can't be because he just said it's being loaded. [20:28:26] CSS rules can be overridden with more specific rules or by conflicting changes [20:29:20] https://bitbucket.org/snippets/cwre/qyqndk [20:29:29] for example you can set a background on body, but the skin has a
filling all the page with a solid color, the tag won't be visible no matter how styles you have applied to it [20:29:30] Here's my Print.css from that web page. [20:29:56] Vulpix: so how can I work around that/ [20:30:50] hit F11, find your element and see if the rules have been applied after all... [20:31:03] What...? [20:31:05] Fatal exception of type MWException ;( [20:31:11] then you may need to try a different selector or whatever [20:33:59] I really, REALLY had web design. [20:34:06] s/had/HATE [20:36:07] Unable to move the new CDB file into place. [20:36:43] haas something to do with $wgCacheDirectory apparantly, but I don't have that setting [20:37:42] nevermind, just created it [20:37:44] and it works [20:51:48] Can I just throw this POS into the foreground and not deal with it? [20:52:00] FoxT: Vulpix ^^ [20:52:06] cwre: what happens if instead of using .mw-body-content you use #bodyContent? [20:53:17] Because .mw-body-content is a class used by e.g. Monobook and probably Vector, but not Chameleon. [20:53:24] FoxT: still nothing [20:53:43] I'm testing inside of Common.css so I don't have to print every time. [20:53:48] cwre: if your wiki is public, a link to it would be incredibly helpful [20:53:55] Vulpix: it's not. [20:56:36] cwre: Just to make sure. Could it be that you need to turn on printing of background iomages in the browser? [20:57:35] but it won't work in monobook neither... (when actually print-preview, of course) [21:05:50] cwre: I thin I found it. It is actually a probalem with Twitter Bootstrap requiring background: transparent !important; for @print; [21:06:28] Try something like this: body.mediawiki {background-image: url(https://lh3.googleusercontent.com/mvHbePT-FyB8YpsjecAdCSvK7XoqOcsa4rqpCksWUDZ1koC_2cOfzvt2QU6rPsk5Yuri=w300) !important;background-repeat: repeat;} [21:31:47] FoxT: I will try that. [21:32:11] Thank you for your help, got pulled away for something else. Needed a break from the Cascading Shit Show [21:32:27] :D [21:32:49] Actually.... Just #bodyContent seems to have worked... [21:33:01] I'll try your other fix, too. [21:53:31] FoxT: what you found works perfectly. Thank you so much. [21:53:53] cwre: Welcome. :) [22:04:44] I'm having an issue similar to https://phabricator.wikimedia.org/T154394#3356579 I don't know if this is a configuration issue or what. But none of my math formulas in the wiki are showing up. I'm using Ubuntu 16.04 and the feature used to work until I updated everything from github last week. [22:05:09] http://joshuarosales.com/wiki/index.php/Quadratic_Formula [22:05:24] I get this error: Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "/mathoid/local/v1/":): {\displaystyle x=\frac{-b\pm \sqrt{b^2-4ac}}{2a}} [22:06:00] The mathoid server seems to work when I use curl. So I think the problem is with restbase, for some reason, being unable to connect. [22:07:18] Parsoid works, so my restbase configuration isn't completely wrong. [22:08:54] http://joshuarosales.com/wiki/index.php/Special:MathStatus also throws errors. [22:09:32] Tex input is invalid. I tested it with a simple 'abc' string, which should work. [22:11:33] Is this the right channel to address for my grievances? lol [22:12:11] Any idea on what I could try? [22:13:17] http://joshuarosales.com:7231/localhost/v1/ also works, but the math formula rendering doesn't seem to work. [22:16:10] When I try the string 'abc' using the web interface above, I get the response: { [22:16:14] "type": "https://mediawiki.org/wiki/HyperSwitch/errors/not_found#route", [22:16:16] "title": "Not found.", [22:16:18] "method": "post", [22:16:21] "uri": "/localhost/v1/media/math/check/tex" [22:19:50] mhm, properly installed mathoid doesn't behave like that. maybe gwicke can help? [22:20:16] gwicke? *googles* [22:20:45] Oh, a user. lol [22:21:23] Mathoid works when I use curl though - so I'm inclined to think it's not the mathoid server itself. [23:55:37] question is there a script that can turn a bunch of large html documents into wikifyed pages [23:56:35] i could whip something up in python but i just wondered if anyone had done it before [23:57:00] my google fu is failing me