[02:47:02] hey all [02:47:09] Hey, I need help with making a multi wiki setup. Yes I have read the help page but I'm still confused on how to start. [02:47:53] and I'm trying to make a custom mod that removes the Wikimedia login in favor of XenForo's login. I'm having trouble with the registration process because the code for determining if a username is valid is spaghetti. [02:48:02] If anyone has knowledge on this please ping me. [03:00:51] I somehow want the following to be my wiki family from hypoverse.com: hurricanes.hypoverse.com, weather.hypoverse.com, tornadoes.hypoverse.com, and stars.hypoverse.com. [03:15:28] !family | Repton [03:15:28] Repton: To run multiple wikis, you can simply install MediaWiki in different folders, with different databases or in one with database prefixes. You can also have multiple wikis using a single installation: If you run a farm or want to, join the mailing list: [03:18:08] Okay but which method should I use in that page? [03:18:23] It's really confusing me. [12:44:18] Hello. I'm trying to get SyntaxHighlight to work. I have put the extension in the extensions/ dir. I have installed python-pygments (I'm on Debian 8). I have copied the sample code from MediaWiki to my sandbox. It doesn't work. What's the best way to go about debugging this? [12:44:52] Oh, and I've added wfLoadExtension( 'SyntaxHighlight_GeSHi' ); to my LocalSettings.php of course. [12:45:06] It also shows up in Special:Version [12:45:57] And my sandbox page is added to the Pages with syntax highlighting errors category. [12:48:18] I'm on 1.26.2 by the way. [12:49:39] mediawikiq: What's the value of the lang attribute? [12:50:29] python [12:50:55] I'm using the sample code from https://www.mediawiki.org/w/index.php?title=Extension:SyntaxHighlight#Usage [12:54:13] Does it show any error message? [12:54:34] Glaisher: Where should I check? (sorry, I'm new to MediaWiki) [12:54:57] That page itself [12:54:58] I think it's supposed to show a red error message [12:54:59] The only "error" I see now is that the page is added to the "Pages with syntax highlighting errors" category. [12:56:11] Hmm, does your log file have any related to this? [12:56:33] Where is it located? (sorry again) [12:56:42] There doesn't seem to be anything in Apache's error.log [12:56:46] !debug [12:56:46] 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 [12:58:55] I already tried setting PHP errors in LocalSettings.php. It didn't show me any errors when editing/viewing my sandbox. [13:03:43] not the php errors, do you have $wgDebugLogFile set up? [13:04:36] No I haven't. Working on that now (not sure where I have write permissions on this server). [13:08:57] Glaisher: Fairly sure I have set it up right. No logs though, when editing/saving/refreshing my sandbox. [13:09:24] And no logs in Apache's error.log either (I'd expect complaints about lack of write permissions there). [13:09:58] hrm [13:11:09] Exactly.. :\ [13:14:03] mediawikiq: Can you try turning on $wgDevelopmentWarnings then? [13:14:52] Sure. Is there something I can turn on or do that will definitely write something to the debug log? To see if it's working. [13:15:22] It shows the warning on the site itself [13:16:16] I see. Unfortunately, no errors. [13:16:48] oh :/ [13:17:12] SyntaxHighlight comes with a built-in version of Pygments. That should just work, right? [13:17:36] Perhaps I could make it talk to the system's pygment. [13:22:44] https://github.com/wikimedia/mediawiki-extensions-SyntaxHighlight_GeSHi/commit/f41f26a85c35a54ee1b4ae7e196f0e903f19e0c6 [13:22:52] mediawikiq: looks like the error message is actually not shown [13:24:12] Glaisher: hm [13:32:17] I may have found the error. [13:32:44] extensions/SyntaxHighlight_GeSHi/pygments/pygmentize is not executable. [13:35:25] [Tue Apr 05 15:15:53.575693 2016] [:error] [pid 9729:tid 139626945693440] [client x.x.x.x:39542] FastCGI: server "/usr/lib/cgi-bin/fake-php5.fcgi" stderr: PHP message: PHP Notice: Failed to invoke Pygments: sh: 1: /web/wiki/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize: Permission denied, referer: https://x.x/wiki/index.php?title=Sandbox&action=edit [13:35:30] There we go. [13:37:23] For the record: If you're not allowed to have executables in your webroot, but you do have python-pygments installed, set this in your LocalSettings.php to get it working: $wgPygmentizePath = pygmentize; [13:37:31] Thanks for troubleshooting, Glaisher! [15:58:07] Hello, where can I download the echo extension for my wiki? [16:41:14] How can I get my sidebar links to stop stripping out : ? [18:29:14] anyone used an extension that allows you to lock a page to one viewer at a time? [18:30:06] jwynn6: just out of curiostiy, why would you do that? [18:34:03] we are experimenting with putting all of our governing regs into a wiki environment for cross-referencing, a few of them are only licensed for a single person to use at a time. currently we check them out, but it would be nice to be able to have them cross-referenced as well. [18:34:36] but not being able to enforce our licensing agreement would be a bad thing legally speaking [18:50:59] jwynn6: Seems near impossible through a web browser. Would need to have some way to know when the tab/window was closed, for one. [19:30:28] Its possible. Websocket to the server. But you're going to be doing a lot of fun coding [19:32:58] yeah, thats what i figured. [20:54:39] hello guys [20:54:58] I am trying to understand how a template works [20:55:05] {{#if: {{#pos:{{{1|}}}|w:c:}}{{#pos:{{{1|}}}|Glossary:}}{{#pos:{{{1|}}}|#}} [20:55:44] would that find "w", "c", "Glossary" or "#" [20:55:47] ? [20:58:12] That's checking if "w:c:", "Glossary:" or "#" are at the start of the first argument [20:58:47] or rather it's only continuing if it's not (I think) [20:59:25] probably as something to do with links. where is it from? [20:59:39] http://dc.wikia.com/wiki/Template:A?action=edit [20:59:52] I am trying to understand that code...