[00:29:05] is there a way to set up my wiki so that new users can create pages in any namespace but mainspace? Mainspace is the main place where they like to put their spam. Thanks. [04:54:02] Trying to move images from a wiki to commons but for a few minutes commonshelper remains on Transfer in progress... and doesn't want to load.. [05:54:41] Good morning, I run a MediaWiki on a QNAP-NAS. Until the last firmware update, everything was fine but now I only see blank pages. The infos are still there, when I use edit I can see them but it is not shown any longer on the normal page. Any idea where the problem could be? [06:02:08] !blankpage | Stefan__ [06:02:08] Stefan__: A blank page or HTTP 500 error usually indicates a fatal PHP error. For information on debugging (including viewing errors), see . [06:04:55] thx i will check it [08:54:57] Hi, I am trying to add multiple FooterIcons to my wiki using the explanation here: https://www.mediawiki.org/wiki/Manual:$wgFooterIcons [08:54:58] But the example given is only for one icon. [08:55:00] I understand that I can declare multiple icons by using an array. [08:55:01] But I'm not sure how to declare more than one to make it work. [08:55:03] I'm sure it's probably pretty straight-fwd for someone who understands these things though. :/ [08:56:02] Can someone please help me with this? [08:56:16] BradLee_: copy the code under "Site customization", but make sure you change the text 'myicon' to something unique for each one [08:56:58] $wgFooterIcons['poweredby']['myicon1'] = array( [08:57:01] $wgFooterIcons['poweredby']['myicon2'] = array( [08:57:02] etc. [08:59:52] Oh. [08:59:53] I've been using with $wgFooterIcons['poweredby']['myicon1'] = array( [08:59:55] and then trying to declare them all after that. [08:59:56] I didn't realise that I need a separate ['myicon'] for each one. [08:59:58] I guess that would be why it wasn't working :/ [09:04:15] Ok, that's working now. [09:04:17] @legoktm: thanks :) [16:14:28] hello everyone... i started using mediawiki [16:14:36] and i'm confused about how to create new articles... [16:14:46] can somebody explain me how do i create a new article ? [16:15:03] and for example how can i insert an image caption taken from a link ? [16:19:48] There are several ways: Create a link to the page, and then follow that link, you'll start creating that article [16:22:00] nebg: personally i just type the URL into my browser [16:22:38] nebg: https://en.wikipedia.org/wiki/NewPageYouWantToCreate [16:22:58] mutante do you have some good tutorial on media wiki [16:22:59] and then hit the "Create" tab [16:23:12] and can you suggest some free web hosting service who supports media wiki ? [16:23:54] nebg: https://www.mediawiki.org/wiki/Help:Contents [16:24:07] nebg, https://www.mediawiki.org/wiki/Hosting_services [16:24:43] nebg: do you want to install the mediawiki yourself and have shell access, or do you just want a mediawiki for yourself [16:25:05] https://meta.miraheze.org/wiki/Miraheze [17:07:36] hello why i saw that on many mediawiki sites the structure of the URLs is www.something.xyz/media/Article_Name while on my media wiki i have www.something.xyz/media/index.php/Article_Name [17:07:40] can i correct this thing ? [17:09:09] !shorturl | nebg [17:09:09] nebg: To create simple URLs (such as the /wiki/PAGENAME style URLs on Wikimedia sites), follow the instructions at or try the new beta tool at . There are instructions for most different webserver setups. If you have problems getting the rewrite rules to work, see !rewriteproblem [18:01:28] is there a way to change the content model of a page, from wikitext to JS (suppose someone create [[MediaWiki:foo]] and moves it to [[MediaWiki:foo.js]]) [18:33:06] Did anybody have 'Call to undefined function wfShorthandToInteger()' in Setup.php after patching to 1.24.4? [18:49:37] Well, for the log, I added require_once "$IP/includes/GlobalFunctions.php"; to Webstart.php line 121. [18:50:40] vloxm: Now would be a good time to try and get that resolved... [18:50:58] There's a security release due out very soon... [18:50:59] Could you file a task in phabricator? [18:51:25] MediaWiki.org blocked my IP address as a spambot. I'm not and now I can't create an account. What should I do? [18:51:37] Reedy, you mean the security release we just pushed? [18:51:43] MaxSem: Oh, it's out already? [18:51:45] lol [18:53:18] jim___: 74.125.59.6 doesn't seem blocked. what error message are you getting? [18:55:34] Account creation from this IP address (2620:0:1009:3:4563:21A:2D19:54F) has been blocked by Abuse filter. [18:55:57] heh [18:55:59] ipv6 ftw [18:56:28] 18:41, 16 October 2015 Abuse filter (Talk | contribs | block) blocked 2620:0:1009:3:4563:21a:2d19:54f (Talk) with an expiry time of 3 months (account creation disabled) (Automatically blocked by abuse filter. Description of matched rule: Temporary mass spambot attack_wikitext) (unblock | change block) [18:58:44] jim___: So, those rules were specifically added today [18:59:17] The fact you're using that IP (even more so, that it's ipv6), suggests your machine is the source [18:59:35] or, a source [18:59:58] Oh [19:00:13] Reedy: So, it thinks my machine has a spambot on it? [19:00:17] Unlikely [19:01:56] I'm not sure why it triggered that rule [19:02:28] I was editing a link in a tutorial at the time [19:02:43] Yeah, I saw [19:02:56] I couldn't work out why that rule matched that [19:03:04] jim___: I've unblocked your IP. Please do register :) [19:03:12] Reedy: Thanks! [19:04:04] jim___: just be aware, that edit may upset the spam filter again till you're not considered "new" [19:04:24] hi [19:04:53] Reedy: Okay, thanks. Not encouraging. ;-) [19:05:13] Turns out I was registered, but I can sign in now [19:08:59] updates LTS to 1.23.10->.11 and got an error: Fatal error: Call to undefined function wfShorthandToInteger() [19:09:07] includes/Setup.php on line 303 [19:09:30] Mikeonline: Also reported on mediawiki-l. [19:09:37] -l? [19:09:42] The mailing list. [19:09:46] so its known? [19:10:07] 1.23.x and 1.24.x lacked another backport, even though the security patch backported just fine. Fixing in git now, will reissue tars. [19:10:33] ok fine so it will be fixed in some minutes [19:11:27] I dunno about minutes, but shortly yes. [19:11:29] :) [19:11:31] ;-) [19:11:44] Reedy: Yep, blocked again. Sheesh. Someone needs to fix that rule. [19:16:33] ah ostriches is chad :D [19:19:38] jim___: what did you try to edit with? [19:19:49] or rather, what did you try to add to a page [19:27:41] p858snake|l: a wikilink. But he's been blocked by an AF rule added for some spam today [19:28:03] uh, external link [19:51:27] hi [19:51:51] I was trying to patch some of my public wikis and have run into a problem [19:52:44] https://dpaste.de/gGwO [19:53:05] 1.25.2 -> 1.25.3 [20:05:36] ostriches: git commit installed and works. also another one commited a new patch [20:06:02] Another one? [20:06:53] by dap? [20:06:56] https://github.com/wikimedia/mediawiki/commits/REL1_23 [20:07:31] That was part of the security release. [20:07:47] The original patch file worked and didn't have to be rewritten in backporting. [20:08:15] i checked out the commit list minutes ago an have seen one commit from oct, 16 [20:08:18] now there are 3 [20:08:26] Yeah, there should be 3. [20:08:35] 3 for rel1_23, 4 for 1_24 and 25. [20:08:47] +1 more for each once I land release notes in a sec, finishing redoing the tars. [20:09:14] but all 3 are in the 1_23 tag [20:09:29] ah yes [20:09:31] you wrote.. [20:10:07] i copied the files from the commits to the wiki. now version is still .10 [20:14:16] The last one is https://gerrit.wikimedia.org/r/#/c/246882/ [20:14:20] In the process of landing [20:14:47] there is some older song going around in my mind who goes like this: "today is the day... " sound like dion the wanderer song from its making of [20:20:48] ok defsettings is uploaed [20:20:52] now it seems to be fine [20:22:24] "API failed to correctly stop adding new chunks to the upload when the reported size was exceeded (T91203)" Hahahah... Whoops. I am actually relying on that for intended functionality in an extension. [20:30:20] New tars are up, tags all pushed too [20:42:46] Good afternoon. I've tried upgrading to 1.23.11, and I get a blank page when trying to load any page. Rolling back to 1.23.10 worked fine. My apache2 access.log and error.log files don't indicate anything is wrong. I've read the release notes, and don't see any relevant upgrade/installation instructions. Any insight would be greatly appreciated. [20:43:32] CMODwiki: I *just* refreshed the tars, there was a fatal error from a missed backport. [20:44:05] So, download the tar file again and repeat the upgrade process? [20:44:29] You should just be able to drop the new files into place, no db upgrade needed between what you downloaded and what I just uploaded. [20:45:08] Okay, should I wait for the tar files to be distributed through your infrastructure, or is it already complete? [20:45:36] (I don't know if you're using something like Akamai or similar.) [20:45:56] They're up :) [20:46:03] Thx. [20:46:12] It's just a simple apache server sitting behind a shared varnish :) [20:47:46] Now to just spend the next hour back porting custom fixes. :O Seems straight forward of a patch. [20:51:30] Trela: sounds like you're doing it wrong :( [20:52:09] Reedy: Gerrit pull/patch requests never get accepted so we gave up a long ago submitting them. [20:52:21] *up long [20:52:59] Reedy: Did you guys ever figure out why my minimal change to an example link triggered Abuse blockage? [20:53:29] *Correction: Actually, one of them did. I have to back port that particular fix to 1.23 since it is 1.25+. [20:54:29] Wikia? [20:55:02] Gamepedia [20:58:05] jim___: Nope... I'm not familiar enough with the abusefilter rules... Based on the spam we were getting this morning, the false positives are probably worth it [21:04:49] Trela, what kind of patches? [21:05:29] Reedy: Any chance that my IP address is in a blocked range? [21:05:43] Or are we certain it's that particular edit that's the problem? [21:07:08] MaxSem: Patches for issues with base functionality that mainly get discovered when using hooks. Unfortunately I am not sure which personal email address my previous team members used for their submissions so I only know the one remaining one I have. [21:22:54] Thanks. My wiki is back up. [21:23:15] Just doing some server maintenance, then done until the next patch. :) [22:07:22] Regression with the latest patch: "Error creating thumbnail: /usr/bin/gm convert: Unable to open file (:URI) [No such file or directory]." [22:07:44] ostriches, ^^ [22:08:12] Trela, what's yout imagemagick version? [22:08:43] GraphicsMagick 1.3.12 2010-03-08 Q8 http://www.GraphicsMagick.org/ [22:08:50] Drop in replacement for ImageMagick. [22:09:47] Looking through their release notes to see if it is a GM issue. [22:11:56] Is it https://phabricator.wikimedia.org/T108616 ? [22:12:05] 164 +» » » // T108616: Avoid exposure of local file path [22:12:05] 165 +» » » array( '+set', 'Thumb::URI'), [22:12:55] Guess gm isnt as drop in as they claim... [22:13:00] xD [22:13:09] 1.3.22 is out, which may or may not help [22:13:52] Reedy: Yeah, that is the correct bug. [22:14:25] Reedy: I am going to poke our SysOps and force the issue of upgrading GM. Until then I reverted that portion on our code base so that thumbnails work. [22:14:38] Least it's a trivial patch! [22:14:44] Yep! [22:15:04] And security wise it doesnt matter that much [22:15:30] heh [22:16:07] just path disclosure of a path that in most installs is known anyways [22:16:10] Our file paths are super dumb and generic so very super minor here. [22:22:09] I will toss a note on that ticket once we get GraphicsMagick updated and any code changes if needed. [22:22:11] are the fixes to the broken wfShorthandToInteger() backport going to be in a new version of 1.23 and 1.24, or will the patchfiles for 1.23.11 and 1.24.4 just be updated? [22:25:54] Reedy: bawolff: Apparently GM does not embed that metadata anyway so the patch is irrelevant to GM. [22:27:16] If it's a drop in replacement, it shouldn't barf at switches im uses [22:30:50] That is the next step of figuring out what is wrong with it. My assumption is that this is a newer feature that is not quite supported on the version we are running. [22:32:24] Its not a well documented feature [22:32:49] i had to read the source code to find the silly switch... [22:33:17] although i think its been there for a while [22:35:04] could I get some reviewers to look at https://gerrit.wikimedia.org/r/#/c/246246/ ?? [22:35:46] Some improvements have been made and I'd like to know of any blockers to merging. [22:39:08] The commit message could perhaps be slightly more verbose [22:40:01] could you add that as a comment or should i? [22:41:12] When I use a [[image:...]] link for an image, I see an image in the page. How do I create a similar link for an mp3 file, such that I see an audio player in the page? [22:41:23] I would hope the syntax is [[file:MyFile.mp3]] [22:41:32] I am using MW 1.18 [22:41:53] * bawolff is reading the rest of the patch [22:41:56] 'upgrade' is a valid answer, as is 'install extension X'. [22:42:15] HappyDog: upgrade. also, I don't think you can get an mp3 player w/o an extension. [22:42:26] However I don't really want any special syntax, e.g. MyFile.mp3 as per some examples. [22:42:31] * hexmode looks for an extension. [22:42:39] happyDog: you need an ext [22:42:53] TMH might be able to do it [22:42:55] Hi Bawolff. How's it going? [22:42:56] HappyDog: where do you see syntax? [22:43:08] But that ext is a bit finicky [22:43:16] @hexmode: https://www.mediawiki.org/wiki/Extension:Mp3 [22:43:43] you need an ext that implements a media handler [22:44:01] then the [[file:..]] works [22:44:07] its going well [22:44:08] @Baolff: There's nothing in the docs for TMH that says it supports mp3 (it just mentions OGG and WebM). [22:44:35] it has code for mp4 thats not well advertised [22:44:52] it might also work for mp3 im not sure [22:45:14] and the non ogg code doesnt get tested very much [22:45:25] I have a wiki where lots of mp3 files have been uploaded, and this is a feature request. Format conversion only feasible if done server-side without requiring re-uploading. [22:45:40] HappyDog: I think you could modify that extension to do what you want, but I'd have to look at it. And mp3 wouldn't work w/o flash. [22:46:08] mp3 wouldn't work (in that extension) w/o flash [22:46:43] Hexmode: i see code that sets pageprops, thats not going to work [22:47:24] Unless im missing something [22:47:31] Has no-one needed to this before? I find that surprising! [22:47:46] bawolff: could you add comments as to why? That is the whole purpose of the code. [22:47:51] which is real possibility when reviewing code on a phone [22:47:58] heh [22:48:01] oh, well.... [22:48:02] I will [22:49:16] I also had a similar patch that people didnt like [22:49:50] fwiw, she is using similar code in SemanticTitle and it seems to work for her. [22:51:39] HappyDog: I'm looking for non-flash mp3 players -- I haven't forgotten your thing. [22:52:50] There might be performance objections. Not sure [22:53:07] Due to extra db hit for each link [22:53:42] Ugh. Gerrit is horrible on phones [22:54:05] @hexmode: thanks [22:54:11] bawolff: the big thing is page_props. The title stuff isn't essential for this patch. [22:54:42] HappyDog: here's one that works w/o flash http://codecanyon.net/item/mediabox-jquery-plugin-for-audio-video/full_screen_preview/241182 [22:55:22] for-pay, but demonstrates what is possiblr [22:55:23] e [22:56:49] bawolff: "Ugh, Gerrit is horrible" FTFY [22:57:03] :) [22:57:34] HappyDog: https://amazingaudioplayer.com/examples/light-color-html5-mp3-player-bar-id3/ ... better but icky packaging [22:58:03] legoktm: what do you think of phab's code review tools? (I haven't tried them....) [22:58:57] I haven't had much chance to play with them, I'm a bit concerned about how it doesn't actually use git but some other protocol. [22:59:08] (looking at the patch now) [22:59:10] @hexmode good pointers - am experimenting... [23:01:27] HappyDog: This implies HTML5 can do mp3 out of the box: http://webtutsdepot.com/2011/07/02/html5-tutorial-how-to-embed-mp3-files/ ... trying it [23:01:44] Hexmode: biggest objection is the writing into page_props table [23:01:51] * hexmode is an old fogey who doesn't believe. [23:01:58] i dont think that will work [23:02:04] bawolff: ok [23:02:38] ty for your review :) [23:07:34] HappyDog: confirmed HTML5 does mp3 out of the box. [23:08:02] So you could literally substitute some html from http://webtutsdepot.com/2011/07/02/html5-tutorial-how-to-embed-mp3-files/ for the flash bit [23:09:30] HappyDog: the next bit is seeing if you could substitute the player when it sees an mp3 file, but I don't know offhand how to do that in MW. I imagine a hook exists. [23:17:13] @hexmode: I've found this - https://www.mediawiki.org/wiki/Extension:MiniMp3 - and downloaded the Flash player it depends on, and it basically works, though with Flash as a requirement. [23:18:22] I think, with the info you found, I should be able to rework it to use a native HTML5 implementation. [23:18:34] Perhaps with a Flash-fallback for older browsers. [23:19:02] (and, I guess, a direct link to the file for older browsers without Flash support) [23:28:02] HappyDog: awesome. Glad to help. [23:28:50] @hexmode I've got the html5 version working - thanks so much for the pointers! [23:29:37] It's a hack - I have no idea what I should be doing with the MediaHandler class - but it works. [23:30:04] HappyDog: I'm interested now. Could you post your work somewhere? [23:34:31] @hexmode: https://gist.github.com/MarkMaldaba/6d52007ffd301d818a8e [23:35:59] awesome. do you have git commit rights? Would you be ok if I committed this and gave you the credit? [23:36:37] HappyDog: ^^ [23:36:41] https://gist.github.com/MarkMaldaba/6d52007ffd301d818a8e#file-mp3mediahandler-php-L53 [23:36:44] * Reedy slaps HappyDog [23:37:09] heh [23:37:40] @Reedy - Coded to my own standards, not WMF! :-) [23:37:48] Didn't anticipate public scrutiny... [23:38:05] HappyDog: It's not WMF standards... It's generally accepted good practice to not use ?> at the end of PHP files [23:39:16] It's in a lot of standards, but not in mine. If you're a bit OCD then unbalanced tags can drive you a bit nuts. [23:40:23] lol [23:40:32] I think having them can cause you more bugs ;D [23:41:03] Only if you're less good at coding than I am. :-) [23:41:37] @hexmode - Go ahead. I based it on https://www.mediawiki.org/wiki/Extension:MiniMp3, so probably worth mentioning that, too. Though, actually, it's pretty trivial, so I wouldn't worry too much about attribution. [23:42:38] (I do have commit rights, but wouldn't know where to put it and it would probably take several hours to clone the MW repo as I don't have a copy on my local machine at the moment). [23:43:16] HappyDog: you wouldn't have to clone the mw repo, but np [23:49:51] HappyDog: Requested repo: https://www.mediawiki.org/wiki/Git/New_repositories/Requests [23:55:52] @hexmode: I've tweaked the gist to include a fall-back for non-HTML5 browsers. [23:56:31] Not sure it's quite an update to MiniMP3, as I ripped out all the Flash stuff... [23:57:09] I plan to add Flash back in, if I can do it in a properly compatible way (i.e. HTML5 as first choice, with Flash as fallback, and tag as last resort) [23:57:24] But would make it implementation agnostic (i.e. not tied to any particular Flash player). [23:57:44] For another day though... sleep is nearly upon me. [23:59:22] HappyDog: I'm not actually on IRC much so if you do more, msg me on wiki