[00:20:58] hi mediawiki [00:21:08] x-posting from wikimedia-dev: when i watch my mysql processlist, i see that there are 3 connections opened each time i load a mediawiki page. 1 connection seems to be doing the heavy lifting, the other two are Sleeping. does that sound right and/or does anyone have an idea why 3 connections are open? [00:24:13] jackmcbarn: Curioser and curioser said alice - https://en.wikisource.org/wiki/The_origin_and_deeds_of_the_Goths_in_English_version [00:24:23] Here the /s template isn't matched with an /e [00:24:33] and it's picking up newlines just fine ;) [00:24:56] hmm. maybe one open for DB_MASTER and one for DB_SLAVE, but why the third? [00:25:17] I wonder if somewhere there's a

tag being generated (or not being generated) when there should or should not be inside the Proofread pge thing.... [00:36:27] i'm not sure i'm totally following, but it definitely looks like i'm getting one connection opened for DB_MASTER and another for DB_SLAVE even though both are the same server, same index in mConns... [00:38:36] Possibly [00:38:55] We use one for just reading, and one for writing and some race condition reading [00:39:10] so we can then do reading and writing at the same time too [00:39:44] The third one is DB_TROLL_THE_SYSADMIN [00:48:02] Qcoder00: that's because tidy is "fixing" the nesting somehow, but it's probably breaking something else somewhere [00:48:23] I appreciate G03 comments... [00:48:45] but the sandbox example was more minimal than the real world example I'd linked... [00:54:54] The div based approach here - worked - https://en.wikisource.org/wiki/Wikisource:Sandbox [00:55:05] since i onl;y have one server it looks like DB_MASTER and DB_SLAVE return the same connection, [00:55:11] The parser picking up the newline :) [00:55:18] the second one seems to be coming from our external authentication extension [00:55:21] So this appears to be a Page:namespace specfic issue [00:55:25] still not sure where the third one is coming from... [00:56:52] Hmm using nested div's worked [00:57:00] nested div and a P didn't [00:58:02] jackmcbarn: second example... [00:58:14] That doesn't render... [00:58:53] because it's seeing the whole thing as one P and is ignoring the fact it needs to insert a paragraph break in the middle before it cleans up [01:05:58] https://en.wikisource.org/wiki/Wikisource:Sandbox [01:06:07] Attempted the approaches suggested... [01:06:18] The render comparisons don't like good... [01:07:33] div's should nest, it doesn't make sense for P's to... [01:08:19] hmm, maybe the second one is because BagOStuff keeps a separate connection? [01:21:50] Hmm doing it as tree nest didn't solve the issue either.... [01:22:02] https://en.wikisource.org/wiki/Template:Sn-paragraph/dual/s/sandbox [01:22:21] I remain to be convinced this isn't a glitch [03:04:22] Good evening, I'm having some trouble installing mediawiki. Is anyone there? [03:05:57] !ask [03:05:58] 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. :) [03:06:01] nhhsm: ^ :) [03:08:00] I'm currently intalling v1.19 on godaddy, with php 5.2 (can't use 5.3) and while runing wp-config/index.php, the following error pops up: Fatal error: Class 'RequestContext' not found in /w/includes/Setup.php on line 479. Line 479 of Setup.php is "$wgUser = RequestContext::getMain()->getUser(); # BackCompat" [03:08:26] do you mean mw-config? [03:08:58] I do, muscle memory I guess haha [03:09:06] mw-config [03:09:37] ok, well that means somehow the autoloader isn't being enabled [03:10:05] that's enable with apache configuration, isn't it? [03:10:12] *enabled [03:10:16] is there a file at includes/AutoLoader.php ? [03:10:22] it should be controlled all in PHP [03:10:32] let me chckc [03:10:36] *check [03:11:10] there is an AutoLoader.php file, indeed [03:13:47] have you tried restarting apache? it could be a bad apc cache? [03:14:03] can't do that, its a shared account [03:14:09] I'm not really sure past that, 1.19 is before I started doing MW stuff so I'm not very familiar with it [03:14:09] :/ [03:14:09] I don't have access to apache configuration [03:15:43] you might try asking at https://www.mediawiki.org/wiki/Project:Support_desk ? or someone else lurking here might have an idea :) [03:39:09] does anyone know how i'm supposed to use Tidy on mediawiki-vagrant? [03:41:32] hhvm doesn't support it yet, but https://www.mediawiki.org/wiki/HHVM/status#2014-11-monthly says TimStarling: did some work to make the extension compatible with HHVM [03:41:48] blergh [03:42:12] ]\ [03:42:22] I compiled imported it with EZC and then took bits out with #ifdef HHVM until it started working [03:42:35] which turned out to be almost everything [03:42:40] I'm just trying to do some import of HTML content outside of MW, so I could just shell exec it [03:43:19] then get results into an edit form and submit through mw api to create articles [03:44:05] well, if you just want to clean up some HTML, you could use our extension I guess [03:44:50] I'm writing an extension with a special page to import HTML content into wiki [03:45:52] extension? [03:45:55] if performance is not absolutely critical it's probably better to use shell_exec [03:46:05] https://git.wikimedia.org/summary/mediawiki%2Fphp%2Ftidy [03:46:52] performance is not important.... i have to import hundreds of documents, but the load is not time sensitive and it's not a "public" heavily loaded site. [03:47:24] The extension will be posted to git so I hope it continues to improve past the 0.1 release :-) [03:47:37] the reason we wrote that extension is because when you have a large number of threads running concurrently, forking starts to chew up the milliseconds [03:48:08] if you don't care about milliseconds and don't have a large number of heavily utilised cores, you could just shell out [03:48:37] OK, that' what I'll do. Thanks Tim [05:35:55] while running vagrant up i m getting these errors http://imgur.com/zUI4Vvy what could be the possible reason ? [05:40:42] Abhi_: seems like a transient network error while attempting to fetch some packages [05:40:49] try running 'vagrant provision' again [05:59:35] ori: How do i fix it ? [06:06:17] Abhi_: 11:10 ori: try running 'vagrant provision' again [06:11:49] ori: How do i fix that ? [06:16:09] Abhi_: Did you run 'vagrant provision' again? [06:17:05] yes Niharika [06:17:22] Abhi_: Did you get the same error again? [06:17:42] yes Niharika [06:18:47] Abhi_: There seems to be network error at your end. Run it once more, maybe. [06:18:51] http://imgur.com/PoSzJEZ [06:20:07] Abhi_: Failed dependencies. Are you on Ubuntu? [06:20:28] yeah ubuntu 14.04 [06:20:46] i m not getting why this wired error. packages are updated too [06:21:01] Then you could try the command it asks you to: apt-get --fix-missing [06:23:36] already tried 0 upgraded, 0 newly installed, 0 to remove and 283 not upgraded. [06:23:41] Niharika: [06:25:00] seems some wiered issues, i will google individual issues and fix it. [06:25:04] Abhi_: What does "vagrant up" say? [06:25:32] Niharika: Bringing machine 'default' up with 'virtualbox' provider... [default] VirtualBox VM is already running. [06:25:54] Niharika: above is the output of vagrant up [06:26:23] Okay, then maybe stopping it and restarting could work (jugaad). Do "vagrant halt" and then "vagrant up" [06:29:33] Niharika: i tried jugaad wala but http://imgur.com/vXamXew got this :p [06:30:59] Abhi_: You still need to do "vagrant provision" :P [06:33:29] yeah i did vagrant provision and sent u the imgs too. http://imgur.com/HxWzN7j this one is the bottom down output of vagrant provision [06:33:33] Niharika: [06:35:01] Niharika: this one is other http://imgur.com/jhYGXQH [06:35:32] Abhi_: Yeah I meant, try it once more now. And if it still gives you the same thing we could try force provisioning. [07:24:53] what does this error mean ? Failed to call refresh: Could not find init script or upstart conf file for 'apache2' [10:48:29] hey folks! [10:49:52] I've got a mediawiki that I wish to embed in an iframe. The main site is dashboard.example.com (where the iframe is used) and the wiki is on wiki.example.com. I've set $wgEditPageFrameOptions to 'SAMEDOMAIN' and yet it doesn't work. It works when this option is set to false. Any ideas? [10:50:15] I would expect 'SAMEDOMAIN' to work, given that they are on the same domain, no? [10:50:35] SAMEORIGIN even [10:58:41] It would be really nice to see "ALLOW-FROM uri" X-Frame-Options header implemented too, this would be super useful! [12:45:24] i m not able to set mediawiki vagrant on my ubuntu 14.04 . i mean not able to get this weird problem http://imgur.com/yWohm04 [12:46:38] i followed steps given here https://www.mediawiki.org/wiki/MediaWiki-Vagrant and while running vagrant up [12:47:14] i m getting " VirtualBox VM is already running. " [12:47:52] but openning 127.0.0.1:8080 says webpage not available. somthing wrong with installation [13:01:43] hello. any one help with this template:quote import error http://paste.debian.net/140615/ [13:03:34] Hi Abhi_. Wait around a couple of hours, that's when most people come online who can help you better. [13:04:25] Niharika|away: like indian time around 10 ? [13:05:36] Abhi_: Yep. [13:06:02] Abhi_: When you address someone on IRC, type a few characters of their name and hit Tab. It autocompletes. [13:06:47] Niharika: Sure. Thanks ! [14:04:07] Hi there, I am interested in applying for OPW this year and want to start contributing. [14:04:44] I have gone through the possible project page. [14:06:06] I am interested in the Wikipedia Education Program tools project [14:06:33] Can someone please guide me through the process? [14:34:51] urvashi: I saw Nemo replied to you on wikimedia-dev. If you still have any questions, feel free to ask. :) [14:37:18] Thanks a lot. :) [15:34:56] heyho :) [15:35:11] hi [15:35:33] i have a quick question: is it possible to export the redirects from one wiki to another one? i already moved all categories and articles [15:37:01] background: the admin of our old wiki cant be reached anymore and he was the only person who was able to accept new members - so we had to create a new wiki and export/import all the articles [15:37:20] everything works fine - but the redirects are missing [15:37:35] and i dont want to create 4000 redirects manually [15:41:00] chaos_weg: redirects are just pages, so you should be able to use special:export for that [15:41:35] i tried - they dont appear in the list [15:42:39] chaos_weg: in what list? [15:42:54] in the export list [15:44:20] which you created how? [15:44:20] I've got a mediawiki that I wish to embed in an iframe. The main site is dashboard.example.com (where the iframe is used) and the wiki is on wiki.example.com. I've set $wgEditPageFrameOptions to 'SAMEORIGIN' and yet it doesn't work. It works when this option is set to false. Any ideas? [15:44:21] on special:export [15:44:21] (its a german wiki) http://wiki.flassig.net/index.php?title=Spezial:Exportieren&action=submit [15:44:21] chaos_weg: so add the redirects to the list of pages you're exporting....? [15:44:21] for example one of the redirects is Quarz-Axt (Plan) →‎ Magische Baupläne [15:44:57] chaos_weg: if you fill in Quarz-Axt (Plan) there, you'll get a result with Quarz-Axt (Plan)(...)#REDIRECT [[Magische Baupläne]] [15:45:36] ohhh you are right! [15:45:49] thank you very much :) [16:14:06] Evan_M_: problems with the XSS task? [16:15:39] hi there, i am trying to configure mediawikis login to use a CAS server. I followed this http://www.mediawiki.org/wiki/Extension:CASAuthentication documentation, but it it throws a 'Unexpected non-MediaWiki exception encountered, of type "CAS_AuthenticationException"' message. Maybe some of you has some hints or advice, how to set it up? [16:40:39] this is a bug i m getting while running vagrant up https://phabricator.wikimedia.org/T72705 can somebody deal with it ? very weird problem. [16:43:46] Weird. [17:11:25] https://phabricator.wikimedia.org/T86767 - not going to let this go [17:11:47] The nested divs glitch was closed as invalid as the problem wasn't adequately defined it seems [17:37:44] Hi pratikbsp , thanks for your interest in MediaWiki [17:38:03] You are the second person today already asking about GSoC, what's going on? :) Who told you [17:39:06] 1) To follow updates (when there are some), register/login on mediawiki.org and click the star at https://www.mediawiki.org/wiki/Google_Summer_of_Code_2015 [17:39:19] 2) All the instructions you need are at https://www.mediawiki.org/wiki/How_to_become_a_MediaWiki_hacker#Get_started [17:40:46] Nemo_bis i came to know about it through my friend [17:40:59] thanx for the help [17:41:43] 3) We have some ideas for projects at https://www.mediawiki.org/wiki/Outreach_programs/Possible_projects , but a) it's early so the list is still small and rough, b) the list is only useful when you got some idea of MediaWiki [17:42:31] 4) Therefore, as each of the 3 pages linked above say or will say, as first thing try to fix a bug marked "easy" https://www.mediawiki.org/wiki/Annoying_little_bugs [17:43:05] ohh, thanx [17:44:15] Nemo_bis: See the bug I listed [17:44:26] Someone could fix proofread pages as summer project [17:44:28] ;) [17:53:00] probably a stupid question, but why would Ajax not work on my wiki? I have $wgUseAjax = true; set [17:53:49] Abhi_: See https://phabricator.wikimedia.org/T86787 for what I think may be the problem with your MediaWiki-Vagrant install [17:54:28] Abhi_: If you are not on a network that needs to use an HTTP proxy then there is some other very strange networking problem effecting your VM [17:56:43] bd808: yeah u r correct. my network doesnt allow urls working on proxies. [17:57:01] i will explore it now and check it [17:57:53] bd808: Kabhi2104 is me only there. [17:58:11] Abhi_: I hoped so :) [17:58:36] We should add an FAQ on how to deal with being on a school network that requires a proxy [17:58:50] I'm sure I've helped others with this same problem [18:01:43] yeah we should add , its a common problem. I will prepare one. [18:18:45] HI alll [18:18:56] hi.. [18:19:19] Any chance of the the bug I filed earlier being looked at? [18:22:57] . [18:24:56] hello!!! [18:26:31] can anyone suggest how to prepare for gsoc ,such as sample projects?? [18:30:16] can anyone suggest how to prepare for gsoc ,such as sample projects?? [18:32:07] aalekhn:hello sir. [18:35:24] Nemo_bis:can you suggest how to prepare for gsoc [18:36:01] mario_: where are you from? [18:36:40] i am from India [18:36:59] bd808: can u check once https://phabricator.wikimedia.org/T86787#976693 [18:37:22] 18.39 < Nemo_bis> 1) To follow updates (when there are some), register/login on mediawiki.org and click the star at https://www.mediawiki.org/wiki/Google_Summer_of_Code_2015 2) All the instructions you need are at https://www.mediawiki.org/wiki/How_to_become_a_MediaWiki_hacker#Get_started [18:37:27] 3) We have some ideas for projects at https://www.mediawiki.org/wiki/Outreach_programs/Possible_projects , but a) it's early so the list is still small and rough, b) the list is only useful when you got some idea of MediaWiki 4) Therefore, as each of the 3 pages linked above say or will say, as first thing try to fix a bug marked "easy" https://www.mediawiki.org/wiki/Annoying_little_bugs [18:38:12] Abhi_: Try running "vagrant provision" instead of "vagrant up" [18:38:39] Nemo_bis: thanx [18:47:44] !gsoc2015 [18:47:57] Can someone set it to: [18:47:58] 1) To follow updates, login on mediawiki.org and click the star at https://www.mediawiki.org/wiki/GSoC2015 2) All the instructions you need now are at https://www.mediawiki.org/wiki/Hack 3) We have some ideas at https://www.mediawiki.org/wiki/OPPP , but the list a) is not complete, b) is only useful when you got some idea of MediaWiki 4) So, as first thing try to fix an easy bug https://www.mediawiki.org/wiki/Easy [18:50:11] bd808: still getting few errors and warnings. Uploaded the provision.log [18:50:40] Abhi_: *nod* I was just replying on the bug [18:51:01] <^d> !gsoc2015 is 1) To follow updates, login on mediawiki.org and click the star at https://www.mediawiki.org/wiki/GSoC2015 2) All the instructions you need now are at https://www.mediawiki.org/wiki/Hack 3) We have some ideas at https://www.mediawiki.org/wiki/OPPP , but the list a) is not complete, b) is only useful when you got some idea of MediaWiki 4) So, as first thing try to fix an easy bug https://www.mediawiki.org/wiki/Easy [18:51:02] Key was added [18:56:26] Abhi_: https://phabricator.wikimedia.org/T86787#976733 [18:56:57] I wanted to put all that in the bug instead of just irc so someone else might find it later [19:03:06] bd808: yeah i m going through your instructions . [20:29:02] anyone using MsCatSelect? Just wondering if the this bug exists on all versions of MW: https://phabricator.wikimedia.org/T76462 [21:08:00] hello @all [21:08:11] is there anybody who uses smw and fullcalender? [21:12:47] echizenryouma: likely there is somebody out there who uses that. But if you some question related to using that, you might want to ask that question instead and wait for an answer here. :) [21:13:38] yeah honestly I have no idea how to integrate the fullcalender.js file into mediawiki [21:13:46] I guess this is the actual problem [21:13:59] andre__: ^ [21:14:17] https://www.mediawiki.org/wiki/Manual:Interface/JavaScript ? [21:17:41] Vulpix: I'm not sure whether I understood. What I have is a directory, similar to a normal .php extension, where I have a .js file instead. What I have to do? [21:18:13] does it have installation instructions? [21:20:30] no unfortunatly not [21:21:08] it's this one:http://fullcalendar.io [21:24:46] apparently it has http://fullcalendar.io/docs/usage/ [21:25:51] jquery is already part of MediaWiki, so you won't need to include it [21:27:25] one easy option is to simply paste the contents of lib/moment.min.js and fullcalendar/fullcalendar.js into MediaWiki:Common.js, and the contents of fullcalendar/fullcalendar.css into MediaWiki:Common.js [21:27:33] ok thanks I found this as well and try again. [21:28:13] Or probably I coudl also just source it somehow right? [21:28:16] and you'll probably need to also add the snippet of code that says $(document).ready(function() { // page is now ready, initialize the calendar... [21:30:00] you can source it from JavaScript. There's no easy way to do it from MediaWiki itself. Well, either option require you to know JavaScript, or MediaWiki internals (ResourceLoader) [21:37:24] Okay I will check it out! Thanks anyway! [22:05:23] Vulpix: one more question: So a calendar is now visible but just in preview, when I click save it's not there anymore? Is there some option I have to configure in MediaWiki? [22:08:46] if it works in preview, it should work when you save too [22:08:58] is your wiki public so youcan post a link? [22:09:03] Yeah I set $wgECMaxCacheTime to 0, now it works [22:09:16] No unfortunately not, but the cache was the problem. [23:01:24] Good afternoon, I'm trying to install v1.19 on godaddy using php 5.2 (the newest I can use at the time) and upon runing mw-config/index.php the following error apears: Fatal error: Class 'RequestContext' not found in (I deleted the rest that goes here)/w/includes/Setup.php on line 479. Line 479 of setup.exe contains: "$wgUser = RequestContext::getMain()->getUser(); # BackCompat". Any idea of what could this be? [23:04:34] niako, broken package or some files failed to upload [23:04:57] should I re upload everything again? [23:05:09] how does godaddy even install these things? [23:05:18] I don't think the package is broken, I dl it fresh from mediawiki two days ago [23:05:50] don't know, their installer only works on php 5.3, so I can't use it [23:06:13] haha [23:06:35] can't upgrade to 5.3 cause other products installed in the server would stop running [23:06:36] Is there a wgGlobal that returns if the current user is blocked? It would be nice to be able to disable some of my JavaScripts they can't use while blocked. [23:07:36] T13|sleeps, why reduce the punishment? they should feel frustration! [23:08:16] because it gives them a plausible excuse for deleting content from their userpage. [23:09:01] I have an archiving script that adds content to an Archive subpage and deletes from the talk page. If they are blocked, they can't write to the subpage but it will still delete from the talk page. [23:09:22] I had to do an ugly hack for now, and I'm wondering if there exists a wgGlobal to make it easier... [23:09:24] new mw.Api().get( { action: 'query', rawcontinue: '', meta: 'userinfo', uiprop: 'blockinfo' } ).done( function( blockInfo ) { if ( blockInfo.query.userinfo.blockid !== undefined ) { blocked = true; } } ); [23:09:34] niako, is it really 1.19? https://github.com/wikimedia/mediawiki/blob/REL1_19/includes/installer/Installer.php says it requires 5.2.3 [23:10:13] 1.19.23 didn't require 5.2.3? [23:10:34] also, we're going to drop even 5.3 support in a matter of weeks [23:10:52] const MINIMUM_PHP_VERSION = '5.2.3'; [23:11:00] // This is the absolute minimum PHP version we can support const MINIMUM_PHP_VERSION = '5.2.3'; [23:11:28] " don't know, their installer only works on php 5.3, so I can't use it" [23:11:44] oh - are you referring to godaddy? [23:12:12] no, that line I paste it's from the code on installer.php [23:44:13] I've looked in about every crevice I could find for Object.getOwnPropertyNames( mw ); and found a lot of interesting stuff, but not if the viewing user is blocked. :\ [23:44:17] !newbug [23:44:17] https://phabricator.wikimedia.org/maniphest/task/create/