[00:03:33] "The third new class of application is free and open source software (FOSS),1 much of which is noncommercial." [00:03:49] I want to hit this Carnegie Mellon prof. with a big rock [00:08:18] Nemo_bis: Where is that? [00:09:24] lol [00:17:02] marktraceur: doi 10.1007/s13174-011-0019-x [00:17:42] Huh. [00:33:28] Emailed him [00:34:29] :P [04:00:36] Evening. [04:25:06] I know I've been asking about this question, but now I'm at a point where I d onot know what to do. My upload limit in Specialpage:Upload shows 100B as the file limit. My host has checked everything on the PHP end. All appropriate settings are set to 100MB in php.ini and I have confirmed this with phpinfo(), as has another friend who knows more about this from the backend than I do. No matter what I adjust in mediawiki 1.24.1, i [04:25:06] ncluding uninstalling and reinstalling, will adjust this above that rating. I have also set the $wgMaxUploadSize to 1024 * 1024 * 100, and it still reads 100B. I am at a loss for where to even go from here, as [05:04:38] the editor in mediawiki doesn't seem to be a WYSIWYG editor [05:06:06] It's not. [05:06:13] !ve [05:06:13] VisualEditor is a project to create a simple editor for MediaWiki that would make it far simpler for people to contribute to Wikimedia projects. See also https://www.mediawiki.org/wiki/VisualEditor and #mediawiki-visualeditor channel. [05:06:44] ^ that isn't either, but is much closer [05:12:38] What is the best method to revert all changes of blocked users at once [05:12:53] fighting off some spam and I've got about 400 users to clean up after [05:13:10] we have blocked them all, but wanted to know best method to revert all the spam [05:13:56] I'm not aware of a way to revert new pages. [05:14:57] You could write a JavaScript that would allow admins to delete all contribs by a user though and I think there might be an extension that can do it. [05:29:32] !e Nuke [05:29:32] https://www.mediawiki.org/wiki/Extension:Nuke [05:36:21] p858snake|_: its great for single accounts [05:36:29] but I've got over 400 accounts to clean up here [05:46:00] !e BlockandNuke [05:46:01] https://www.mediawiki.org/wiki/Extension:BlockandNuke [05:46:04] its pretty good [05:53:07] ... welp, I found the error! HAHA! [10:53:34] Hi here [10:53:55] I have a question about code modifying mediawiki, does anybody could help ? [10:58:35] p0ky, maybe, just ask :) [11:01:17] unicodesnowman: I want to change username on the fly, (user i loggin somewhere else than mediawiki), so I want to make believe mediawiki the user is logged in [11:01:41] the purpose it to allow username to be set in edition window instead of the ip address [11:02:22] ah. have you looked at single sign-on? where is the other place the user is logged in from? [11:02:33] unicodesnowman: sceneid [11:02:58] unicodesnowman: not sure you ever heard about [11:04:08] p0ky, okay. you can probably hack around this: https://www.mediawiki.org/wiki/Extension:Auth_remoteuser [11:08:06] thank you unicodesnowman, out of this, isn't there simplier like forcing variable value somewhere in the skin or something (in case of ) ? [11:15:45] p0ky, that's almost what that does. just set the REMOTE_USER env variable. [11:16:17] keep in mind you can't just tell Mediawiki to display something and have it work. An account as database entries associated with it, and that needs to be created. [11:17:07] If you just change the IP address _displayed_, well, it's going to show the IP address if you click on your username. Or if you view the history of a page, or if you check logs, etc etc etc. [11:17:37] unicodesnowman: right. [11:17:47] I will try to figure out with the extension [11:18:04] but I cant remote login with oauth2 with this or manage oauth2 [11:18:21] and I don't want user to be created in mediawiki database [11:18:45] because as oauth2 system, i can't get the user credentials [11:35:24] unicodesnowman: I think this will make the trick ! thanks a lot unicodesnowman , gtg, cya [11:36:42] cya :) [13:04:13] I'm trying to backup a localhost wiki following http://subsurfwiki.org/wiki/Upgrading_MediaWiki . 'mysqldump -u bitnami -p 2hd7fh3h bitnami_mediawiki > piwikibackup.xml' asks for password then fails with "mysqldump: Got error: 1045: Access denied for user 'bitnami'@'localhost' (using password: YES) when trying to connect" [13:04:38] I'm putting in the 2hd7fh3h password. What's going wrong? [13:06:53] pi_, no space after -p, so -p2hd7fh3h [13:07:54] it's better to leave out the password, ie 'mysqldump -u bitnami -p bitnami_mediawiki > piwikibackup.xml' and it'll prompt you [13:17:25] thanks unicodesnowman [13:17:39] Now I get '/Users/pi/piwikibackup.xml: Invalid argument' ... [13:18:09] (I did './mysqldump -u bitnami -p bitnami_mediawiki > ~/piwikibackup.xml') [13:19:28] pi_, why ./ ? mysqldump should be in your /usr/bin/ [13:19:40] cd ~ ; mysqldump -u bitnami -p bitnami_mediawiki > piwikibackup.sql [13:19:56] also.. why .xml? mysqldump outputs the SQL, no? [13:20:38] unicodesnowman: I'm using a stack from BitNami. So mysqldump is in /Applications/mediawiki-1.23.3-0/mysql/bin [13:21:05] pi_, ah, ok. that command works for me though [13:21:19] something odd is going on [13:21:31] maybe try #mysql ? [13:22:44] unicodesnowman: ok will do, thx [14:22:48] I'm following http://subsurfwiki.org/wiki/Upgrading_MediaWiki . I've finally managed to extract my SQL database using mysqldump. However, the instructions don't seem to provide a corresponding instruction to restore this database to my new wiki. [14:26:08] I'm using BitNami MediaWiki stack, and trying to handle version upgrade. So I've written my old SQL database into say x.sql, and I've made a copy of /apps/mediawiki/htdocs/{LocalSettings.php, images/, skins/ & extentions/} [14:27:21] images/, skins/ & extentions/ I can just copy across. LocalSettings.php I may need to fiddle with. But I think I need some way of importing x.sql into the new SQL database. [14:27:55] pi-: you can import the x.sql file into mysql directly with the mysql command [14:27:57] (BitNami Version upgrade is the wrong word, there is no upgrading, they just provide a new stack.) [14:28:31] Vulpix: could you give me the syntax? [14:28:46] looking at the mysql --help atm [14:28:50] I can probably look it up... sorry [14:30:26] mysql -u user -p mynewdatabase < sqlfile.sql iirc [14:30:33] well, you can open the mysql shell, and then use the "source" command to specify the sql file to execute [14:30:49] yes, or what Lcawte said [14:30:51] (you'll need to create mynewdatabase first) [14:32:00] well, that depends on how did you run mysqldump. I think it adds the create database command [14:33:37] Is there any forum for mediawiki or any place to contact people who will install/setup for money? [14:34:01] mmm, no, he's right, you need to create the database first [14:35:48] The config file has: $wgDBserver = "localhost:3306"; -- does this mean I need to specify the port in that command line? [14:36:59] pi-: yes, unless the my.cnf file already has it specified for default connections [14:37:20] ok, great, it ran without producing any errors. [14:37:22] Thanks [14:37:56] LordChaos: https://www.mediawiki.org/wiki/Professional_development_and_consulting [14:47:08] ty [15:20:26] unicodesnowman: unicode, me again ! [15:21:24] unicodesnowman: I'm looking for a new way to replace IP address in Edition article with a value created by me [15:21:58] If I could just push a value just before it is stored into the database [15:22:02] would be nice [15:22:15] althought I know it is not really nice [15:22:41] couldn't make the extension work properly [15:22:47] and I run out of time [15:22:51] any help here ? [15:23:09] I've just got back to working on this. I'm trying to transfer a wiki from an old version of a MediaWiki stack to a new version. As described above, I've extracted the SQL database from the old and imported it into the new. Additionally I've copied across /apps/mediawiki/htdocs/images/* [15:24:44] Now I run the new stack, and nothing is different. http://localhost:8080/ still shows the same page it originally did. However I look in /apps/mediawiki/htdocs/LocalSettings.php notice port is 3306, try http://localhost:3306/ and get http://pbrd.co/1D6hahm [15:25:08] J��� 5.5.40����CvJL!]3%�ÿ÷!�€����������_1qj>8?p7aaE�mysql_native_password�!��ÿ„#08S01Got packets out of order [15:25:48] pi-: that's the port of the mysql database server, not the webserver running mediawiki [15:26:01] What's going on here? I'm guessing I need to modify LocalSettings.php somehow to match the old..? [15:27:09] Vulpix: mmk, do I need to be making any change to the WebServer? [15:27:41] pi-: go tho the page Special:Version on your wiki to see if it's now the new version or the old [15:28:42] As in http://localhost:8080/Special:Version ? That gives a "Not found"... [15:29:24] I guess it should be http://localhost:8080/wiki or http://localhost:8080/mediawiki or http://localhost:8080/w ... [15:30:00] whenever you've installed mediawiki on that webserver/bitnami. I don't really know where it publishes it [15:30:35] Awesome! http://localhost:8080/mediawiki skips straight to http://localhost:8080/mediawiki/Main_Page and there is my old wiki! [15:30:39] Fantastic! [15:30:53] :) [15:31:08] m4tx: where's nemo?! [15:31:30] I put months of work into that, thought I'd lost it when I upgraded to Mavericks and the stack wouldn't run [15:31:33] pi-: you probably need to run the update script (if you haven't) to upgrade your database to the latest version [15:32:23] database --> the schema in the database where MediaWiki is stored [15:33:03] I had to revert back to the previous OSX, dump the SQL, go back to Yosemite, import it into the new one [15:34:03] Vulpix: I'm guessing I probably have a current MySQL, as I've just downloaded the latest stack [15:35:17] pi-: it's not about upgrading mysql, but applying schema changes that could have been done between your old version and the current one, because you could get some errors about new database fields missing [15:35:21] !update [15:35:21] update.php is a script that updates the database tables. You usually need to run it after upgrading MediaWiki or installing certain extensions. For details, see [15:35:29] pi-: ^ [15:36:11] mmk I will look into it, thanks [15:51:25] I though WMF staff had sysop rights on mediawiki.org, but it seems they don't (or at least by default) https://www.mediawiki.org/wiki/Thread:Project:Support_desk/Mediawiki_and_SMTP_server [18:19:44] poxip: yes? [18:29:33] I need some help with mediawiki [18:29:44] How do I define a namespace alias [18:30:28] I have installed wikibase - and I'd like to refer to items via [[d:name]] links [18:30:39] any idea how to configure this ? [19:49:00] I have a rather unusual issue. I've just upgraded a fairly old mediawiki installation to the latest stable. The upgrade went well and I can browse the wiki without any issues. But for some reason, when I edit a page and click 'save page', I receive no response from the server. The 'show changes' option works, which I assume must work in a similar fashion to saving. I've even looked at the reques/resonse in wireshark and there is no [19:49:38] In addition, nothing is getting written to the apache logs when I try to save changes. It's like the request just disappears. But like I said it works fine for showing changes. [19:52:12] Oh yes, but it does save the changes I make. That's the bizarre part. [19:55:26] Karlson: no response from server? do yo mean a blank page? See: [19:55:29] !blank [19:55:29] A blank page or HTTP 500 error usually indicates a fatal PHP error. For information on debugging (including viewing errors), see . [20:00:09] Vulpix: Yes, that's right. However, my Localsettings has the correct error reporting/display errors settings. This is set up on a development server, which is configured to show errors. The request should still appear in the apache log file though? [20:01:24] I'll set up a debug log file and see what I get. [20:01:41] the apache error log should display any error, yes [20:02:24] it may be a segfault, which won't display any error on the browser, but should be logged in the error_log [20:02:34] I've never seen a request missed from the apache log, which is what I find the most baffling. It makes me think I'm missing something obvious. [20:03:34] Aaah, here we go. In the default apache log (not the one I have set up for the virtualhost), I get: zend_mm_heap corrupted [20:08:31] that one is hard to track. There are some things to try ( https://www.mediawiki.org/wiki/Thread:Project:Support_desk/Problems_after_upgrading_to_1.22 ) but overall it seems to be a php problem [20:12:43] Yes, it looks like a get a segmentation fault on the first attempt, then zend_mm_heap corrupted after that. [20:15:47] Hmm, well I was running PHP 5.3. I just switched to 5.4 and the issue has gone away. Very strange. I was looking to upgrade to 5.6 soon anyway once I've fixed up a legacy application. Thanks for your help Vulpix. [20:16:15] yw, good to know that upgrading PHP helped [20:23:18] Hi everyone! I'm currently writing an Extension and need some help. I try to retrieve the revisionId of the current page in a parser extension. I use $parser->getRevisionId(). This usually works well. But on the page load directly following an edit the revisionId is null. Is there any other way to retrieve the ID in that case? [20:24:42] mohij: See how {{REVISIONID}} is implemented in core [20:24:50] with the vary-revision flag [20:25:17] can you point me to the respective file? [20:26:21] includes/parser/Parser.php at about line 3012 [20:27:16] But basically, if you do $parser->getOutput()->setFlag( 'vary-revision' ); then the page will get parsed twice, and the second time $parser->getRevisionId() will return the right thing [20:28:42] @bawolff: Thanks! [20:33:50] @bawolff: I just tried it and it works. Just as you said, the page seems to be parsed twice, so I still need to check for null rev but the page looks fine. Thanks again! [20:35:15] mohij: yeah, there's a bit of a catch-22 that in order for a page to have a revision id it needs to be in the database, but in order to put it in the database, it needs to first be parsed [20:35:59] (I guess "needs" is a bit strong. Needs to due to the way the code is currently structured) [21:07:36] Hi, I'm looking at this howto https://www.mediawiki.org/wiki/Manual:Running_MediaWiki_on_GNU/Linux and wondering is there a way to get all the images from wikipedia to store locally in some sible way (like downloading a dump) [21:10:22] marchelly: Unless you have serious storage capacity, you probably don't want to do that [21:10:58] I don't think we have image dumps anymore (?) [21:11:15] marchelly: you probably want to put "$wgUseInstantCommons = true;" in your LocalSettings.php [21:11:20] bawolff, what volume size we are talking about? [21:11:32] my guess is several TB [21:11:37] but if you use the line i gave you, it [21:11:44] it'll pull images on-demand [21:12:31] okay, got you, let me check this, it sounds like good space saving workaround [21:12:40] https://www.mediawiki.org/wiki/InstantCommons talks about it [21:15:23] For curiosity sake, for just the current version of files on commons (no thumbnails, no historic versions) I believe its around 50 terabytes [21:21:31] Hi, I am trying to install mediawiki 1.24 on vagrant and everytime I open the localhost, it says LocalSettings.php not found. [21:22:22] Can someone tell me in what folder should I put the file LocalSettings.php [21:22:24] ? [21:23:15] ankita-ks: http://www.mediawiki.org/wiki/Manual:LocalSettings.php [21:24:43] if it doesn't exist, something isn't right [21:25:16] though i'm not familiar with vagrant [21:28:24] I did read this wiki. And I put the LocalSettings.php in the folder /var/www/mediawiki-1.24.1 [21:29:49] So I can reach the index page. [21:29:54] ankita-ks: if you're using vagrant, mediawiki is already installed [21:29:59] when I don’t have LocalSettings.php [21:30:27] So does it start with the latest version? [21:31:01] yes [21:31:05] and it's already configured and ready to use [21:31:31] ah..okay. With that knowledge let me proceed and see if I hit other bumps. thanks! :) [23:17:48] hi, is there a way to do calculations on wiki ? [23:19:02] What calculations? [23:19:10] MichaelHabib: #expr [23:19:10] like basic number calculations [23:19:26] [[Meta:Help:Calculations]] iirc [23:19:28] would be better if it was in a Spreadsheet format [23:19:28] see https://www.mediawiki.org/wiki/Extension:ParserFunctions and https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#.23expr [23:19:30] @link [23:19:31] https://www.mediawiki.org/wiki/Meta:Help:Calculations [23:20:02] ty [23:20:18] @link [[Meta:Help:Calculation]] [23:20:18] https://www.mediawiki.org/wiki/Meta:Help:Calculation [23:20:21] No s