[00:58:50] Anyone had success with short urls and lighttpd 1.4.40? [01:12:42] DarkFeather: why not try nginx or apache [01:26:24] There's less people who use lighttpd, so you are more on your own for the short url config then you would be with apache [01:27:08] From your bug, it sounds like MW is misdetecting what url its being accessed from, but beyond that, I have no idea [01:28:19] At first glance, I would guess that its more likely for your lighttpd config to be at fault than for mediawiki to be at fault (but that could be my bias as thinking mw is awesome ;) [01:28:29] DarkFeather: --^ [05:58:11] I am trying to understand the way to acomodate menus on the template. Thought it would be simpler, but the way I see some of the themes, seems like is non standard. [05:58:51] anyone around, the skin is based off the ConglomerateBlue Skin [06:32:08] Hi bluesilver [06:32:33] do you have a wireframe, a mock up, a prototype of what you're trying to achieve ? [06:37:01] Dereckson: well actually my theme is almost done this is almost the finishing touches [06:37:14] but this involve actually moving the code not just playing around with the CSS [06:37:56] Dereckson: I posted the code that I am seen, is based off the conglomerateblue [06:38:03] Dereckson: let me see if I can fin id again [06:38:11] https://pastebin.mozilla.org/?diff=8886662 [06:39:01] there you can see the cactions menu is listed on the quickbar function, what I need is to move that menu up to the siteLinks function [06:39:39] I tried to just do a copy paste but that didnt work. So I need some help trying to figure out how are the menus constructed so I can call them accordingly [06:40:22] sysLinks seems to use another format [06:41:36] Try perhaps Title::newFromText( wfMessage( 'cactions' )->inContentLanguage()->text() ), and then wfMessage( 'qbedit' )->text() like the others Linker::linkKnown in the method. [06:42:03] Could be the other way around [06:42:12] and where should this go? [06:43:37] oh nm I got ya [06:43:41] ? [06:44:25] sysLinks seems also to use an array, but instead of a key => value, then do something magic [06:44:47] it explicitely fetches the localized messages, and the link [06:47:40] ummm ok that's odd, I only got the first element instead of all the options [06:48:52] this is the menu that has the edit, delete, move, protect. [06:49:11] perhaps is an object and I need to iterate withing the array. [06:57:16] Dereckson: yeah I also dont think they are objects. [06:57:40] I think is going straight to the text() so they are not part of an array [06:59:41] bluesilver: try later in the day, Isarra could be helpful to indicate you the method to use for a menu [07:03:01] is 3am [07:03:35] Dereckson: I see the $qbedit has some sort of array as well [07:04:08] https://pastebin.mozilla.org/8886881 [07:04:15] maye thats the way to add them 'manually' [08:41:20] there you can see the cactions menu is listed on the quickbar function, what I need is to move that menu up to the siteLinks function [08:41:33] I am trying to understand the way to acomodate menus on the template. Thought it would be simpler, but the way I see some of the themes, seems like is non standard. [08:41:45] https://pastebin.mozilla.org/8886881 [08:42:01] maye thats the way to add them 'manually' [08:50:37] anyone around? [09:03:55] https://thefosters.miraheze.org/wiki/File:Jude.jpg#/media/File:Jude.jpg [09:04:01] hello ^ this is getting an error [09:04:17] Please see https://github.com/miraheze/mw-config/blob/master/LocalSettings.php if you need it [09:04:41] it is the MultimediaViewer extension. [09:10:45] Ah there you are [09:11:04] If there is some fix in SiteMatrix that you need in 1.26, you'll need to ask a backport [09:12:42] okay. and who do I need to ask for that? [09:12:47] *who/where [09:18:39] ^ Nemo_bis [09:21:43] Reception123: first you need to ask miraheze whether they plan to upgrade, imho [09:22:04] Yes. Miraheze should be upgrading to 1.27 but I'm not exactly sure when. [09:58:48] there you can see the cactions menu is listed on the quickbar function, what I need is to move that menu up to the siteLinks function [09:59:06] anyone around, the skin is based off the ConglomerateBlue Skin [10:52:24] hmpf, legoktm was faster than me, I went to https://www.mediawiki.org/wiki/Special:UserRights/Ciencia_Al_Poder to do the same [10:52:49] Nemo_bis: :) [13:03:51] Nemo_bis: Heh, he beat me too! [13:12:40] hi guys. I'm sharing user table between wikis. But i'd like also to share cookies for login. Is that possible? the domains are different. [13:13:01] So I know $WikiwgCookieDomain doesnt work in this case. [13:31:23] Ed_WikiBrasil maybe check www.mediawiki.org/wiki/Extension:CentralAuth [13:32:23] if you're using CA, of course, and for domains you should try WgServer and wgCentralAuthAutoLoginWikis [13:45:38] Thanks for the tip! :-) [14:31:02] ty Nemo_bis [14:32:06] semantic rating is too complicated for me to install even if i need it [16:22:10] Hello, I'm trying to set up a short URL following this guide https://www.mediawiki.org/wiki/Manual:Short_URL/Nginx but my page is currently just showing plain HTML. How can I resolve this? [16:34:30] Look at your browser console for any obvious errors [16:38:45] PugBear: did you lose your mimetypes? [16:55:07] http://hastebin.com/raw/vuxapacoko Is this https://www.mediawiki.org/wiki/Manual:Short_URL#No_Skins? [16:55:51] oops didnt change the domain in the second one -facepalm- whatever [16:56:16] PugaBear, what is http://hastebin.com/raw/vuxapacoko ? [16:56:31] its a hastebin :x [16:56:48] Oh the text in it? Thats the console log [16:56:57] The errors, as Ree.dy told me to look for [17:01:01] If it is the No skins problem, do I still follow those directions (symlink in /var/www/), even though im on nginx? [17:11:56] PugaBear: no CSS or literally you see the HTML in the browser? [17:12:20] DarkFeather http://i.imgur.com/e5Ql6xA.png [17:14:18] Yeah no skins problem -- actual HTML is different. [17:16:19] View the page source to see what HTML would look like, and that'd be when you lose your mimetypes. [17:17:42] It tells me to symlink /var/lib/mediawiki but that file doesnt exist [17:47:50] Hello. I have trouble with footnotes. text just stays in the article raw, and the {{reflist}} just becomes a link to Template:Reflist. Can anyone help me with this? [18:05:49] fjiowefw: try using [18:06:25] MC8: that also appears raw. [18:08:29] fjiowefw: do you have the Cite extension installed? It'll be listed on Special:Version [18:08:46] Thanks, I'll check it out [18:17:30] don't suppose anybody knows how many mediawiki installs there are? [19:09:01] MC8: There's some info on https://wikiapiary.com , although many are not listed. [19:20:43] hi anyone around [19:20:48] I need help with a skin [19:30:55] Still cant figure out how to fix my skin not loading after I added a short url. The section in the troubleshooting that addresses it doesnt help; there is no file '/var/lib/mediawiki' if that was supposed to be created during setup, I didnt set up this wiki originally so i dont know, but it seems like thats geared towards apache while im on nginx ( [19:30:55] im still learning all this web stuff) [19:47:46] /var/lib/mediawiki is only if you've used packaged mediawiki [19:48:20] so its just where I put the site? in which case, I tried that too, and didnt help [19:49:21] What's in the browser console? [19:50:36] Reedy http://i.imgur.com/xAANOXw.png [19:50:57] is /wiki/load.php right? [19:51:01] The usual guide is /w/load.php [19:52:38] I want it to be /wiki/ yes, I changed all the 'w''s to 'wiki' [19:52:48] No [19:52:56] You want articles to be /wiki/Article_Name [19:54:51] Yeah..what do I need to change back then? [19:55:29] Check $wgScriptPath [19:55:35] $wgArticlePath [19:55:52] $wgScriptPath = "/w"; [19:55:59] $wgArticlePath = "/wiki/$1"; [19:57:28] Oooh okay that makes sense...but it didnt fix it [20:02:03] bluesilver: Okay, what exactly are you trying to do? [20:37:34] hi anyone can help me with the PHP of my Skin? [20:40:30] I have the following code and not sure how can I do what I need to get the menu display on the header instead of the sidebar [20:40:33] https://pastebin.mozilla.org/?diff=8886662 [20:50:00] hi Reedy can you look at my code? [20:54:44] this is the main functions that hold the menu bars... https://pastebin.mozilla.org/8887087 [20:55:10] basically I want to move concations (line 47) to the sysLinks. [21:00:27] hey Alphos [21:00:32] not much help here. [21:01:22] I have the following code and not sure how can I do what I need to get the menu display on the header instead of the sidebar [21:01:42] here is the skin code: https://pastebin.mozilla.org/8887087 [21:01:54] I mainly want to move cactions to the sysLinks menu [21:02:21] bluesilver I'd advise you be patient and wait for a response, it often takes hours for someone to respond [21:03:00] And pinging people is generally considered rude unless youre actually engaged in a conversation with them [21:03:21] PugaBear: well I have been here 3 days [21:03:37] In that case, i'd suggest a forum [21:03:52] I put it on mediawiki support desk [21:05:05] Then wait and keep trying things on your own. :) [21:07:25] PugaBear: can't you take a look at my code? [21:07:35] I dont know how to help, sorry [21:07:51] is only a matter of moving a chunk of code to a different section [21:08:24] and is not like is some obscure code, is the core menus of the mw UI? [21:08:41] PugaBear: is there a mailing list? [21:09:04] bluesilver I am new here I don't know much [21:09:12] Im here waiting for an answer to my problem too [21:10:04] so you are new but you knew that it will take hours for someone to reply? [21:10:16] I'm not new to IRC [21:10:56] bluesilver: yes there is [21:11:09] Platonides: there is what? [21:11:13] https://lists.wikimedia.org/mailman/listinfo/mediawiki-l [21:11:17] ahh [21:11:18] a mailing list [21:12:02] btw bluesilver I don't see any code on your pastebin link [21:12:10] ah [21:12:14] there was a second link [21:12:17] that one works :P [21:12:51] umm... looking at the archieves they dont seem to ask too much about skins [21:12:53] http://news.gmane.org/gmane.science.linguistics.wikipedia.technical/ [21:14:08] bluesilver: that's the archive for wikitech [21:14:34] that's another mailing list [21:14:41] albeit quite similar [21:15:00] mediawiki-l is http://news.gmane.org/gmane.org.wikimedia.mediawiki/ [21:31:05] any coder here? [21:48:05] bluesilver: depends what you mean with coder [22:01:00] bluesilver: What are you actually trying to do? Move what would usually be the sidebar into the header? [22:02:32] Is this an existing skin or a new one? If so, what? [22:08:28] bluesilver: If you want to move the sidebar, look at the example skin: https://github.com/wikimedia/mediawiki-skins-Example/blob/master/ExampleTemplate.php [22:08:29] bluesilver: You'll need to move your equivalent of the call to getsitenavigation, and look at what the function does here, too, because you'll need to turn off the search in the sidebar and then just generate your own search function (copy it out of example), call that wherever you want it. [22:21:45] is there an easy way to add mime types without editing: includes/mime.types [22:22:08] preferably something in LocalSettings.php [22:23:20] MimeMagicInit hook maybe [22:23:31] 'MimeMagicInit': Before processing the list mapping MIME types to media types [22:23:32] and the list mapping MIME types to file extensions. [22:23:32] As an extension author, you are encouraged to submit patches to MediaWiki's [22:23:32] core to add new MIME types to mime.types. [22:23:32] $mimeMagic: Instance of MimeMagic. [22:23:33] Use $mimeMagic->addExtraInfo( $stringOfInfo ); [22:23:35] for adding new MIME info to the list. [22:23:37] Use $mimeMagic->addExtraTypes( $stringOfTypes ); [22:23:39] for adding new MIME types to the list. [22:26:04] Awesome. [23:17:00] Hey, I am helping the person who runs starbounder.org and stardewvalleywiki.com, and we are having some perf problems, I've traced it down to the only php pages that are not cached by nginx, and those are primarily related to searching [23:17:16] I'd like to disable the 'mediawiki.searchSuggest' module [23:17:56] setting wgUseAjax or wgEnableAPI to false are both too limiting [23:18:47] I don't remember what wgUseAjax does badly, but I know katzeus uses the api for scripts, so we shouldn't really turn that off [23:19:24] we believe, maybe wrongly, that the autocomplete and search suggestions are causing a lot of un-cachable api.php requests [23:19:50] is there a way to disable this module other than simply disabling it in the mediawiki source? [23:20:11] I am an ABSOLUTE mediawiki noob I just read the source code [23:20:33] you're wanting to disable the javascript module? [23:20:44] I'm not sure why search suggest would be uncacheable... [23:20:57] Other than you probably always want the latest search results [23:21:49] I don't believe we want to disable ajax in general, I can check on specifics, we just want the partial searching or search suggestions as people type, it creates many requests for api.php instead of just one, when they hit the search button [23:21:55] hmm [23:21:55] they're not un-cachable, they're just searching haha [23:21:56] if ( !$suggest || $this->getConfig()->get( 'EnableOpenSearchSuggest' ) ) { [23:21:56] // Open search results may be stored for a very long time [23:21:56] $this->getMain()->setCacheMaxAge( $this->getConfig()->get( 'SearchSuggestCacheExpiry' ) ); [23:22:07] * Expiry time for search suggestion responses [23:22:08] */ [23:22:08] $wgSearchSuggestCacheExpiry = 1200; [23:22:09] 2 minutes? [23:22:15] so, peoples text is often times filled with, you know, random new things like spelling errors [23:22:42] uh, 20 minutes [23:22:53] and it seems to do several requests if you, say type slowly [23:23:06] yeah [23:23:23] so you get the live search thing like most sites have [23:23:34] Is it really causing that much load? [23:23:40] we are, to the best of my limited hey I just got here ability, experiencing a lot of api.php search requests, which seem to come from that [23:24:03] FWIW, not all come from the javascript [23:24:12] browsers also latch onto opensearch for site searching [23:24:13] the site is using nginx with php-fpm and fastcgi-cache, and it works just fantastically, except for that [23:24:35] yeah I know about opensearch, which is why I am so unsure :P [23:25:14] What verison of MW and php? [23:25:18] basically, hello we are a video game company and we just released two big games and our site falls over every day, and this is where we are now :) [23:25:26] hold on... [23:25:48] MediaWiki 1.26.2 [23:25:48] PHP 5.6.23-0+deb8u1 (fpm-fcgi) [23:25:56] yep there you go [23:26:04] I should have just linked you the version page [23:26:13] That's where I went ;) [23:26:21] yeah I figured haha [23:26:37] I wonder if offloading to something like elastic search would help [23:26:57] yeah I know we can do more complex stuff with yeah that, or I guess enabling other search modules? [23:27:05] others such as? :) [23:27:09] I was looking more for a solution while we looked at other solutions [23:27:18] CirrusSearch? [23:27:35] That is elastic search [23:27:39] is it, okay cool [23:27:41] it's just the name we have for the interfacing [23:28:02] thank you, yeah you're helping me understand all this actually [23:28:05] I was looking at the searchSuggest.js file to see if there was a configuration for how often it makes requests [23:28:20] ie a timeout or similar [23:28:28] I can't see anything obvious, but I'm nto a js person [23:28:31] I successfully disabled it, I mean.. with the power of php comments [23:28:42] and mutating live php files on a server [23:28:50] it's not disabled now I un-disabled it [23:29:57] unset( $wgResourceModules['mediawiki.searchSuggest']['scripts'] ); [23:30:06] Something like that in your LocalSettings might be better [23:30:15] It'll just stop loading that js [23:30:47] cool, that is precisely what I was looking for [23:30:57] I felt like there should be a way to do it from LocalSettings.php [23:31:09] Not sure what it'd do [23:31:17] But probably nicer than just unsetting the whole module [23:31:23] Which may lead to browser console errors [23:31:26] I disabled the module by simply commenting it out from Skins.php and it works fine? [23:31:30] ish? [23:32:04] $modules['search'][] = 'mediawiki.searchSuggest'; [23:32:06] ? [23:32:22] That'd stop it being loaded on the page [23:32:24] yeah [23:32:33] Which would be cleaner than just undefining the whole RL module [23:34:37] Can't see an obvious way to remove it from the outpage hooks [23:35:38] You could bump $wgSearchSuggestCacheExpiry if you're getting a lot of similar requests [23:35:41] Probably not though [23:37:18] so, if I'm understanding things correctly [23:37:28] unset( $wgResourceModules['mediawiki.searchSuggest'] ); [23:37:37] will that.. just disable every part of that module? [23:37:41] not just the scripts? [23:38:52] yeah [23:38:54] awesome [23:38:58] not so awesome [23:39:08] it may cause errors when it's tried to be included [23:39:14] Hence suggesting to just remove the js [23:39:41] $wgResourceModules['mediawiki.searchSuggest']['scripts'] = ''; [23:39:44] may be a better option still [23:40:14] right, I see [23:44:33] that makes perfect sense, just disabling scripts seems to (ofc) do the trick [23:44:51] I have one more annoying question and then I will leave you be, is it possible this would not work for the Vector skin? [23:45:07] What do you mean? [23:45:21] It may be cached loaded in a few places [23:45:32] I'm not fully sure how all the search things are related, stardewvalleywiki.com is using the vector skin, yeah okay it might also be caching [23:46:00] I read the code and saw references to the autocomplete code coming from code originally in the vector skin, I didn't know if it was still using something independent [23:46:18] er, sorry suggestions not autocomplete [23:47:00] AFAIK it's not [23:47:09] JS and stuff gets cached for a short ish period of time [23:47:40] right cool, and there's also the layer of fastcgi cache, though I don't know if that is part of it [23:53:24] awesome, thank you so much for your excellent help [23:53:55] I am trying to find a way to display my edit count on a wiki page. Any help? [23:54:03] I'm not sure how much that will affect load, but hopefully at least some [23:54:50] Anyone? [23:56:23] You'd probably need to find or write an extension for that [23:56:29] Or a bot to write it to some template [23:56:36] Is there one you know of? [23:57:03] And how would I configure a bot to do that?