[17:09:11] How does load.php work with the 'debug' option? I'm getting good CSS with debug=true but (binary?) content otherwise [17:09:56] This /should/ be common.css https://freephile.org/wiki/load.php?debug=false&lang=en&modules=site&only=styles&skin=vector* [17:10:10] but it's "garbage" [17:10:29] change debug to true, and it comes out fine [17:12:18] freephile: do you know about ResourceLoader? [17:13:02] Yaron: sort of... used to load extension css and js? [17:13:07] Yes. [17:13:24] It minifies the content in a variety of ways. [17:13:38] ...making it unreadable in the process. [17:14:11] I enabled an extension, and then disabled it, but now the CSS is borken [17:14:20] I just downloaded the core from git, then downloaded all the skins for git, then tried to run the installer and all I get is a white screen with "Error: LightnCandy class not defined" [17:14:22] can I clear caches? [17:14:28] *from git [17:15:34] freephile: sure - add "action=purge" to the URL, or just hit shift+reload in the browser. [17:16:18] then that's not it, because I've shift reloaded a bunch [17:17:36] Yaron:it's fine on the first request, but subsequent requests are 'garbage' [17:17:36] solarquest: do you have any idea what "LightnCandy" is? I've never heard of this thing. [17:17:51] freephile: probably because "debug=true" is not in the URL. [17:18:03] I googled it; apparently it was something added earlier this month [17:18:13] or at any rate that exception was [17:18:43] solarquest: that is the HTML template engine used for mediawiki [17:18:55] http://www.gossamer-threads.com/lists/wiki/mediawiki-cvs/565974 [17:20:09] freephile: please just show us the page that is broken [17:20:29] freephile: i know quite a bit about css/js, i'll try and help. [17:20:39] thedj: any page... like https://freephile.org/wiki/index.php/Special:Version [17:20:45] but it's intermittent [17:20:52] like a cache problem [17:21:17] solarquest: you can install the vendor part: https://github.com/wikimedia/mediawiki-vendor [17:21:27] and composer will install lightncandy.. [17:21:28] I don't know if it's reproducible; I just know I followed the instructions at http://www.mediawiki.org/wiki/Download_from_Git#Download and then the instructions at http://www.mediawiki.org/wiki/Download_from_Git#Using_Git_to_download_MediaWiki_skins [17:21:41] could it be the server's compression engine? I had this exact problem with Drupal on this same webhost [17:21:46] yeah, that might be it. there should probably be a more informative error message for that situation [17:22:30] solarquest: please do file a bugreport if you find something like that. because otherwise, it will probably not be updated in the docs, and then we will get burned upon making the actual release :) [17:23:00] freephile: you have an invalid character inside one of your pages. [17:23:25] the way I solved it with Drupal was I had to turn off CSS/JS aggregation [17:23:38] probably a sideeffect of: [17:23:38] [Error] Failed to load resource: the server responded with a status of 404 (Not Found) (ext.facebook.sdk.js, line 0) [17:23:42] [Error] Failed to load resource: the server responded with a status of 404 (Not Found) (ext.facebook.js, line 0) [17:23:45] [Warning] The page at https://freephile.org/wiki/index.php/Special:Version?debug=true displayed insecure content from http://static.ak.fbcdn.net/images/icons/favicon.gif. (load.php, line 974) [17:24:30] I found a rendering problem with http://www.mediawiki.org/wiki/Extension:SimpleMathJax on Firefox(OSX) that disappears if I switch to chrome. I document is an issue here https://github.com/jmnote/SimpleMathJax/issues/1 [17:24:38] ^ documented [17:24:40] regrettably, I don't have access to Phabricator, or I'd do that [17:25:37] solarquest: you can login there with a wikipedia account. but if you don't have one ok. [17:26:01] yeah, I don't have write access to Wikipedia. [17:26:15] pi-: math has been changing a lot over the last few versions. [17:26:41] okay, I'm going to go with MW 1.24.1, thanks all. peace out [17:27:19] ;< [17:27:24] pi-: i'm not familiar with Extension:MathJax [17:27:46] thedj: hmm... ok.... looking for the facebook part.... disabled it. So promising, but still have problem [17:27:56] pi-: WMF only uses Extension:Math (which has a thin client for mathjax) [17:28:14] pi-: it's developed by user physikerwelt on irc here (often around). [17:29:33] thedj: thanks for the headsup. I think the extensions documentation could do with linking together the various maths Extensions, redirecting both MathJax and SimpleMathJax towards Math maybe. [17:29:40] freephile: hmm, year there is something wrong with how your content gets served.. [17:30:03] pi-: yeah, it's a bit of a mess, it's a heavily under appreciated area supported by volunteers [17:31:36] thedj: At least you helped me disable Facebook which is un maintained (didn't know that) and they're spies anyway [17:32:23] thedj: I can see some logic for keeping SimpleMathJax alive -- simply because it is very quick install. The installation page for Math (http://www.mediawiki.org/wiki/Extension:Math) is a real headache. I've tried installing it and it isn't working. [17:32:42] pi-: yeah, that is the biggest problem there. [17:33:04] freephile: what kind of host is this ? [17:33:24] thedj:linux at webfaction [17:33:30] thedj: if I understand correctly, is Wikipedia in the process of transcribing it's math content from 'rendered on server to PNG' to 'rendered client site using MathJax'? [17:34:12] thedj:so shared host [17:34:17] pi-: no, rendered serverside with mathjax (As fallback) + mathml + SVG :) [17:35:33] lemme ask someone else [17:35:57] hm I'm going to cross my fingers and hope the SimpleMathJax maintainer fixes the Firefox issue. I can't see anything wrong with using MathJax for my own Wiki. [17:39:11] Would it be possible to get something like http://bl.ocks.org/jinroh/7524988 displaying inside a mediawiki page? If so, how come Wikipedia doesn't have any such animations to explain mathematical concepts? [17:39:59] freephile: ok, it's probably gzipped data, and the server is for some reason not passing the browser the Content-Encoding header. [17:40:37] thedj:that sounds exactly like what's happening [17:41:10] thedj: I opened a ticket with webfaction and described it as something that seems like compression handling in Apache [17:44:02] freephile: it's weird, cause it does add it for SOME of your load.php requests... i'd make not of that to them as well. [17:45:11] thedj: right! I hate intermittent problems [17:45:27] freephile: :) [17:48:02] thedj: I need to run some errands, and will be back later. Thanks for your help! [17:48:06] irc [17:48:08] oops [17:48:47] freephile: np :) [18:05:09] Hello everyone. What is 'the best' way to handle file attachments to a wiki page? [18:05:36] I don't see a ton of extensions for this -- and the one that I'm test driving seems to have some issues [18:05:43] (or perpahs I have it configured wrong..) [18:09:52] profmikebroyles: what are you trying to attach? [18:10:21] Betacommand: PDF's and other somewhat 'fixed' content [18:10:45] profmikebroyles: PDFs should be trivial to add to a page [18:11:11] I'm new to working with media wiki -- so I think part of the problem is that my user base is not 'wiki-savvy' [18:11:38] and they want a magical button to push to upload and "attach" to a particular page of wiki content [18:11:45] and other fixed content is dependent on the format of the document [18:12:59] profmikebroyles: point a user to [[Special:upload]] then its as simple as adding [[:File:My PDF name.pdf]] to the page [18:25:41] so, once again, is it possible to put an image using [[File]], but without the width and height img attributes? [18:34:18] how to ask the API for the timestamp a specific page has been edited the last time? [18:40:45] mutante: prop=revisions [18:42:15] I wish to setup threaded commenting to my (brand new) pages. I am uncertain if I should use LiquidThreads (looks better, but it is at end-of-life), DiscussionThreading (not so nice, but "stable") or wait for the new "Flow". Does someone care to comment, please? [18:42:21] Vulpix: thanks, i'll check that out closer [19:29:19] Yaron: sorry for my delayed response. I had an emergency. The error is shown on https://wiki.gamepaduniverse.com/wiki/Template%3AComments [19:31:11] helpplz: oh, that's not good. What happens if you put that template in another page - same error? [19:31:48] that snippet of code shows the same on any page i put it on [19:32:10] You mean, the error message? [19:32:18] correct [19:33:22] helpplz: did you register with DISQUS? [19:33:34] fyi i am using windows server if that means anything [19:33:35] and yes [19:33:49] the id exists and is correct [19:34:26] I get another widget error on the page:https://wiki.gamepaduniverse.com/wiki/List_of_Xinput_Devices [19:34:31] its for the amazon widget [19:34:48] but that's an incomplete widget i am working on [19:34:56] but the same error none the less [19:35:28] helpplz: are any of the widgets installed on your wiki working, as far as you know? [19:36:50] Yaron: Youtube one works [19:37:48] Alright, cool. [19:41:24] Yaron: How can i get a more detailed error? [19:54:53] Yaron: help plz [20:12:22] Quick question: You know how you can transclude Special:PrefixIndex and get a list of pages that way? Is it possible to do the same thing with a category? [20:14:11] harej: You seem to be under the impression that MediaWiki does useful things. [20:14:47] Okay, so instead of having that function built into MediaWiki, I will just have an external piece of Python code do that, and then save that output to a page, thus adding entries to the revision table. [20:14:53] Huzzah [20:15:04] harej: You could prrrrobably do something similar with a new special page. [20:15:07] This is what is known in trade as "arbitrage" [20:15:07] [20:15:31] Or SMW. [20:15:32] !hss [20:15:32] ZOMG!! https://upload.wikimedia.org/wikipedia/mediawiki/6/69/Hesaidsemanticga2.jpg [20:16:08] Yaron: :'( [20:17:09] !debug | helpplz [20:17:09] helpplz: 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 [20:24:10] helpplz: oh, sorry! I was doing other stuff for a while; and for some reason this didn't "beep" me. [20:28:50] helpplz: I just looked up the code; unfortunately there's no way directly within the code to display a more helpful error message. [20:29:01] (Which is a real problem; I wouldn't have designed it that way.) [20:30:30] Yaron: could it be because there is a script, i see that the youtube one doesn't have it and that works? [20:30:43] I don't know. [20:31:06] Here's what you should do: above line 132 of WidgetRenderer.php (which is what returns that error message), [20:31:21] put in thls line: print $e->getMessage(); [20:31:33] Hopefully that will display something more useful. [21:16:46] I have an EOL version of mediawiki (SMW and misc extensions) that I'd like to upgrade, but this composer thing confuses me a bit. I tried with a simple "git checkout REL1_23", but several extensions should by now be installed with composer. [21:17:24] I found some commands I could use, but they include version numbers ... my question is ... do I really need to know what version to use for each and every extension ...? [21:18:03] (that seems rather awkward. I just want to install mediawiki 1.23 and latest compatible version of every extension) [21:18:23] Hmm, does that imply that https://www.mediawiki.org/wiki/Manual:Upgrading#Upgrade_extensions is outdated? [21:19:14] "You might need to perform manual updates to custom extensions." ... blah. But yes, downloading from git seems to not to be the facit nowadays :/ [21:20:35] (oh ... facit is maybe not a proper English word for "correct answer"?) [21:21:48] http://en.wiktionary.org/wiki/facit ... that's latin. But I digress. I feel a bit stuck here. Anyone know anything about this composer thing? :-) [21:22:51] Figuring out which extensions should be just downloaded from git and which should be installed through composer and eventually what version I should use is just part of the problem. I will also need to upgrade again in the future ... [21:25:20] ... and there the MediaWiki Security and Maintenance Releases announcement just dropped down in my mailbox :-) [21:50:43] tobixen:With composer, you do not need to know what version of dependencies to install [21:51:01] tobixen: you just type: composer install [21:51:32] tobixen: that will install everything that /your current installation knows about/ [21:51:52] Is there any particular reason why Wikipedia doesn't use JavaScript interactive/animated content, for example explaining various mathematical concepts? [21:52:24] the thing is, extension writers may have begun to switch over to using composer to manage dependencies in the extensions between mw v 1.x and mw 1.25 [21:52:30] A good example would be http://bl.ocks.org/jinroh/7524988 to illustrate Fourier theory. [21:52:38] freephile: sounds awesome ... [21:53:06] Is there any obstacle to doing this in a mediawiki? [21:53:27] but how does my current installation know what extensions to install? (I'd like to set up a new instance from scratch) [21:53:31] tobixen: so, that still means you have to git pull extensions, and then run composer install in those extensions that are not part of mw core. [21:53:38] ok [21:53:46] I'll give it a shot [21:53:55] tobixen: I'm not a composer expert, but just happen to be navigating my way through this as well. [21:54:23] tobixen: and there are plenty of extensions (majority?) that don't use composer [21:54:24] pi-: i don't think it's generally against animations, there are a bunch of animated gifs on Wikimedia Commons [21:56:16] mutante: animated gifs are one thing, I've seen plenty of those. But I'm talking about embedded JS content. As far as I can see, mediawiki should be able to render any webpage. So it seems strange that WP hasn't made use of JS. [21:56:49] I'm just curious whether it's policy, or whether no one has found the need for it, or whether there is some technical reason against doing it. [21:58:30] tobixen: these are the only extensions that use Composer: https://www.mediawiki.org/wiki/Category:Extensions_supporting_Composer [21:58:31] pi-: i'm not sure, but i don't think it's policy or technical because we have https://www.mediawiki.org/wiki/Manual:Interface/JavaScript [22:00:39] tobixen: this is how you use composer to install extensions: https://www.mediawiki.org/wiki/Composer/For_extensions [22:01:25] tobixen: so for the majority of extensions that you're probably dealing with, you install them the 'old fashioned way' [22:05:07] tobixen: even with composer, you do have to unfortunately view the extension project page for each extension, find out what version you'd like to use, and then add that information to your composer.local.json file. [22:06:39] right, that's what I feared. [22:07:08] and that really sucks. Because I want to use "whatever version that fits with the current MW release". With git it's just to use the REL1_23 branch. [22:08:05] and I also don't want to bother wondering which minor version is the latest.