[05:43:21] I was hoping to get a short list of random pages on the sidebar of my mediawiki installation. I've discovered the API, but I can't work out how to get it into my page? [05:44:34] do I need to hack the templates, or is there an easy way? [05:54:30] datakid: create a category with some pages and then link to Special:RandomInCategory/ThatCategory in the sidebar? [06:02:22] Glaisher, thanks [07:27:45] moin together [07:28:01] I have problem and need your help.. [07:30:16] I have to move a old media wiki from one server to another. I dumped the MySql Database through phpMyAdmin and copied the folder which contains the wiki to the other server. There I changed the configurations inside the LocaleSettings.php and imported the data in the new db. [07:30:48] The wiki works and I can log myself in but there is no article which has content. [07:31:20] The title works fine, but the content is missing everywhere.. [07:31:40] Have you an idea what the problem could be? [07:38:51] no one? [07:39:26] if I click on edit I can see that the content actually is there [07:39:37] but it doesn't show up on the actual page :( [07:39:44] no idea why [07:44:29] found it: [07:44:30] http://www.mediawiki.org/wiki/Manual:Errors_and_symptoms#All_pages_have_no_content.2C_but_when_editing_a_page_the_wiki_text_is_there [15:16:21] How I can list all registred users? [15:16:40] or view [15:20:46] lthozo: Go to the Special:Listusers page [18:13:00] Hello. I'm debugging an extension, but I can't seem to get the debug messages show up in the debug console. I've put $wgDebugToolbar = true; in LocalSettings, and the debug toolbar does show up. Then I put MWDebug::log('A test'); in my extension's hook (which does run correctly) but I get no output to the console. [18:48:54] I am trying to start a new discussion on mediawiki support desk, but when I hit 'save page' the page reloads to the same page, with the edit window, and my topic is not posted. I tried this on two different computers, and both logged into mediawiki and not. [18:50:48] maybe your post triggered an edit filter and LiquidThreads lack a way to display the error message? [18:51:14] Scott_Matteo: try adding some nonsense here https://www.mediawiki.org/wiki/LiquidThreads_Test_Page and see if the post goes through [18:52:15] that went through [18:53:13] if you have the original text you wanted to post, do it there to see if it's a problem of the contents of your post [18:53:26] ok [18:54:52] yes- same thing happens. I copied and pasted the text from Word. Maybe that has something to do with it? [18:57:00] probably, maybe it inserted some gibblerish characters... try posting it in https://dpaste.de and send me the link, I could take a look at it [18:58:35] https://dpaste.de/JnR5 [19:00:12] Scott_Matteo: weird, it let me save the post :S https://www.mediawiki.org/wiki/Thread:LiquidThreads_Test_Page/testing_possible_filter_block [19:00:36] try copying the text directly from dpaste [19:03:23] I copied the text from paste, same thing happened- page didn't post. [19:03:35] :S [19:03:43] I am trying to type the text directly into the edit window on another computer. [19:07:20] Scott_Matteo: about your problem, files need to be uploaded to the wiki through the MediaWiki interface, like the page [[Special:Upload]], otherwise, MediaWiki doesn't know that the image exists [19:07:34] http://www.mattiello.net/wikrich/index.php/Special:ListFiles shows no uploaded files [19:08:37] Doh! I was using Filezilla. Can you point me somewhere to read more about uploading through the interface? [19:08:38] another option would be to allow inserting external images, by putting the direct URL of the image inside the page, but you wouldn't be able to resize it or include it in galleries, etc [19:08:46] !upload [19:08:46] File uploads are disabled by default, set $wgEnableUploads=true; to enable it. See for configuration details, and for using uploaded images and other files. [19:08:52] ^ [19:10:50] Thank you! BTW, I typed my question directly into the edit window at support desk, it still won't save the page. But I guess I don't need to , since you answered my question. [19:12:15] it's strange, but I'm not able to see why it fails to save. At least it didn't triggered a local filter on the wiki https://www.mediawiki.org/wiki/Special:AbuseLog [19:30:58] Scott_Matteo: you may want to edit http://www.mattiello.net/wikrich/index.php/MediaWiki:Mainpage to reflect your actual main page [19:31:20] it currently points to a double-redirect page [19:33:55] thanks- can you tell me how to fix that? [19:34:26] edit that page, and put there the name of the page that you want to be the main page [19:34:55] maybe "Voice Recording for Technical Communicators" [19:37:34] Will do! Thanks again. [19:56:18] Hello. I'm debugging an extension, but I can't seem to get the debug messages show up in the debug console. I've put $wgDebugToolbar = true; in LocalSettings, and the debug toolbar does show up. Then I put MWDebug::log('A test'); in my extension's hook (which does run correctly) but I get no output to the console. [19:58:19] I have an extension which makes decisions about when to display ads ... I don't display ads when someone is logged in or editing, but I would really like to include "Never on Special Pages" ... How do I know that ? ... http://pastebin.com/yw53TYYG [20:02:25] ibjoe: $wgRequest->getWikiPage()->getTitle()->isSpecialPage() [20:02:47] https://doc.wikimedia.org/mediawiki-core/master/php/html/classTitle.html#a6e4d81e1ef77909c42b55ba415986ea7 [20:03:24] marktraceur: not just a fish, but a lesson in fishing. I thank you ! [20:03:24] Er I think. [20:03:41] ? I'll report back ... [20:03:42] I'm wrong [20:03:43] Wait [20:04:10] no wikipage on special pages [20:04:17] 1 sec, writing a gist [20:04:33] also, no globals plz:) [20:05:02] waiting ... infinite loop ... [20:05:50] ibjoe: RequestContext::getMain() instead of $wgRequest [20:05:51] https://doc.wikimedia.org/mediawiki-core/master/php/html/classRequestContext.html#ae3c4df7dcc925c3a52fb84a11611a20b [20:06:00] Guest71167 is totally right, globals are bad mmkay [20:06:54] ? globals are bad ? I know they can be considered harmful, like gotos but what else would I do here ? [20:07:23] https://gist.github.com/MaxSem/622856bb12f09b5a803e [20:07:30] Use RequestContext::getMain() [20:07:53] ty MaxSem !== Guest71167 [20:10:30] ok ... RequestContext::getMain() ... instead of ... global $wgRequest; ... and instead of ... global $wgUser; ??? [20:11:12] ibjoe: $context = RequestContext::getMain(); then $context has everything you need. [20:11:25] ibjoe: The gist above was a good example. [20:11:30] Actually, it was exactly what you need. [20:13:49] Got it ... Gist solved ALL !!! [20:14:13] Thanks, Max ! [20:16:04] i want to go from a sqlite installation to mysql. what would be a sensible way of backup -> restore that includes user accounts and everything? googling for this is almost impossible [20:20:43] Who's Max? [20:21:46] Hi. Where can i find some info about how orthographic modes on kk.wikipedia.org are implemented [20:22:21] Thanks, Fiona! [20:22:35] stan88: I guess you could ask them [20:22:41] I don't know what an orthographic mode is [20:23:35] them = ? [20:23:52] stan88: kkwiki [20:24:13] stan88: Can you link to a page that has what you're talking about, maybe? [20:25:51] ortographical mode = (Latin, Cyrillic ...) [20:26:02] Ah hm. [20:26:06] Language variants. [20:26:10] I *think*. [20:26:16] no, only the font [20:26:20] stan88: Can you link to a page with it? [20:26:36] http://kk.wikipedia.org/w/index.php?title=%D0%91%D0%B0%D1%81%D1%82%D1%8B_%D0%B1%D0%B5%D1%82&variant=kk-latn [20:26:52] "variant=" means I suspect language variants. :) [20:26:53] You can change to latin or some other fonts [20:27:34] stan88: Search the MediaWiki code for "variant", I'm not sure where it is [20:27:38] I think somewhere in the parser [20:28:49] -{ oh god }- [20:30:48] marktraceur : i think that's http://www.mediawiki.org/wiki/Writing_systems#LanguageConverter [20:31:04] am i right ? [20:31:23] Seems like [20:32:36] Should be the sizes listed in $wgUploadThumbnailRenderMap? [20:32:53] Sorry, misclick. [20:50:21] have kazakh wiki their own irc channel ? [20:50:44] #wikipedia-kk doesn't seem to exist. [20:50:46] So probably not. [20:52:53] How can i contact the author of the script[1] (http://meta.wikimedia.org/wiki/Wikipedias_in_multiple_writing_systems#Kazakh_Wikipedia) [20:53:26] or Kazakh-wikipedians [20:56:27] stan88: What are you trying to do? #mediawiki-i18n [20:59:05] Reedy: He's trying to get help with a script, I think. [20:59:15] Though #mediawiki-i18n isn't the worst suggestion. [21:52:33] I'm writing an extension to import HTML to my wiki. The HTML will be processed on upload (or could be done by reading the server filesystem). The user nominated files will not become part of the MW filestore, they will be processed and turned into wikitext, which is used to create new articles. Is there a "mock" upload method so that I don't have to mess with $wgDisableUploadScriptChecks and $wgFileBlacklist [21:53:39] Jenkins jslint complains about using javascript:void(0); in the href attribute. Anybody know what I should use instead? [21:54:46] UltrasonicNXT, nothing. just set jQuery events in JS [21:55:30] MaxSem: urgh I'm rewriting some old code and that's effort though :P [21:55:30] UltrasonicNXT: if it's not a link, why style it like a link? Make it a button instead. [22:21:48] Hi, assuming you are running on the latest security fixed build of mediawiki, site secure using SSL, internal access only, user authentication, mysql and web server hardened etc. etc. - How secure is the data stored within the wiki database in your opinion? [22:22:26] sa-: On what scale do you want your answer? [22:22:32] I mean, we do what we can to secure it [22:22:43] I'd say it's 29 secure. [22:23:11] thanks for the response. perhaps i should rephrase; i mean, could you hack it? [22:23:17] I couldn't. [22:23:24] I mean, maybe it's possible. [22:23:26] Where do you work? [22:23:28] :P [22:23:30] ha [22:23:47] sa-: I'd say you're doing a crackerjack job keeping it safe. [22:23:52] I wouldn't worry about it too much. [22:24:17] sa-: All it takes is one insecure network and a password left on a post-it note to defeat the system, though [22:30:08] yeah i get that. but it is deployed securely in some environments, yes? [22:31:48] sa-: I mean...sure [22:31:56] It's pretty secure [22:32:02] Nothing is 100% perfectly secure [22:34:49] ok great [22:35:20] i would be using AD security group membership for a subset of users. [22:37:11] sa-: Depends on what you're trying to protect. I'm pretty confident that the application can't be used to compromise the server (assuming you're not doing anything to insane with it). We do run wikipedia.org with it ;) [22:37:29] If your trying to protect the content to only registered users, make sure you use the private wiki option [22:51:57] Internal access only means it's behind a firewall? [22:52:14] Or on a separate network (intranet)?