[03:38:52] I've got this error 1267 Illegal mix of collations (utf8_bin,IMPLICIT) and (cp1251_general_ci,COERCIBLE) for operation '=' [03:39:28] after upgrade. I don't see any data encoded as cp1251. How do I fix this? [03:42:11] one of your database tables/columns might be specified as cp1251 [03:42:27] (even though it no doubt contains utf-8 data) [03:42:47] so try changing that. does the error message give any more hints? [03:43:49] I believe I checked all the columns... [03:43:50] Revision::fetchFromConds [03:44:05] That's the function where the error is [03:45:17] Can it be vice versa: column has utf8 collation, but the data in it in cp1251? How do I check the data itself? [03:49:11] the data is definitely in utf-8 [03:49:20] mediawiki doesn't support any other encodings :D [03:50:49] MatmaRex_mobile: thanks! [04:45:34] I edited a VectorTemplate.php to add my MainMenu on my wiki (https://wiki.aebian.org/wiki/Landing_Area) but sadly the application always comes first and my MainMenu gets overlayed... Any way to solve this? I tried to place the code on several lines but none of them was able to work : [04:46:32] are the diffusion links in gerrit meant to work? [04:47:40] seems like they are all 404s except for merged revisions [04:48:46] TimStarling: there's a task about it [04:49:12] Aebian: Set a margin-top on the body and then the same negative margin-top on the navbar-wrapper. [04:52:39] You will have to do a few other positional tweaks here and there. [04:52:42] TimStarling: or maybe there isn't. i only found https://phabricator.wikimedia.org/T89940 . i think it's a known problem though (it's knwn to me) [04:53:28] actually, that looks like it. [04:53:37] i think paradox has a few patchsets for it [04:56:48] Trela: hmm okay I will try [04:57:57] Aebian: I have done it before, but I ended up creating a new sub-skin of Vector that only overrides the VectorTemplate class. [04:59:54] Trela: hmm well I just want my Mainmene above all but still have the default Vector layout. My loading bar is on top but thats because I said position fixed and top [05:00:35] so I tought maybe there is a file where I can just place the html code and it gets placed before the actual media wiki content [05:01:24] You will have to write an extension and hook into a few spots to do that. [05:01:35] *skin extension(in the skins folder) [05:02:24] hmm okay my knowledge of php isn't that much skilled but I'm sure there are some docs out there about that. I will search for, thanks [05:03:44] Trela: https://www.mediawiki.org/wiki/Category:Skin_extensions a lot of them :D Or should I write my own? [05:04:40] !skinning [05:04:40] From scratch: https://www.mediawiki.org/wiki/Manual:Skinning/Tutorial / Based on another skin: http://blog.redwerks.org/2012/02/28/mediawiki-subskin-tutorial/ / See also !skins for general help and list of available skins [05:05:23] that "skin extensions" category is actually yet another thing, by the looks of it. [05:05:25] !skins [05:05:25] General skin help: http://www.mediawiki.org/wiki/Manual:Skins / List of available skins: https://www.mediawiki.org/wiki/Category:All_skins / Creating a new skin: see !skinning [05:05:51] but MediaWiki does use a very similar mechanism to install a skin and an extension. [05:06:19] MatmaRex_mobile: ah the second Link from your first !action looks promising, thanks [05:06:34] The code to do it is reasonably simple and making a sub-skin of Vector is the best way to go at it. I would offer some code examples, but unfortunately I am not at work right now so I can not access my Mediawiki repository. [05:07:42] well thanks anyway for your help I will try the stuff when I'm back at the pc [06:23:14] Hello [06:23:55] I downloaded mediawiki..extracted it..and tried accesing https:///mediawiki/config..but it just shows me file content and not Installation setup [06:24:01] Any idea what could be the issue [06:24:15] Do I need to make any http changes [06:24:19] Please suggest [06:25:26] I tried acessing http://ipaddress/csewiki/config/Installer.php [06:25:37] but it just shows file content [06:27:29] How does the save page button functions, that appears at the end of any form, we have created to save any information? [06:27:48] Can we make any amends in the functioning of that button? [06:28:10] which all files monitor it's functioning. [06:28:12] ? [06:48:54] i'm interested in getting the number of results a particular search returns on wikipedia, for which I would need to scrape the website. Is it alright if I do this while ensuring that I have 1 request/second? [06:50:54] as mentioned here(https://en.wikipedia.org/wiki/Wikipedia:Database_download#Why_not_just_retrieve_data_from_wikipedia.org_at_runtime.3F), I dont require the content in the articles, only the number of search results? [08:35:58] How does the save page button functions, that appears at the end of any form, we have created to save any information? Can we make any amends in the functioning of that button? which all files monitor it's functioning. [10:59:26] how does a save page button functions, which appears at the end of each page or form, while editing aor adding them to mediawiki? [11:00:02] what all files have it's functionality written in? [11:03:17] Ash__: many. you could try starting in EditPage.php [11:03:54] that generates the actual form and the buttons, and accepts form submissions to save pages. but there's a lot that happens afterwards [11:19:41] MatmaRex: Exactly, a lot happens afterwards. Can I chnge or add on to the functions performed by clicking the save page button? that's why I wanted to understand it's workflow completely.. [11:21:15] Ash__: there's a lot of hooks you could add handlers for. depending on what you need. if you need a generic "a page was saved" handler, i think that's the ArticleSaveComplete hook or something like that [11:21:17] !hooks [11:21:17] Hooks allow you to run functions at various points in the main MediaWiki code. For more information about using hooks in MediaWiki, see . [11:24:03] thanks @MatmaRex and @wm-bot... should I try to understand the functionality by connecting all the pages involved on clicking save page button using "Firebug" or inspect in chrome, coz th php files seems to complex? [11:24:04] Hey Ash__, you are welcome! [11:26:40] @MatmaRex: also, i have got a form with many tabs on it, i want to have a button "next" which saves the content of the current tab while switching to the next tab while editing the form. Do you have any idea how that can be done? [11:27:42] Ash__: i don't think inspecting would help much. i wouldn't try to understand it all, really (i don't myself), just use the hooks [11:28:41] Ash__: hmm [11:28:41] @MatmaRex: thanks, i was trying to understand, each files includes so many files, it's just too complex [11:29:22] Ash__: hmm, i'd try hooking to this: https://www.mediawiki.org/wiki/Manual:Hooks/EditPageBeforeEditButtons to add your own button to the form [11:30:51] MatmaRex: i will check hooks surely, i actually want to jump to page which says " the page was saved successfully" rather than jumping to the page just created, oon clicking the "Save page" button. Will hooks help me there? [11:31:27] Ash__: and probably https://www.mediawiki.org/wiki/Manual:Hooks/PageContentSaveComplete and redirect the user to wherever after the page is saved. not sure if there's a better hook [11:33:04] as long as you use 'wpSave' for your button's name, the standard save should be triggered [11:33:27] and you should be able to detect your button versus the standard "Save" by its value, which is submitted with the form [11:33:45] MatmaRex: thanks a ton... just can "the switchng tabs while saving data" be used while switching to new tabs? [11:34:04] oh okay, i will try that [11:35:09] i'm not really sure what you mean by "switching tabs" [11:36:26] MatmaRex: i created a form and used the HeaderTabs extension to divide the form into multiple forms, now the "save" button at the end saves the whole data. [11:37:07] woot :o [11:37:10] I want to have a button, which on clicking saves the data of the currrent tab open, and then navigates to the next tab of the form [11:37:24] i don't think i ever worked with that, sorry :/ [11:37:35] *divide the tab into multiple tabs [11:37:47] *form into multiple tabs [11:38:07] No problem, thanks for the help MatmaRex [11:40:24] MatmaRex: what do you mean by a handler ini hooks? [11:40:58] hmm? [11:42:20] handler you were talking about (hooks to add handlers) [11:43:04] Ash__: well, if you look at a documentation page like https://www.mediawiki.org/wiki/Manual:Hooks/EditPageBeforeEditButtons , there are code snippets you can use; i basically meant just that [11:43:42] MediaWiki hooks allow you to define your own function(s) that in executed in a specific place in MediaWiki code [11:43:47] allowing you to modify its behavior [11:53:36] MatmaRex: oh okay... i will check the thread [11:55:29] will editPage.php help in any way, or I should skip reading it? [11:55:47] @MatmaRex [11:56:56] Ash__: welllll… if you look at the top of that file [11:57:07] "Surgeon General's Warning: prolonged exposure to this class is known to cause headaches, which may be fatal." [11:57:22] so i'd recommend not reading into EditPage too much, unless you really have to. it's a mess. :P [12:01:59] MatmaRex: Lol, thanks for the warning... so I think trying to read or understand any file in the codebase of mediawiki is not a good option right? [12:02:47] it's not all that bad. EditPage is probably the gnarliest piece though :/ [12:04:07] okay, thanks [12:04:16] :) [13:10:56] hi for all \o/ [13:12:14] i need help to solve one problem after upgrade mariadb (mysql) version. My charset on edited pages is broken. Only on edit page and save. Old pages not broken. [13:12:29] default is latin1 or utf-8? [13:13:32] http://pastebin.area31.net.br/6b5nK23g [13:13:53] only broken mediawiki instalations on this server. Joomla and drupal not broke. [15:23:30] Trela: I will try the blog article now (https://blog.redwerks.org/2012/02/28/mediawiki-subskin-tutorial/) lets see what I can archieve :D [15:24:34] ama [15:24:42] ups wrong query [15:25:24] hello [15:25:49] !list [15:25:49] mediawiki-l and wikitech-l are the primary mailing lists for MediaWiki-related issues. See http://lists.wikimedia.org/ for details. [15:26:08] je nue suis pas charlie [16:20:46] I get a 500 when I implement my SKin into the LocalSettings.php why? wfLoadSkin('AebianTheme'); nginx ertror log is not telling something =/ [16:21:40] !debug [16:21:40] 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 [16:21:47] Though, if it's 500... [16:22:47] with 5xx, the webserver is unlikely to have any useful information to give you [16:24:22] well its weird that its only present when I add the line to the LocalSettings.php [16:25:05] It's not weird [16:25:09] It's a narrowed debugging criteria [16:25:11] Sounds like you've done something wrong then [16:25:21] my guess is that your theme is making php too slow to respond [16:25:28] er [16:25:50] it's messing something up with php at least [16:26:32] then it would be a 502 wouldn't it? Well my Theme depends on vector so hmm [16:26:50] Have you renamed all the classes correctly etc? [16:30:44] https://img.aebian.org/Screenshot%20from%202016-01-15%2011:28:27.png & https://img.aebian.org/Screenshot%20from%202016-01-15%2011:28:41.png [16:30:51] Short Version: YES I have [16:33:20] I wouldn't suggest requiring vector like that tbh [16:34:14] hi [16:34:23] i need help to solve problem in charset [16:34:39] My charset on edited pages is broken. Only on edit page and save. Old pages not broken. [16:36:04] $wgDBmysql5 = true; not solve my problem :( [16:36:41] https://www.area31.net.br/wiki/Test [16:37:56] hello, its me [16:38:23] you can't install an extension until and unless you have installed mediawiki, right? [16:38:51] No [16:39:48] i need to install mediawiki first? [16:43:18] If you've got an extension in the extensions directory, you can enable it from the web installer. [17:35:03] andre__: yesterday I was investigating a situation involving licensing templates [17:35:24] my basic question is: When setting up a fresh install of MediaWiki; or upgrading a previous installation; is there anything to do with regard to the licensing templates or interface messages so that Special:Upload "just works"? [17:35:54] After investigation into the docs etc, I've put together my notes at https://freephile.org/wiki/Licensing [17:36:48] If I attempt to copy the {{self}} template from mw.org, it seems that I also at least need to copy the various license templates. [17:37:42] Is there a recommended way for site administrators to setup licenses for a new wiki? [17:38:40] This is reminiscent of the 'help' namespace being empty with a new wiki. [18:00:28] freephile: use special export to export old pages (including templates), then import them on new install (possibly using a maintenance script before you even start using the wiki) [18:02:12] PuppyKun: maintenance script to do what? [18:02:39] Import an xml dump of the relevant pages. That way pages related to the installation aren't contributed to a user [18:02:50] freephile: but special:import would work too [18:04:36] I upgraded my wiki, and the machinery behind the the licenses used in Special:Upload end up referring to templates that are not present in my wiki. Trying to get all those templates is quite a challenge. I don't see a simple solution, or any documented solution really, for setting up a wiki's licensing scheme [18:06:29] The best I can come up with is to export all [[Category:License templates]] from wikipedia.org and import (since I already have Scribunto etc. setup) [18:10:53] freephile: probably what I would do. At least they're categorized (makes exporting a bunch easier) [18:19:46] The website encountered an error while retrieving https://wiki.aebian.org/. It may be down for maintenance or configured incorrectly. [18:19:49] hmm [18:19:59] !debug [18:19:59] 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 [18:20:30] it's just a blank page for me [18:20:33] !blank [18:20:33] A blank page or HTTP 500 error usually indicates a fatal PHP error. For information on debugging (including viewing errors), see . [18:21:41] Vulpix: oh yeah the white-screen-of--death well I will try to debug it. But I know that its caused by my theme somehow [18:22:17] because I only get the screen when I tell mediawiki to implement my theme via LocalSettings.php [18:24:41] https://gist.github.com/Aebian/c976056c3ce77b2a850e thats my theme's code [18:25:58] look at the error log of the server to see where it bombs out [18:27:32] nginx do not tell anything but I will check php [18:28:15] i want to create a wiki that has multiple subdomains but still able to use a single user registration and password for all the subdomain wikis. how do i do this? [18:29:03] gagalicious: https://www.mediawiki.org/wiki/Manual:Shared_database#The_simplest_setup:_A_shared_user_table [18:29:47] Vulpix: how do i make all my wikis to sit on different servers? [18:29:56] nope php is not telling anything. But I'm sure I added the line for debugging... [18:31:03] gagalicious: do you really want that? well, that setup probably won't work with the shared database [18:31:32] Vulpix: yes i do really want that [18:32:49] gagalicious: https://www.mediawiki.org/wiki/Extension:CentralAuth may be what you want in this scenario, although I have no experience on it [18:34:17] Aebian: if there's a syntax error in any of the php files, or something that triggers the error too early, adding debug options in php files won't work, you'll need to set up display of errors in php.ini or set an error log in php.ini [18:39:01] Vulpix: well I meant a line in the php.ini but I will check now if there is rly one :D need to get that stuff fixed lol, but thanks for your help so far [18:42:46] Does "uniform server" even exist still https://www.mediawiki.org/wiki/Manual:Installation_on_Uniform_Server_(Windows) [18:44:59] how do i scale mediawiki for 1 billion articles? [18:45:55] where can i get paid mediawiki templates/skins from? the default is too ugly [18:47:21] Why would paid be any better? [18:48:38] Vulpix: hmm well I added error_reporting = E_ALL [18:48:40] display_errors = On [18:48:49] but no logs are showing something [18:48:51] thats weird [18:49:44] Reedy: it needs to be. for me to buy [18:50:08] But just because something is paid, doesn't mean it's going to be any better [18:50:13] And which default skin? [18:50:18] how do i scale mediawiki for 1 billion articles? [18:50:38] where can i get seriously nice looking skin for mediawiki? [18:50:39] I personally find free desktop environments like KDE look better than windows, and I don't have to pay for them [18:50:56] Nice is perceptive [18:50:57] hmm... gnome is better. [18:51:00] stable [18:51:07] Storing 1 billion articles isn't so much of an issue [18:51:13] It's letting people view themA [18:51:21] And how many people would be viewing them [18:51:57] how do i scale mediawiki for 1 billion articles? and getting a nice looking theme so people will look at it without slowing down the server and crashing? [18:52:24] You'll need more than 1 server [18:52:31] As I sai [18:52:45] scaling for 1 billion articles is vague [18:53:09] you need to scale for pageviews, not articles [18:53:38] to be fair, for pageviews and edits [18:53:40] cinnamon :3 [18:53:42] is it possible to break down the main db to multiple dbs? [18:54:02] What do you mean? [18:54:08] You'd have masters and slaves [18:54:24] Rather than splitting tables out [18:54:49] !performance [18:54:50] [18:56:22] i prefer splitting db or splitting tables. is that possible? [18:56:52] Are you having more than 1 wiki? [18:57:10] yes more than 1 wiki but for 1 wiki alone, i want to split tables or split db [18:57:23] Five minutes of MediaWiki performance tuning is a joke. someone should ban that article [18:58:12] no servers to split? [18:58:14] For 1 wiki alone, no you can't [18:58:33] yes i can. someone done it before in here? split tables / split db [18:58:42] MW doesn't support it [18:58:43] some extensions allow you to move their database tables elsewhere [18:58:49] You have multiple servers [18:58:52] They all have the same data [18:58:56] You setup replication [18:59:00] You make reads against some [18:59:04] You write to one specifically [18:59:09] Then replication propagates it out [18:59:15] You're saying you can. Yet, you're asking how to do it [18:59:16] what extension where? multiple servers? yes i know which one? no no... i dont want write to one. i want write to many [18:59:28] That suggests you don't know how to [18:59:32] i can. but i want to know if the solution exist before i write it myself [18:59:47] Good luck with that [19:00:16] maybe if you can put the MediaWiki database on apache cassandra... [19:02:09] cant believe after so many years, no one actually write the extension? [19:02:15] i guess i just have to do it myself. [19:02:26] Why would you write an extension for it? [19:02:30] there is support for splitting tables via externalstore, but we are also working on using cassandra [19:02:38] Probably no one has written it because ou dont't need it [19:02:50] gwicke: good to know :) [19:02:52] this is limited to the text table, though [19:02:53] gwicke: externalstore <- where is this? [19:03:04] lol. [19:03:26] https://www.mediawiki.org/wiki/Manual:External_Storage [19:06:08] hey Vulpix it works now (with the error log) https://wiki.aebian.org/ :D [19:07:22] i'm actually looking for this : https://www.mediawiki.org/wiki/Manual:$wgLBFactoryConf [19:07:35] Looks like you found it [19:07:39] is this even maintainable? https://noc.wikimedia.org/conf/highlight.php?file=db-eqiad.php [19:08:05] It's what Wikipedia et al are using right now [19:09:48] Aebian: you should use require_once to include your skin (if this still works on recent MW versions) or convert that skin to the new skin registration system https://www.mediawiki.org/wiki/Manual:Extension_registration#See_also [19:09:55] hmm... too complicated. doesnt look maintainable to me. [19:10:09] (discard the "see also" anchor) [19:12:04] action=login (https://commons.wikimedia.org/w/api.php?action=help&modules=login) will be removed from api soon? deprecated? [19:12:31] ? [19:13:41] ""You shouldn't notice any changes due to SessionManager, but do make sure [19:13:41] your code is handling cookies normally instead of using the deprecated [19:13:41] return values from action=login to construct cookies manually.[1]"" [19:14:17] does anyone know what is vslow mean in mediawiki load tables? [19:16:19] Reedy: i don't get what the change is changing at all. [19:17:09] Steinsplitter: Nothing external really. It's under the hood stuff AFAIK [19:17:40] ah, okay :). ^^thx [19:21:07] Vulpix: my knowledge about mediawiki themes is pretty low. If I use the require thingy I get: https://wiki.aebian.org/wiki/Landing_Area [19:22:15] Steinsplitter: the action=login thing was an earlier change, there was a separate announcement [19:22:40] ah, cool :) [19:27:35] legoktm: I'm looking for a way to check my extension.json schema. It's tripping up some code. [19:27:45] any schema validators [19:27:54] * hexmode searches some more [19:29:13] hexmode: jenkins does it.. [19:32:10] Reedy: yeah, but this is for existing code that has already passed through jenkins [19:32:14] https://github.com/wikimedia/mediawiki/blob/master/docs/extension.schema.json [19:32:42] I guess with something liek http://jsonschemalint.com/draft4/ [19:33:56] oh, I didn't look closely enough at that -- didn't see the first box was for the schema [19:33:58] thanks! [19:34:14] there's probably a cli way to do it [19:34:27] using node or some such [19:34:32] probably, but all I found was a java tool :P [19:35:32] hexmode: Upload a bad patch and see what in jenkins respond ;) [19:39:20] Reedy: I fixed my current problem by casting $val to array here: (1s) [19:42:10] https://phabricator.wikimedia.org/diffusion/MW/browse/master/includes/registration/ExtensionProcessor.php;e024b4e93cbfb0f78e88ae9441d58e68dbfb27a9$176 [19:43:00] I should probably file a bug... [19:45:54] well, yeah, the newer version of ExtensionProcessor.php throws an exception [19:46:05] let me see what happens with the exception [19:46:14] [19:50:00] where can i get a great skin for mediawiki [19:51:47] gagalicious: define great [19:52:11] there isn't (afaik) a site that shows you skins like wp does [19:52:12] such a subjective term [19:52:16] www.scholarpedia.org/article/Main_Page looks much better [19:52:46] looks like Vector with a few CSS tweaks [19:53:41] anything i can buy online? [19:53:43] where to buy? [19:54:10] there's no MediaWiki store AFAK [19:54:15] *AFAIK [19:54:27] gagalicious: we're working on a store in mwstake, though :) [19:55:20] .... where do i get mediawiki skins again? [19:55:22] there's https://www.mediawiki.org/wiki/Professional_development_and_consulting though, hexmode is one of them :) [19:55:40] I don't do skins, but I could copy the CSS ;) [19:56:01] gagalicious: you'd have to get a designer familar with mw [19:56:11] we can name some people if you're interested [19:56:20] er... maybe only one or two [19:57:03] gagalicious: see http://www.scholarpedia.org/w/skins/vector/local-screen.css [19:57:12] looks like the designer is named there. [19:57:37] does that mean i just copy and paste the css and i will get the same effect? [19:58:15] gagalicious: you could try, but I doubt it would work [19:59:30] paste to [[MediaWiki:Common.css]] on your site to try, but I'd contact to Claudiu named in the css header to get permission, first. [20:22:02] is there a way i can force mediawiki to be case sensitive to it's article? lower and upper cases are different [20:23:10] yes [20:23:28] only the first letter of article title is case-insensitive, by the way [20:23:54] https://www.mediawiki.org/wiki/Manual:$wgCapitalLinks [20:25:47] MatmaRex: I need some help regarding the BounceHandler extension. I'm getting submitted: failure in the JSON Response. Please help me? [20:27:57] i know nothing about that extension :( [20:30:42] MatmaRex: :( [20:32:44] tonythomas, ^ [20:36:57] Krenair: I'm in the same timezone as tonythomas. It's 2:06 AM so he won't be there I guess [22:38:18] Ugh. Is the installer currently broken? It says: "Access denied for user 'wikiuser'@'localhost' to database 'my_wiki' (localhost))" [22:38:47] But that's nut the user name I specified, and the database name is also not correct. And I did supply a password. [22:38:51] So, that gives? [22:38:56] sounds like it [22:39:05] I found the DB stuff... icky the last time I used teh installer [22:39:35] *sigh* [22:39:46] so, how do install MW from scratch? [22:39:58] there's a CLI installer now, right? i have never tried it... [22:40:02] Yeah, there is [22:40:13] If the stuff is coded correctly.. In theory, that should be broken too [22:40:17] are you using stable for the install? [22:40:41] no, master [22:40:55] Reedy: heh ;) [22:41:09] DanielK_WMDE: Other option [22:41:13] DanielK_WMDE: Fix the bug, then install mediawiki [22:41:14] xD [22:43:19] Reedy: CLI worked. I guess because the issue is with passing values for the different form fields via POST and through the session [22:43:36] when i give the info as command line args, the issue is gone [22:43:46] Well, phile a bug at least [23:26:57] any idea why https://upload.wikimedia.org/wikipedia/commons/thumb/9/9a/Cholesterol.svg/200px-Cholesterol.svg.png has an incorrect content-type?