[06:16:58] hi the apache log has Class 'Parser' not found in /var/www/w/extensions/... and other classes in the codebase like EditPage, SpecialPage and ParserOptions. Wjy do you think that could happen? apprec any comments [06:18:58] these messages happen during page editing and elsewhere, it's not a general condition [06:19:36] iow I only get <10 such fatal errors per day [06:20:55] i tried explicitly autoloading the classes within the extensions' code but it keeps popping up [06:21:35] feels strange to autoload classes like SpecialPage [09:29:17] Hi there. Can anyone tell me, why MediaWiki 1.23 lists several pages as unlinked, even tough they are pointing to categories, which in turn are pointing to other active categories? [09:36:16] I'm setting up a new wiki, and I'm trying to remember how I got the serif headline fonts that I have in this wiki http://schwarze-flagge.de, can anyone help me? It's not the VectorBeta extension. [09:45:37] In mediawiki, is there a syntax to generate inline "button"? [09:50:13] almost like the markup that you can use on StackExchange sites. [09:52:08] I mean a span of text that *looks* like a button, but isn't actually a button. The kind you would see in some software application manuals. [09:53:05] okay then, maybe someone can tell me HOW or WHEN the Special:Lonelypages updates its status. It gets quite annoying to see linked pages on there. [09:54:28] k_sze: maybe this helps: http://en.wikipedia.org/wiki/Template:Kbd [10:00:41] http://i.imgur.com/FGhQzRT.jpg [10:00:44] Terrifying. [10:20:13] https://bpaste.net/show/5d075497b4b5 - is that enough for the AD plugin? I followed the tutorial posted about it. but this isn't working out, it's failing with incorrect password. what other settings are missing? should be a setting for user credentials to the AD ? [10:21:56] Hi! Anybody around who can help me with PHPUnit tests in MediaWiki? I'm stuck on the setup :( [10:33:11] Pancakeconnector: thanks [10:33:34] you're welcome [11:12:40] where can I read debug logs of an extension ? [11:35:27] noregret: http://www.mediawiki.org/wiki/Manual:How_to_debug#Setting_up_a_debug_log_file [12:26:29] Anyone know why the Visual Editor will not start automatically when creating a new page? on Edit it instantly fires up, but on creation I have to select it manually. Using MW 1.23.3, and InputBox as only Extension (besides, of course, VE) [12:30:10] or, as an addition to that question, is that intended, since the editor is not usable by everyone? (see manual "supported browser") [12:50:25] ^^ thanks anyway, if anyone besides me should ask, redirect them to this: http://www.mediawiki.org/wiki/Thread:Extension_talk:VisualEditor/Enable_Visual_Editor_for_'create'_page [13:19:24] !vecreate is https://www.mediawiki.org/wiki/Thread:Extension_talk:VisualEditor/Enable_Visual_Editor_for_%27create%27_page [13:19:24] Key was added [13:33:19] James_F|Away: I just read what I was told to link to people who ask about creating pages in VE, apparently there's a terrible workaround in place that breaks create source (AFAICT) [13:33:26] !vecreate | James_F|Away [13:33:26] James_F|Away: https://www.mediawiki.org/wiki/Thread:Extension_talk:VisualEditor/Enable_Visual_Editor_for_%27create%27_page [13:45:27] anybody used or is using the LDAP extenstion? [13:47:13] A few people, yes :) [13:47:20] noregret: What problem are you having? [14:00:47] marktraceur: I found " basedn is not set for this type of entry, trying to get the default basedn" in the debug log, even though $wgLDAPBaseDNs is set, any ideas? [14:03:28] marktraceur: https://bpaste.net/show/93e33feeea7a - my settings [14:05:11] noregret: To be clear, you're using https://www.mediawiki.org/wiki/Extension:LDAP_Authentication ? [14:06:30] ^d: you win the *quick email reply of the day* award [14:06:48] <^d> Whee, do I get a prize? :) [14:07:16] noregret: I assume company.local has been used for LDAP in the past, successfully, and we don't need to test that [14:07:36] noregret: $wgLDAPUseLocal = false; is missing [14:08:06] noregret: So is $wgLDAPPort [14:08:25] Though you may not need it [14:08:59] noregret: Also, you have capital letters for DC and OU, but the example uses dc and ou [14:09:07] Well, just dc. [14:09:28] marktraceur: yeah, i'm using that extension [14:09:57] marktraceur: and everything is working fine with those settings, i just found that string in the log so i'm wondering about it [14:11:01] Huh. [14:11:23] noregret: I dunno, something might be up with the extension, I'll let someone who knows LDAP expound [14:12:27] marktraceur: why LDAPUseLocal ? what's the use of using the local db too ? [14:12:44] It's setting it to false; maybe it's that way by default though [14:12:50] I was just looking at the example config [14:12:59] BBL, going to store [14:13:27] alrighty, thanks [14:53:16] hi, is it possible to import multiple images at once? [14:53:46] There's a maintenance script to do it [14:54:49] which one is it? [14:55:10] importImages.php [15:16:41] hello [15:18:46] I am trying to add an optional column in a table [15:18:57] for a template, using {{#if:...}} [15:19:41] I have attempted {{#if:{{{param|}}}|{{!}} Description|}} but it seems to create an empty columb [15:20:09] oh sorry, let me check [15:20:20] ah, it worked [15:20:35] there was another row without my updates [16:00:13] hello can anybody help me? I was following all the commands in http://www.mediawiki.org/wiki/Gerrit/Tutorial until I reached "configuring git review" which I am unable to do. [16:04:35] I'm wondering what the state of Monolog usage in MW is [16:05:09] In particular, can Monolog be used by something that should be deployed on WMF servers, or not? [16:05:40] JeroenDeDauw: It's not ready yet AFAIK [16:05:46] There's a few outstanding patches to be merged [16:05:51] bd808: ^ [16:06:39] JeroenDeDauw: we are getting really close but not quite there yet. I will be testing in beta next week I hope. [16:07:13] Kunal has promised to merge the last blocker patch this week [16:07:24] bd808: Reedy: I don't really care if MW comes bundled with it or has some adapter [16:07:31] I want to know if I can use it in some Wikibase code [16:08:02] JeroenDeDauw: The adapter patch is what is about to land. https://gerrit.wikimedia.org/r/#/c/119941/ [16:09:12] JeroenDeDauw: I've got a phone interview to do shortly but I'd love to hear what your use case is and figure out how it fits with the other changes I'm working on. [16:09:40] Care to send an email or schedule some time to chat about it? [16:10:25] JeroenDeDauw: We do have monolog in the mediawiki/vendor directory and deployed to the cluster but we aren't using it yet. [16:10:43] bd808: not much to say about this. We need logging in a component that does not know about MW [16:10:53] * bd808 nods [16:11:33] Good the adapter is almost there though. Guess ops would not be happy with an other implementation of the interface being used in production [16:12:54] If you make the library take a PSR-3 logger instance then the bit that knows about MW can use https://github.com/wikimedia/mediawiki/blob/master/includes/debug/logger/Logger.php to get a logger to pass to the library classes. [16:13:09] MWLogger::getInstance() [16:13:39] Today this will return you a null logger, but soon it will give something that actually logs in prod [16:14:56] * bd808 wishes that PSR-3 specified a global logging factory rather than just a logger interface [16:17:13] marktraceur: Eww! That's… pretty ghastly. [16:17:39] James_F: Agreed. I guess you should continue your dialog there. [16:18:16] marktraceur: From August. I'd rather just hope it dies quietly. [16:18:34] Heh [16:18:41] !vecreate del [16:18:41] Successfully removed vecreate [16:19:34] marktraceur: We're working on only having one "edit" tab with two modes (VE and WT) but… priorities. [16:20:04] Ah, nice [16:45:13] bd808|MEETING: Monolog has such a factory :) [17:43:00] H'okay, I'm trying to design a multipart HTMLForm in php. And it's a hateful process. Defining multistep forms in the same page ends in tears, and for some reason doing it in separate pages seems to break returning the previous form's values [17:43:17] Lol HTMLForm [17:44:04] marktraceur: How else am I supposed to put a form on special pages :| [17:44:25] Ulfr_: There's no other choice, you're stuck with it [17:44:41] Ulfr_: E:MassMessage has a two stage form, it's kind of messy but works: https://github.com/wikimedia/mediawiki-extensions-MassMessage/blob/master/includes/SpecialMassMessage.php#L49 [17:44:43] marktraceur: Hngh. Much to be desired :| [17:45:12] Indeed [17:46:40] legoktm: Whoever wrote that is a magiciain [17:46:44] magician* [17:48:46] heh, I don't think I am :P [17:49:09] Ulfr_: Krinkle|detached is the magician ;) [17:49:21] Reedy: Everyone knows Krinkle|detached is a demigod. [17:50:21] legoktm: No, really. I didn't even realize request() was a thing [17:51:11] legoktm: Any thoughts on if it's possible to have a two dimensional array of fields? because that would make life tolerable [17:51:38] err, 2d how? [17:52:05] like, I have a list of fields that all have 2 inputs related to them as well as 2 data fields [17:52:06] on step 2 [17:52:13] at the moment I'm just doing it the horrible way [17:52:20] which is by plopping a . int here [17:52:38] and parsing [17:57:39] anyone know what version of PHPunit MW's phpunit.php is written for? [17:57:59] doesn't work out of the box on CentOS... seems to look for a runner script that's nowhere to be found [17:58:53] Fatal error: require_once(): Failed opening required 'PHPUnit/Runner/Version.php' [17:59:19] Have you got phpunit installed/etc? [18:00:12] It's there in phpunit 4.3.4 [18:00:15] it's at /usr/local/bin/phpunit [18:00:32] but i don't see a directory of scripts like the require_once() suggests [18:00:57] What version? I guess it's not compiled into a binary [18:01:09] 4.3.4 [18:01:30] ah, so I need to download source [18:01:33] ? [18:01:39] you shouldn't need to [18:01:53] it might be easier just using the phar though [18:02:08] the binary is the phar though [18:02:26] /usr/local/bin/phpunit is? [18:02:31] how are you trying to run phpunit? [18:02:54] php phpunit.php [18:02:58] i installed it like such: https://phpunit.de/manual/current/en/installation.html [18:03:12] mv phpunit.phar /usr/local/bin/phpunit [18:03:30] so phpunit bin works, but I'm not sure how to make it work with MediaWiki [18:06:01] Not had to run them locally for a while, but hwne I did I had to run it with --with-phpunitdir [18:07:37] what is the phpunitdir though? /usr/local/bin/phpunit ? [18:08:09] Needs to be the dir with the phar in, not the actual phar itself [18:08:25] lojjik@doh:~/wikihow-labs/prod/tests/phpunit (master)$ php phpunit.php --with-phpunitdir=/usr/local/bin [18:08:25] No usable PHPUnit installation in /usr/local/bin. [18:08:26] Aborting. [18:08:59] Might be easier just to wget the phar from the phpunit site and put it somewhere obvious [18:10:44] isn't that what the bin is, though? [18:11:11] I've honestly no idea for centos [18:11:45] the installation instructions make it seem like the phar is an executable, not a directory [18:11:59] It's a php archive [18:12:03] it's not a directory [18:13:08] then /usr/local/bin/phpunit should work :? [18:13:12] I dunno [18:13:24] Is that a directory? [18:13:32] Or just a bin? [18:13:33] it's a phar.. [18:13:40] I suspect MW won't be looking at it without the extension [18:14:01] hmm [18:14:07] # --with-phpunitdir let us override the default PHPUnit version [18:14:07] # Can use with either or phpunit.phar in the directory or the [18:14:08] # full PHPUnit code base. [18:15:45] code base! [18:47:21] hey guys. new mw install (and user). I added a relative path to my logo per the docs, and ade sure it was resized to no larger than 135 px length [18:47:59] but it will not display in mw. if I go to the url of the image it does display. it is not in the root of the wiki, but up one level at /var/www [18:48:18] my apache log gives a 404 when mw tries to GET it [18:49:01] it is owned by root:root , but is readable by anyone [18:53:00] well, it works with a fully qualified url so problem solved [18:53:06] gday [18:55:44] Is it ok to remove entries from the recentchanges table? On the weekend I had to make 500.000 minor edits, now Extension:Patrol is super slow. I have a $wgRCMaxAge of 60 days tho. I'd like to remove all these bot edits from the table. Nobody cares about them. [18:56:22] yes [18:56:34] Coolio [18:57:36] <^d> You won't be able to checkuser yourself though :( [19:02:49] Reedy, well, think I know the problem... requires commit https://gerrit.wikimedia.org/r/#/c/118997/ , wH is using 1.23wmf15 ... [19:11:44] puh. much better! [19:12:06] Hi. [19:13:16] Who can currently answer to the question "It is reasonnable from a database point of view to perform this heavy update on Wikimedia db?" [19:14:01] Dereckson: What is it? It's either wmf performance team, or our db ops guy [19:14:22] Reedy: https://bugzilla.wikimedia.org/show_bug.cgi?id=72525 [19:15:06] Dereckson: I guess they're gonna be indexed updates, so it's a case of doing it as batched queries, waiting for slaves [19:16:30] I don't see any obvious reason straight off why it shouldn't be doable [19:16:38] Is there a simple way to supress writing edits to the recentchanges table in an extension like ReplaceText? [19:17:59] Dereckson: I guess we need to see how many pages will be affected, and come up with a rough plan of action [19:20:07] Ok. [19:23:05] hi [19:38:55] Subfader: according https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FReplaceText/ba71f817f377d6d400d81d94864281599a5c2433/ReplaceTextJob.php the extension currently performs a regular edit. [19:39:58] Subfader: ie from a logging components point of view there is no difference between a regular edit by an user and an editdone by ReplaceText extension [19:40:33] Yes it does and that's fine. But I run these as bot and for maintenance. It's unncessarily blasting by rc table. The rc table is used by Patroller and Newest Pages. The samller the table the better [19:41:02] Subfader: As a workaround, I were going to say you could create a flood group, with the bot permission. [19:41:13] But you have already considered this option. [19:42:16] What does it change that the user is a bot? [19:42:45] Wiki contributors can set the watchlist and the recent changes not to print bots edit. [19:43:29] Yeah ok. But it still writes in the recent changes table. I may extend my wish to a MW request: Option to ignore bots on RC [19:44:36] For now, where can I hack myself into the core to ignore RC writing if user = bot? [20:00:38] Subfader: do a search on the table name in the code, you'll probably get the relevant logging function [20:02:57] Sure. That was lame from me. includes/changes/RecentChange.php looks promissing [20:06:39] Oh how great. I like. [20:58:58] I have large CSS in Common.css that is only used on a special page (and its subpages). Can I make RL only load it when the body has a certain class? [20:59:52] Subfader: pull it in from that special page's code [21:01:02] The code adds no CSS, I add it on Common.css. I can hack into the extension, sure. But I'm lost there [21:01:28] Subfader: what extension is this? [21:02:22] The ugliest shit you have ever seen (code wise) https://www.mediawiki.org/wiki/Extension:AWC%27s_Forum [21:03:22] It does usee CSS but I removed and wrote my own CSS [21:04:33] Subfader: how'd you get stuck with that? [21:05:35] changed release numbers [21:05:52] That extension? It's the best forum extension. MW's lack of a proper community discussion feature made me use it. That was before Liquid Threads and even that is slow as hell and now eve dropped.. [21:07:42] woooo, first time the channel's topic is updated in time! [21:09:28] ;) [21:09:30] Hmh, I had high hopes in RL to work on Common.css. But it will work on Common.js, right? [21:10:24] Hello, I would like to create a page with data from a different database. is that possible? opening a website inside a frame would also be an option. [21:14:02] this looks possible, but there is a huge warnign at the top [21:14:04] http://www.mediawiki.org/wiki/Extension:Include [21:15:15] you could always link your other content without including it [21:15:47] slestak: its just an internal wiki for the company not reachable from anyhwere else so that shouldnt be a problem [21:16:20] I've not used that extension, but it does appear to describe what you wanted [21:16:21] yea would link it but then i have to write a complete website with navigation and suff [21:16:45] it looks like the info has to be static [21:17:13] but a php file would work i presume [21:17:43] sometimes ppl will try to tweak a wiki or forum or some other app to act liek others. [21:17:57] one of my employers i joked with wanted a blogchawiki [21:18:17] and they implemented phpBB [21:18:34] yea i know that one [21:18:35] time to get home. gday [21:18:39] cya [21:21:05] Hello, I've inherited a very old mediawiki version 1.15.1. I would like to upgrade it to 1.23 to take advantage of some extensions. Does anyone have suggestions on how to do so without breaking the database? [21:21:55] Hooligan: Breaking it? [21:22:06] Backup the files, backup the database. Replace the files, update the database [21:22:07] breaking it may not have been the best word [21:22:30] !backup [21:22:30] See http://www.mediawiki.org/wiki/Manual:Backing_up_a_wiki for information about backing up your wiki. For restoring your wiki, see http://www.mediawiki.org/wiki/Manual:Moving_a_wiki#Import_the_database_backup for more. If you don't have database access, try !grabber. [21:22:32] !upgrade [21:22:32] http://www.mediawiki.org/wiki/Manual:Upgrading [21:22:33] yeah Ive tried that and I get a "A database query error has occurred. This may indicate a bug in the software." [21:22:44] Did you run update.php? [21:22:46] !debug [21:22: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 [21:23:17] Im trying to import the database into a 1.23 instance [21:23:56] Where can I make MediaWiki:Monobook.css load on Special:Prefences? This is so 1999 :( [21:24:16] Hooligan: import? [21:24:44] mysqldump the database [21:24:47] move it to a new server [21:24:53] create a new database with dump [21:25:52] I'd do the upgrade and move to new server as 2 seperate stages [21:25:53] not one combined [21:26:41] In SpecialPreferences.php I see "$out->disallowUserJs();" but not where CSS is supressed [21:27:00] Hi would anyone know where I can access the performance timing data for Mediawiki? [21:27:33] Subfader: CSS is not allowed on Special:Preferences due to possible security flaws. [21:27:42] Sorry, the performance timing data fro Wikipedia's production environment? [21:28:03] memeht: There is some stuff at https://gdash.wikimedia.org/ [21:28:14] memeht: What exactly are you looking for? [21:28:19] Yes, fine for JS. But my users think I'm dumb when the default layout loads (which they don't know) [21:28:39] Only trusted users can edit the MW ns [21:29:11] It is a function in MediaWiki itself. [21:29:19] Sure. Which= :) [21:29:57] Subfader: https://bugzilla.wikimedia.org/show_bug.cgi?id=71621 [21:31:05] csteipp thanks, looking into it. Pops up regulary it seems [21:36:12] Woot. That fix is super complicated :/ I just thought of commenting out some core line. Well, back to outsourcing CSS from MW ns then. I gave RL a chance. He failed. [21:37:47] I'm looking for the raw performance timing data. [21:38:21] Reedy: I hear that there is a logging system that contains the raw data, would you know how I can access it? [21:40:00] memeht: it's setup for general access due to the nature of some of the data that makes it into it [21:40:18] *it's not setup [21:40:56] What are you trying to do? [21:52:29] I'm working on a creating an aggregate Key Performance Metric from that data, and then visualization the information with charts and js [21:53:09] It is part of my FOSS-OPW project [23:39:37] hello. has anyone here with some experience in running mediawiki under nginx ? [23:45:55] veleno, don't ask if you can ask, just ask [23:49:14] i’m trying to configure mediawiki to run under nginx on ubuntu (14.04 LTS). nginx is correctly installed (i get the welcome page), but then cannot reach the mediawiki installation . the nginx.conf looks like this: http://pastebin.com/aiR4thTJ [23:52:23] What do you mean by you can't reach it? [23:54:38] Reedy: i get a 404 Not Found page [23:54:46] visiting what url? [23:55:23] http://clusterinfo.unineuchatel.ch:10004/mediawiki [23:56:14] veleno: how did you install mediawiki? [23:56:18] mediawiki files definitely in the right place/right file permissions? [23:56:31] Betacommand: I guess he hasn't yet [23:56:32] Betacommand: from the ubuntu package [23:56:40] ewwwwwwwwwwwwwww [23:56:46] !package [23:56:46] Many Linux distributions provide MediaWiki in a packaged format for that distro. These packages typically contain obsolete & unsupported versions of MediaWiki; they also like to move around & change files, & do other super-counterproductive things. You'll get the best support here if you install MediaWiki directly from one of our tarballs - https://www.mediawiki.org/ - or Git https://www.mediawiki.org/wiki/Download_from_Git [23:57:10] Reedy: he did what I expected [23:57:17] :) [23:57:35] Reedy: which is why I asked that :P [23:58:35] it worked ok when using Apache. but, it is really slow, serving 1 page in ~ 0.6 seconds… [23:58:39] veleno: see the above message about packaging. Once you have it installed correctly come back and if you are still having problems we will lend a hand [23:59:04] Ok, i will install the lastest from the website [23:59:18] veleno: make sure you remove the package version first [23:59:28] purge it