[00:07:51] When I create a template, with content from Wikipedia, it shows with a lot of #if statements, that seemingly aren't being parsed. What could cause that? [00:40:20] I'm making a portal, and all of my includes get Template: prepended to the address, so that e.g. {{Foo}} becomes domain.com/wiki/Template:Foo. Why is that? [00:52:38] sjokkis: because that's how templates work? See https://www.mediawiki.org/wiki/Help:Templates for more info [00:52:50] as for #if:, that's added by the ParserFunctions extension [00:53:31] Skizzers: Hm, but then when I use the portal box skeleton, instead of just Portal:Topic/Whatever it's Template:Portal:Topic/Whatever. Is that how it should be? [00:53:54] if Portal:Topic/Whatever does not exist, then yes [00:54:10] er [00:54:16] if Portal: is not a real namespace, then yes* [00:55:26] creating a page Portal:Foo doesn't automatically create a Portal namespace, it just creates a page named "Portal:Foo" in the main namespace [00:55:38] if you want to add a Portal namespace, you need to do so via LocalSettings.php [00:56:12] (and then run the namespaceDupes.php maintenance script to clean up any existing pages you created in the main ns that would no longer be accessible once a real ns exists) [00:56:28] heyy hi, anyone able to rename users at wikitech ? [00:56:34] Oh really. I'm just following https://www.mediawiki.org/wiki/Portals [00:56:56] Which doesn't mention changing anything in LocalSettings.php [00:57:02] sjokkis: see point #1 and #2 of the prerequisites section [00:57:15] "The ParserFunctions extension will need to have been installed." and "A 'Portal' namespace will need to have been added (FAQ: How do I add extra namespaces?)" [00:57:23] Oops [00:57:26] if you follow through the link for the second, you'll be instructed to modify LocalSettings.php [00:57:42] notably, https://www.mediawiki.org/wiki/Manual:Using_custom_namespaces#Creating_a_custom_namespace [00:59:09] hi! anyone able to rename users at wikitech ? [00:59:13] lfschenone: try #wikimedia-tech ? [00:59:18] thx ! [01:00:25] (note: I have no idea if that's the right channel or not, but this is the support channel for the mediawiki software and not wikis hosted by wikimedia, although there is a lot of overlap among the users) [01:01:03] Thanks Skizzerz. It works the way I expected, now [01:01:20] sjokkis: after you add the portal namespace, you should run the namespaceDupes.php maintenance script (if you created any Portal: pages before adding the ns) [01:01:36] if you didn't create any Portal: pages before adding the namespace, then you don't need to do that [01:01:48] I've been wondering how to run those. I don't have ssh access to my host, I think [01:02:11] that makes life more difficult :) [01:02:29] I know of two extensions that purportedly let you run maintenance scripts via the web, but they're iffy [01:02:53] That sounds like a horrible idea [01:02:57] notably because maintenance scripts are quite powerful so exposing them to the web can be dangerous if you don't ensure everyone with access to them is trusted [01:03:33] they are Extension:MaintenanceShell and Extension:Maintenance if you're interested, I have no idea if either work on recent versions of mediawiki or with your php configuration [01:03:43] Sounds like you'd drastically increase the attack surface for no real reason [01:04:38] pretty much, but if you really need to run a script, you could enable the extension, run it, then disable it again [01:04:54] or ask your host to run it for you if they're nice [01:05:02] or move to a host that gives ssh access ;) [01:05:26] (out of sheer curiousity, who are you with?) [01:06:32] What host, you mean? [01:06:35] yeah [01:06:41] you don't need to answer if you don't want [01:06:57] http://www.solidhost.no/ [01:07:15] Only ssh with dedicated machines, apparantly [01:07:22] I might switch, but right now I can't be bothered [01:07:44] Would be nice to just pay for a small virtual machine. These guys only offer either shared hosting, or a physical box [01:08:02] heh [01:09:24] it looks like they also offer VPSes [01:10:05] if you click the "VPS" link at the bottom of their site [01:12:38] Nice [13:04:38] hello, i am running a mediawiki, that uses a ldap server for authentication. is there a config option for auto create new user, which exists in ldap, but not in mediawikis db? [14:33:25] morning [14:35:59] Hallo. [14:36:24] How can I change LocalSettings.php in a Vagrant installation? [14:37:34] Oh, found it, I'm silly. [14:58:59] Hello, I am looking for help changing the "Create account" link in the personal toolbar to a link of my choice. I cannot locate in the documentation how to modify this link. I have a basic understanding of MediaWiki admin but I am not an expert by any means. Thanks. [14:59:29] What do you want to change? [14:59:35] The text? Or the target? [15:00:39] The target, though ideally both [16:56:29] i have an old mediawiki installation that ran correctly at some recent time in the past [16:56:33] running: php index.php # works just fine [16:56:36] but running it with php-fpm fails [16:56:39] any ideas on how i can distinguish why running php manually works but php-fpm doesn't? [16:56:45] look at the logs? [16:58:06] nothing interesting in the php-fpm log [16:59:01] let's see [16:59:14] I noticed that there is a huge white space to the right of the table of contents. Is there anyway I could fill that in with content? A column perhaps? [17:00:53] On the main page [17:00:59] http://pastebin.com/wejgddTR so this is what i'm getting [17:01:28] when i change Exception to Error, php index.php stops working, and then php-fpm gives me some different error [17:01:56] let me get that [17:02:25] AAlex:
__TOC__
[17:02:37] AAlex: that will make the TOC float, and the text flow around it. [17:03:02] In MediaWiki:Common.css? [17:03:18] dr_toboggan: Do you run SMW? [17:03:30] there's an error in the error o_O [17:03:32] http://pastebin.com/eRrbka42 when i change Exception to Error. it's complaining that dl() is missing [17:03:43] Reedy: how can i check for that? [17:04:20] (i'm using php and php-fpm 7.0.6, which is indeed missing dl()) [17:05:06] only dl() usages in master MW (at least) is in PEAR stuff [17:05:23] this is a pretty old version of MW, i would imagine [17:05:47] Nvm got it. Thank you DanielK [17:06:02] dr_toboggan: I'd check that for starters then [17:06:11] I wouldn't expect ancient MW to run on latest PHP [17:06:15] Considering a lot of changes [17:06:15] well [17:06:22] if it absolutely didn't run, then yeah, that's my fault [17:06:27] i'm wondering why: php index.php works [17:06:29] Lots of package changes [17:06:30] while php-fpm doesn;t [17:06:32] *doesn't [17:06:33] Different config? [17:06:37] loading of php extensions etc [17:06:38] that's what i'm trying to figure out [17:11:46] I am looking for help changing the "Create account" link in the personal toolbar to a target of my choice (preferably change Create account to "Register" as well). Thanks. [17:32:14] So I am entirely curious about one particular facet of MediaWiki and editing. [17:32:34] Why is it when one goes to edit a page a lock is not given? [17:33:49] The statefulness of the application and the ability for someone to maliciously keep a page permanently locked from editing while not doing anything. [17:34:39] That first part makes sense I suppose. The later could theoretically be solved by issuing timed locks no? [17:35:13] And then decreasing the duration of the lock with subsequent reissues [17:36:37] I suppose if one really wanted to they could make an extension for edit locks couldn't they? [17:36:50] Right, then they coordinate with other people to then take over the lock to reset it back to the full duration. Considering how bad it can get just when people are fighting over the neutrality of an article on Wikipedia it would be very difficult to implement that in a nice way. However, creating an extension to introduce that functionality would work. [17:36:59] * Trela nods. [17:38:20] Alright then. I suppose it's not so bad that it doesn't ship with these capabilities. Keeping it as open at ship with the option to lock it down during configuration is probably a better path than locking at ship and then opening it at configuration. [17:42:14] Last question I suppose. [17:42:36] Is MediaWiki compatible with PHP 7? [17:43:27] Probably, but I don't think we test it yet. [17:43:36] I wouldn't assume. [17:45:12] Alright, I've got a server with 7 that I am looking to set MW up on so I will probably test it later on [17:52:39] I am trying to change the target for the "Create account" link in the personal toolbar. Ideally, I would also like to change this to "Register." I have not had luck looking through documentation. Thanks for your help. [17:53:45] wikideer: 1.26 has a few issues with PHP 7 in regards to error handling, but the current 1.27 alpha has fixed all of them. [17:55:56] well, so i ultimately ended up adding: function dl($something) {} [17:56:01] to my LocalSettings.php [17:56:17] spelledgeary: You want to adjust (on-wiki) the page [[MediaWiki:pt-createaccount]]. [17:56:26] i have no clue why /usr/bin/php provided a dl() function while php-fpm didn't [17:56:33] when neither of them were supposed to, according to the version [17:56:36] but problem solved for now [17:56:42] spelledgeary: You can find this string and others like it by browsing with `?uselang=qqx` at the end of your URL. [18:13:26] Trela: so then these'll be fixed in 1.27 for php7? http://paste.ubuntu.com/16132060/ [18:13:32] (that's just trying to run the setup page) [18:13:43] (with a 1.26.2 tarball) [18:14:44] teward: Is your PHP 7 distribution missing DOMDocument for some reason? http://php.net/manual/en/class.domdocument.php [18:15:02] Trela: possibly in which case I get to yell at people [18:15:41] ext-xml is required [18:15:59] wow... [18:16:05] Trela: figured it out, guess I'll go yell at upstream then [18:16:26] :3 [18:25:11] Thanks James_F. Can I also change the target with that special page? I have changed the Register to show [18:26:38] spelledgeary: Oh. The target is hard-coded in, sorry. [18:26:49] 'text' => $this->msg( 'pt-createaccount' )->text(), [18:26:50] 'href' => self::makeSpecialUrl( 'Userlogin', "$returnto&type=signup" ), [18:27:27] You'd have to hack it in the code, which I would very strongly discourage. [18:27:37] Trela: first-glance, php7.0 hasn't broken for me yet, though i'm also using a postgres backend heh [18:27:41] Instead it might make sense to replace the built-in link with a new one. [18:28:57] teward: The main issue with come up if you have a PHP error. MW's error handling had to be updated to support PHP 7's additional error handling and exceptions. [18:29:21] Trela: indeed, though as this is my 'testing' system and I test all the PHP frameworks I have fun with, everything gets dumped :P [18:29:23] So instead of a pretty error page you will get an exception dump on a white page saying it could not handle the error. [18:29:30] yeah like i saw just a few minutes ago :) [18:29:35] Yep. [18:31:08] Trela: though, given that 99% of what I work with is terminal console output anyways... i'm used to unformatted stacktrace dumps xD [18:34:45] *Trolls over teward's profile.* Terminal junky indeed. :D [18:36:34] * teward looks at "profile", scratches head, tries to figure out what profile is being referred to [18:42:00] teward: On your Launchpad. [18:42:09] ah [18:42:12] :P [18:47:44] Currently the Sign in link in the personal toolbar is linked to our own login. I believe this is done through an extension. Could I add code in this extension (or LocalSettings) to replace the Create account link? [18:49:26] Trela: yeah, i'm a server guy - lots of terminal junkieness :) [19:09:28] I'm trying to use cache to speed up my site a bit. Made some changes in LocalSettings.php but I'm getting this error: /mediawiki/ MWException from line 1306 of /var/www/html/mediawiki/includes/cache/LocalisationCache.php: Unable to open CDB file for write "/var/www/html/mediawiki/cache/l10n_cache-en.cdb" [19:10:47] I am not familiar with this error but have you tried checking that the user it runs on has permission to read the file? [19:11:22] Well the cache directory is empty. I assumed it would autopopulate the files it needed [19:12:05] Permissions are as follows: drwxr-xr-x 2 501 staff 4096 Dec 20 20:02 cache [19:12:28] But if it does not have the permissions are not set to WR then you may not be able to do it [19:12:37] Wow I mangled that [19:13:03] chmod 755? [19:14:03] AAlex: what does PHP run as? What user/group? "staff"? Something else? [19:15:27] whatever PHP and/or the webserver is running as on the system, that user and/or group has to have permissions to write in the folder [19:16:40] Forgive me, I'm somewhat of a noob. The permissions of the php folder? [19:17:00] The permissions of the PHP daemon/user [19:17:54] Should be whatever the defaults are. Can you please tell me how I can find out? [19:25:12] AAlex: what is your OS? [19:25:20] ubuntu 14 [19:25:23] and what web server and PHP backend are you using? [19:25:33] LAMP [19:26:16] urgh [19:26:26] 1 moment [19:27:27] AAlex: cat /etc/php5/apache2/php.ini | grep user [19:27:30] cat /etc/php5/apache2/php.ini | grep group [19:27:46] AAlex: i assume a default LAMP installation/setup? [19:28:50] Affirmative [19:29:22] grep group returned nothing. which string am I looking for grep user? [19:30:40] AAlex: actually it's apache [19:30:45] so it probably is builtin [19:30:47] hmm [19:31:08] Yeah that sounds right [19:32:32] AAlex: chown 501:www-data /var/www/html/mediawiki/includes/cache/; chmod g+w /var/www/html/mediawiki/includes/cache/ [19:32:37] you may need 'sudo' or root for that [19:35:43] was successfully set permissions but getting the same error unfortunately [19:35:55] o i can't read [19:36:02] wrong folder? [19:36:05] what're the perms on this? /var/www/html/mediawiki/cache/ [19:36:31] if they're the same as 501:staff, run those commands on that path [19:36:31] drwxr-xr-x 2 501 staff 4096 Dec 20 20:02 cache [19:36:36] ok [19:36:39] AAlex: chown 501:www-data /var/www/html/mediawiki/cache/; chmod g+w /var/www/html/mediawiki/cache/ [19:36:50] * teward read the wrong part of the error message heh [19:36:58] no worries [19:37:33] no joy [19:37:42] do i need to restart the services? [19:37:58] you shouldn't, but i'd point at this being a permissions problem more than anything [19:39:14] this sounds a little evil but it may be prudent... chown -R 501:www-data /var/www/html/mediawiki/ [19:39:28] we want www-data to be able to access things :P [19:39:48] though if that still doesn't work you *do* have a permissions problem somewhere in the chain [19:42:48] Okay, let me make a backup first lol [19:56:24] anomie, could you re-review https://gerrit.wikimedia.org/r/#/c/274641/ when you have a chance? I replied to your comment and rebased it. [20:00:17] matt_flaschen: ok [20:06:19] anomie, thanks. [22:12:17] Can someone explain how does mediawiki install the database schema? [22:12:44] In what sense? [22:13:00] It opens the sql file, does some simple text transformation, throws it at the db [22:16:42] hiyo: look at maintenance/tables.sql [22:17:13] Okay, will do [22:20:32] Reedy: what kind of text transform? Does it run each query one at a time in a loop? [22:20:50] No, it's one big file, it runs it all in one go [22:21:02] CREATE TABLE /*_*/recentchanges ( [22:21:13] /*_*/ becomes a table prefi [22:21:13] x [22:21:20] ) /*$wgDBTableOptions*/; [22:21:27] That gets replaced with the global contents [22:23:04] $wgDBTableOptions = 'ENGINE=InnoDB';