[03:06:02] Hi danili. Hmmm. [03:06:20] Did you look in DefaultSettings.php for a variable? [03:11:15] Is there a way to create an account through the API by using a salted hash of the password, rather than sending cleartext ? [04:02:44] steven_c: no, that's not possible [04:06:37] I have a question. [04:07:10] DeepChill_: you can ask [04:07:33] Actually googled it [04:07:37] another question * [04:07:49] :) [04:07:52] :D [04:25:35] I need to know the name of the port for printing on an apple Mac. [04:29:33] Hi Ron___. [04:29:56] When using a PC (windows) the port name is LPT1. What would the apple Mac port be named? [04:30:20] Dunno. Maybe try googling? [04:30:22] HI [04:31:09] I've been down that road, but I guess I am not smart enough to understand it. [04:31:24] Any advice on how to make this page: https://www.thecryptowiki.org/Test_Page [04:31:27] look like this: https://www.livecoinwatch.com/ [04:31:52] My page refreshes prices but only after I press "Edit source" [04:32:10] I want it to refresh the price without me having to click that button every time. Like it does on the website I linked [04:45:40] What is the port name to redirect a file to a printer using an apple Mac? [04:46:43] Ron___: This channel is primarily for support and development questions and discussion related to MediaWiki, a wiki software package. [04:47:01] People in here may be knowledgable about Mac printer ports, but it would only be incidental/accidental. [04:47:07] Coincidental? I guess. [04:47:34] DeepChill_: You could reduce the parser cache time, I guess. [04:48:46] Sorry, I just didn't have anyplace else to go except to the DOS (games) programing persons. [04:48:59] steven_c: You could create a temporary password? [04:49:10] That wouldn't be sending a password in cleartext (assuming you're using HTTP?). [04:49:19] You could also use a secure(r) protocol like HTTPS. [04:50:00] hmm [04:50:01] Ron___: In my experience, adding a printer is usually a matter of opening "System Preferences", clicking printers, and clicking the plus icon. [04:50:09] And finding the printer in the local network or plugged in via USB. [04:50:21] DeepChill_: Do you understand what parser cache is? [04:50:35] DeepChill_: And have you gotten permission from the owners of livecoin.net to access their site repeatedly? [04:50:58] The less you cache, the more often you'll hit their site from your site. [04:51:28] Not specifically because I'm only testing using their site. I'm probably gonna use a different API eventually. They allow 60 hits/minute I believe. [04:52:01] and no, i dont know what exactly is parser cache but I think I have an idea of what it could be [04:52:19] !caching [04:52:19] General information about caches can be seen at , for configuration settings see [04:52:33] DeepChill_: Basically computers store copies of data for faster access/retrieval. [04:52:47] Yes. [04:52:53] They often do this in a cache layer. So parsing a page can be computationally expensive (requires checking a bunch of links, etc.). [04:53:06] So the results of that page parsing (the HTML that gets generated) can be cached. [04:53:17] In this case, you're viewing the parser cache of the page. [04:53:30] So when you do a regular in-browser refresh, you're just seeing the same cached data. [04:53:33] Does that make sense? [04:53:40] When you click "edit source" and then save the page, you're purging the parser cache. [04:53:41] So every time I press "Edit source" it parses the page? [04:53:52] I imagine you're also clicking save page? [04:53:57] Or show preview or something? [04:54:06] Yes, without making any changes though. [04:54:08] Generally just loading action=edit won't reparse the page. [04:54:11] Right, that's called a null edit. [04:54:19] So you could set up a script to make null edits a lot. [04:54:24] Or you could lower the parser cache time. [04:54:32] Do u know what the default time is? [04:54:36] 30 days I think? [04:54:41] And can it be changed for specific pages? [04:54:48] Sort of. [04:54:53] I would have to bring it down to like 5 minutes. [04:54:59] Some parser functions and other wikitext will automatically change it. [04:55:10] To lower it, so that features such as {{CURRENTDAY}} work. [04:56:40] Is this the command you're referring to? $wgParserCacheExpireTime [04:57:13] Probably, yeah. [04:57:17] Or you could disable caching altogether. [04:57:36] I guess the default is 24 hours, not 30 days. [04:57:38] Hm. [04:58:22] DeepChill_: That extension(?) you're using may also have some functionality for this. [04:58:47] Whatever's providing {{#get_web_data:}} has probably encountered this or a similar issue. [04:59:11] Ah, here we go. [04:59:17] https://www.mediawiki.org/wiki/Extension:External_Data#Data_caching [04:59:23] DeepChill_: You should read the docs. :-) [04:59:53] I have devs to do that for me. [04:59:57] But thanks [05:00:34] And yet all the questions. [05:01:23] I'll try to see what I can do with this. Thanks for the help. :) [05:01:31] No problem. [05:08:29] Hey, that's my extension! Just saw this. [05:10:01] DeepChill_: I'd recommend just disabling caching, for now - it's the easiest solution, and might work fine as long as you're not getting a huge amount of traffic. [05:10:09] See here for how to do it: https://www.mediawiki.org/wiki/Manual:FAQ#How_do_I_completely_disable_caching.3F [05:10:54] What are the cons of disabling caching? [05:11:39] It slows down the site. [05:12:04] Any possible security issues? [05:12:08] No. [05:12:22] Another option, if it's just going to be a limited number of pages that are fetching outside data, is to use the MagicNoCache extension. [05:12:26] !e MagicNoCache [05:12:27] https://www.mediawiki.org/wiki/Extension:MagicNoCache [05:12:58] It defines a "magic word", __NOCACHE__, that you can put on just those pages that are calling #get_web_data. [05:13:28] That seems like a much better solution [05:13:37] Could be. [05:15:06] Yaron: When can we get the External Data extension enabled on Wikipedia? :-) [05:15:15] Yaron, would you happen to know any extensions that could help me get a dynamic page like this? https://www.livecoinwatch.com/ [05:15:28] So that instead of changing numbers every refresh, it changes them live [05:15:47] Ivy: never, would be my guess. :( [05:17:10] DeepChill_: wow, that's pretty cool. I very much doubt there's such an extension - but if you create JS that does it, you could presumably put it on the wiki using the Widgets extension. [05:17:21] ...or just create a wrapper extension around that JS. [05:17:46] Hmm, good idea. [05:18:44] !werap [05:18:45] !wrap [05:18:51] What's a wrapper extension? [05:19:00] Some PHP code you/someone writes. [05:20:28] Right, I just meant that the "extension" part of the extension code would be pretty minimal - the vast majority would just be the JS needed to produce that display. [05:21:21] Can get your name on Special:Version for the fame and glory with a wrapper extension. [05:22:36] I see [06:35:01] legoktm , Ivy : thanks, auto-generated temporary passwords were indeed the answer :) [07:00:36] \o/ [08:49:00] Ivy, I looked for a variable, but wasn't able to find any. Maybe I'm just blind :/ [11:09:40] hi everybody [11:12:51] I need some help, i have the following error : Sorry! This site is experiencing technical difficulties.(Cannot access the database) [11:13:14] Hi wil__. Did you setup the site yourself? [11:13:35] yeah, i followed all the steps of the installation wizard with success [11:13:38] It should give you a stack trace beneath the error. That should tell you more about the exact problem. [11:14:35] wil__: It's possible that the credentials you provided for db access are incorrect. You should check that. [11:14:45] you can check it here : https://wiki.nci.fr/ [11:16:27] credentials are good, i checked it and everything is ok. I don't understand because installation wizard succeed with creating database [11:18:02] i have tried 3 times to restart installation, everytime installation was allright, i copied the localsettings in the wiki folder and then i always get this error [11:55:09] the issue is proably your database login details are mismatched [11:55:27] or that your database is not the right install [11:55:48] is the database on the same server? [12:22:00] yes the database is on the same server and actually i do not really understant because installation wizard asks for database informations to build database and tables and it worked and then installation wizard put those informations into localSettings.php. So why installation wizard access sql server without any problems but then mediawiki can't access it ? [12:53:47] have you just a localsetting.php file from another install? [12:53:57] cause if so that may not work [12:54:09] delete it and go through the wizard properly [12:54:42] if that still doesn't work then try reinstalling the database or something [12:58:28] actually, i have already tried this. I've cleaned everything (database and installation directory), restarted everything from the beginning but same issue [12:58:59] i see [12:59:37] well if you can't get it work, the best thing to do is to use the bitnami build [12:59:51] that is basically prebuilt [13:01:20] An existing installation of MediaWiki has been detected. To upgrade this installation, please put the following line at the bottom of your LocalSettings.php: $wgUpgradeKey = '32a5fdae39efd8ef'; [13:01:26] try that [13:02:12] i'm gonna try it now [13:18:05] It is strange, i add the following line "$wgUpgrade..." at the bottom of LocalSettings.php but nothing happen, i can't upgrade installation, it is like my LocalSettings file is not read ..... (i have tried to add some dummy text inside the file but it doesn't fail) [13:19:06] awesome :( [13:19:28] I dunno, go with a bitnami option, its easier [13:20:32] bitnami comes with a lot of modules and i just need mediawiki (i make an installation on our enterprise webserver so i don't want to install all other modules .... ) [13:20:48] have you tried an install without any localsetting.php file? [13:22:33] when this file doesn't exists, it shows the wizard. I complete it step by step : that builds the database and build the localsettings.php i put into the mediawiki directory and then i have this issue when i load the index page [13:23:48] I have never had significant difficulties with mediawiki once I have got to this stage, but my thoughts are mainly that it is something to do with the database setup and/or the localsettings file [13:26:27] the strange things is when I put "die;" on the first line of this LocalSettins.php, it doesn't stop [13:26:48] it cary on like nothings wrong for him [14:46:28] danili: You could maybe do something hackish with the AbuseFilter extension. [14:46:47] danili: Or the RequestAccount extension. [15:26:03] Is it at all possible to upload files and/or documents? [15:27:53] Please be as detailed as you can be in your response. [15:30:07] Guest4796: upload where/how? Please provide details. [15:30:22] In short: Yes. See https://www.mediawiki.org/wiki/Manual:Uploading [15:31:37] Hi. I'm a bit confused, regarding LDAP auth. I have a mediawiki 1.23.5 which uses LDAP to auth users. I want to update it to 1.30 . LDAP extension has a warning, not valid for 1.27+ . This is a LDAP hub page, with a migration example. Is it a working, or is it a work in progress with currently no LDAP auth possible for 1.30 ? [15:32:19] s/this is a LDAP/there is a LDAP/ [15:33:39] I need to upload a few Word documents, as well as a few PDFs to my company's wiki page. These documents need to be accessible to everyone company wide. For instance, from the Home Page I would go to categories, click on the "Training Documents" category. I would then click on a subcategory within the "Training Documents" category. When I click on that sub category, I would like for there to be a document availbe for them to vi [15:33:52] links welcome to such statements. [15:33:59] JBzh, ^ [15:34:27] LDAP Hub: https://www.mediawiki.org/wiki/LDAP_hub/Migration_from_extension_LDAPAuthentication/Example_1 [15:34:50] LDAP extension: (with warning) https://www.mediawiki.org/wiki/Extension:LDAP_Authentication [15:34:55] Guest4796: your question got cut off after "availbe for them to". [15:35:09] JBzh: it works in 1.27+, but not fully [15:36:00] Skizzerz: ho ok, thank you. I'll try it then. [15:36:22] When I click on that sub category, I would like for there to be a document availbe for them to view. [15:36:35] Oh, okay. [15:37:17] That's not a problem - every uploaded file gets a corresponding "File:" page for it, and you can add each such page to any category. [15:37:50] (when uploading, just add [[Category:Whatever]] to the description to categorize that file) [15:38:23] if it's already uploaded, edit the associated File: page to add the category tag [15:40:18] So, my question is, is it possible to upload a Word document as its own page, or on its own page? [15:44:30] every single uploaded file "XYZ.foo" has its own page called "File:XYZ.foo". [15:47:06] Can you please expound? [15:47:17] see the link andre__ gave earlier, https://www.mediawiki.org/wiki/Manual:Uploading [15:47:49] the document doesn't "turn into" a page; a page is created which describes the document and lets you download it [15:47:56] you cannot edit the document itself on the wiki [15:48:11] you can edit it elsewhere and upload new versions of it, however [15:48:37] if this isn't what you want, then mediawiki isn't a good fit for what you want to do [15:49:41] My personal recommendation is that, if you really must keep them in Word format, to just use a file share to send them around. If the Word format is unimportant and you really want the collaboration/shared editing, then create wiki pages with the document's contents and skip the whole upload thing entirely [17:32:00] can someone with +2 look at this one line patch: https://gerrit.wikimedia.org/r/#/c/402151/ ? [18:05:55] I've made a template, with a youtube element in the middle: {{{video}}}. However, when I use the template in pages, if I try to play it, youtube complains "An error occured, please try again later." Using directly on the pages works. Any ideas why? [18:10:32] naiveai: no clue. Do you have a link where we could see one working and one not? [18:12:16] naiveai: parser tags don't expand templates/params [18:12:27] use {{#tag:youtube|{{{video}}}}} [18:12:52] Skizzerz: ah, thanks. will do! [18:14:37] Skizzerz: that worked! thanks so much! [20:28:23] Uh question. [20:28:33] I was told I can insert JavaScript code into my website if I use: https://www.mediawiki.org/wiki/Extension:Widgets [20:29:01] The page itself does not mention JavaScript anywhere so I just wanted to double check and see if what I'm thinking of doing is indeed possible [20:29:14] Does that extension allow me to insert JavaScript code into a page it's being run on? [20:35:34] DeepChill: you probably want https://www.mediawiki.org/wiki/Extension:Gadgets [20:37:31] Hey Yaron [20:37:53] Was the extension you mentioned yesterday Gadgets or Widgets> [20:41:20] DeepChill: it was Widgets. [20:41:58] But widgets doesn't say anything about JavaScript, Gadgets on the other hand does. [20:42:36] Widgets lets you insert any combination of HTML and JS into the page. [20:43:23] Hmm [22:52:07] Hi, I've just updated my debian jessie installation to stretch, and mediawiki is failing. I get this when I connect to the front page (on localhost). [22:52:13] http://piratepad.net/uPhUQPZEod [23:19:05] artag: that means that while MW is configured to use MySQL, PHP misses bindings for it - mysqli or mysql extensions [23:21:05] basically, you need https://packages.debian.org/stretch/php-mysqli [23:21:31] (yeah, no old mysql extension in stretch) [23:22:19] I get : Note, selecting 'php7.0-mysql' instead of 'php-mysqli' [23:22:19] php7.0-mysql is already the newest version (7.0.19-1). [23:22:58] but php-mysql is there too - maybe I should remoive it ? [23:23:37] php-mysql is a virtual package that provides php7.0-mysql [23:24:28] put ^ somewhere web accessible and visit in browser [23:27:52] I put it in the local index.html and it didn't appear to do anything [23:28:57] i don't know any php syntax though - is that precisely correct ? [23:29:01] no end tag ? [23:29:21] put it into a .php file [23:29:33] yup, closing tag isn't needed [23:30:15] exactly nothing gets printed [23:30:56] ah waut .. [23:31:01] what about ok, put them both in .php file but still no output [23:34:59] if I put that into php in a console I get bool(true) [23:35:35] (and pages of output from phpinfo) [23:37:35] http://piratepad.net/DEmbVR8UAA