[03:14:25] New patchset: Aude; "(bug 42688) terms search key schema update for sqlite" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/43673 [04:11:28] New review: Aude; "After looking into sqlite a bit more and fixing bug 42688 (I25bb707a), I think this patch alters the..." [mediawiki/extensions/Wikibase] (master); V: 2 C: 1; - https://gerrit.wikimedia.org/r/37485 [04:16:19] New patchset: Aude; "Provide EntityId for getMatchingTermCombination() in TermCacheTest" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/43674 [05:00:36] Change merged: Jeroen De Dauw; [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/43492 [10:26:04] Change on 12meta_wikimedia a page Wikidata was modified, changed by Nemo bis link https://meta.wikimedia.org/w/index.php?diff=5031052 edit summary: [-2] project lists to the bottom, or lead gets a bit too far [11:09:23] New patchset: Aude; "(bug 42688) terms search key schema update for sqlite" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/43673 [11:13:20] hi aude [11:14:52] hi benestar [11:15:12] hey Vogone :) [11:15:27] Vogone: how are you? [11:15:50] fine [11:16:04] hi benestar [11:16:21] aude: I have fixed your comments [11:17:07] aude: $this->getValue(...) should work instead of getValue(...), right? [11:23:16] yes, i think so [11:23:28] did you try it? [11:28:30] aude: just installing xampp [11:29:14] then I will install mediawiki and then Wikibase [13:35:58] Sk1d: hey! done with guwp? [13:36:09] aude: mediawiki is installed :) [13:44:11] kondi: jep [13:45:02] Sk1d: great! Thanks :) [13:54:06] aude: what are the settings of Wikidata? [13:54:14] can I download them? [13:56:48] :/ [13:56:52] Jeblad_WMDE: here? [14:13:43] hi benestar|afk [14:14:08] we have example settings in repo/ExampleSettings.php [15:16:00] aude: I get a strange error [15:16:14] Notice: Use of undefined constant CONTENT_FORMAT_JSON - assumed 'CONTENT_FORMAT_JSON' in C:\xampp\htdocs\mediawiki\w\extensions\Wikibase\lib\WikibaseLib.hooks.php on line 33 [15:16:16] Fatal error: Call to undefined method Title::getContentModel() in C:\xampp\htdocs\mediawiki\w\extensions\Wikibase\repo\Wikibase.hooks.php on line 737 [15:20:27] New patchset: Bene; "(bug 43871 - bug 43872) New Special Pages to edit entities without javascript [DO NOT SUBMIT]" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/43583 [15:24:22] At Langflaten in Sel municipality, in Norway, it was -34° last night. That is pretty cold. [15:25:27] :O [15:25:43] we have -5° [15:25:50] Celsius [15:26:02] Jeblad_WMDE: I tried to set up my local wiki [15:26:03] benestar: check your settings. i think you are missing definition of the constants in local settings [15:26:26] But they aren't defined in the example settings? [15:27:21] you are right, they are defined elsewhere [15:27:33] hm [15:27:41] so which value should CONTENT_FORMAT_JSON get? [15:29:27] aude: and what about the fatal error? [15:29:51] Check if you use the constant in the wrong way [15:30:02] ? [15:30:07] in Wikibase.php, we have [15:30:08] define( 'CONTENT_MODEL_WIKIBASE_PROPERTY', "wikibase-property" ); [15:30:15] they should be there [15:30:21] Also check that you either use the example settings or define them yourself [15:30:34] Just copied the example settings [15:31:03] one thing that appears missing in example settings..... [15:31:09] its easier to include them [15:31:25] $wgContentHandlerUseDB = true; [15:32:43] does not help [15:32:47] New patchset: Aude; "add $wgContentHandlerUseDB = true; to example settings" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/43685 [15:32:53] hmmm [15:34:39] * aude pokes around [15:35:41] aude: I include Diff, DataValues, WikibaseLib, Wikibase [15:35:50] maybe there anything missing [15:36:16] found it [15:36:20] well, .... [15:36:30] in core (includes/Defines.php), it has [15:36:31] define( 'CONTENT_FORMAT_JSON', 'application/json' ); // for future use with the api, and for use by extensions [15:36:51] that's where it is defined so should certainly be there if you have the latest mediawiki core [15:37:03] where did you get your mediawiki from? [15:37:15] Download [15:37:30] the normal way, no git clon [15:37:33] e [15:37:53] ok, then it might not be new enough to have the content handler stuff [15:38:07] you should get the latest version from gerrit / git [15:38:15] https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/core.git;a=summary [15:38:31] ok [15:38:39] so install everything again :/ [15:38:45] * aude sighs [15:39:00] just the mediawiki [15:39:14] Just doing [15:39:17] ok [15:43:21] :/ [15:43:27] it takes too much time [15:44:00] :( [15:44:11] time to get coffee.... [15:44:19] while it's cloning [15:44:30] :) [16:31:56] aude: ready :) [16:38:37] aude: help please :( [16:39:49] or Jeblad_WMDE [16:45:33] Lydia_WMDE: are you here? [16:45:46] benestar: jep [16:45:48] wasup? [16:46:05] I tried to setup Wikibase on my local wiki [16:46:12] ok [16:46:18] had to update MediaWiki but it worked so far [16:46:25] but now I have to update the system [16:46:37] here is the error [16:46:45] A database error has occurred. Did you forget to run maintenance/update.php after upgrading? See: https://www.mediawiki.org/wiki/Manual:Upgrading#Run_the_update_script [16:46:47] Query: SELECT page_id,page_len,page_is_redirect,page_latest,page_content_model FROM `page` WHERE page_namespace = '0' AND page_title = 'Main_Page' LIMIT 1 [16:46:49] Function: LinkCache::addLinkObj [16:46:51] Error: 1054 Unknown column 'page_content_model' in 'field list' (localhost) [16:47:00] Have you run update.php? [16:47:08] I tried via shell [16:47:17] any error? [16:47:27] it gives the same error [16:47:35] Error: 1054 Unknown column 'page_content_model' in 'field list' (localhost) [16:48:02] I looked into the database and the column does not exist there really [16:48:17] Comment out wikibase extensions from your LocalSettings.php and try it again [16:48:52] ok [16:49:16] $wgContentHandlerUseDB defaults to false [16:49:21] I thought it was to true.. [16:49:56] I try to install it again [16:52:57] Reedy: It worked now [16:53:02] good [16:53:05] Now enable the extensions again [16:53:08] and run update.php again [16:53:16] ok [16:53:40] done [16:55:12] Sometimes these things need a little extra coaxing [16:55:30] :) [17:01:16] Reedy: when trying to open the Main Page I get an exception [17:02:08] Which is? [17:02:19] MWContentSerializationException [17:02:34] perhaps because I have set the main namespace for items [17:02:37] like in wikidata [17:04:12] Yeah, you need to move the mainpage and update MediaWiki:mainpage [17:04:29] where is MediaWiki:mainpage? [17:05:17] Literally as is [17:05:17] https://www.wikidata.org/wiki/MediaWiki:Mainpage [17:05:30] Change it to the wikis project namespace [17:13:13] back [17:13:42] benestar: temporarily disable wikibase extension and delete or move the main page [17:13:58] aude: done already [17:14:01] ok [17:14:25] argh [17:14:30] sounds like you have things working, right? [17:14:33] aude: I forgot my password [17:14:42] or it is reset by the new installation [17:14:49] php maintenance/changePassword.php i think [17:15:56] aude: thanks [17:16:16] or you can use maintenance/createAndPromote.php to make new users (and optionally make them admins or bureaucrats) [17:18:05] aude: I do not have any rights [17:18:09] how to do this? [17:20:45] benestar: i'd use the createAndPromote script [17:21:29] not aware of a script just to promote a user, but there might be one [17:21:47] I think it worked [17:22:37] no, it didn't work [17:26:45] hmmm [17:27:04] i installed it again :P [17:28:10] maybe it works now [17:29:54] hope so [17:30:35] otherwise I will delete the database [17:31:11] aude: I will so [17:32:06] * aude thinks the script should work but you'd need use it to create another user and at same time, give it rights (if you want) [17:32:28] but a new database and running install again works too [17:32:38] DROP DATABASE xD [17:33:38] :o [18:30:33] aude: I think it works now [18:33:45] Q2990797 [18:33:55] not gonna take long to do that 1203 [18:34:03] err, 9302 [18:34:06] *9203 [18:36:43] Reedy: I get a database error [18:36:51] when creating an item [18:38:48] ah, had to run update.php again [18:39:17] benestar: it works? [18:39:32] aude: yes :D [18:39:39] even the special pages :) [18:39:40] yay! [18:39:49] :D [18:39:55] thanks a lot for your help [18:40:15] and also to the others ;) [18:40:17] now did you try your patch? [18:40:42] the special pages? [18:40:42] they work [18:40:42] yes [18:40:47] good [18:41:37] jsut have to try to edit without javascript now [18:41:45] ah, yes [18:41:57] aude: Links to pages are already set for all known sites. [18:42:03] i cannot add langlinks [18:42:15] there's a script to fix that [18:42:26] ah, where? [18:42:30] php extensions/Wikibase/lib/populateSitesTable.php (i think) [18:42:59] yes, that's it [18:43:08] with shell agaein? [18:43:10] -e [18:43:11] El búfer está vacío. [18:43:12] yes [18:43:32] * aude kicks the bot [18:44:49] poor isaac [18:44:52] aude: what does this script? [18:45:52] the sites table is used to know about the wikipedias [18:46:10] the script populates the table [18:46:21] ok [18:46:24] gets info from metawiki [18:46:32] site matrix via api [18:46:55] aude: it didn't work :( [18:46:56] mediawiki generally does not populate such tables by default [18:47:02] why not? [18:47:39] don't know [18:47:54] did you get an error? [18:48:19] err [18:48:27] php extensions/Wikibase/lib/maintenance/populateSitesTable.php [18:48:34] set $wgExceptionDetails = true; to show detailed informatoin [18:48:41] do that [18:48:45] in local settings [18:49:20] ah [18:49:47] Got no data from https://meta.wikimedia.org/w/api.php?action=sitematrix&format=json [18:49:53] aude: ^ [18:51:10] try using the option --load-from http://meta.wikimedia.org/w/api.php [18:51:17] that's without the https [18:51:33] it might work [18:52:42] aude: yes, worked [18:52:47] good [18:52:55] it says done [18:53:06] then you should be able to add site links now [18:53:49] aude: yes :DD [18:53:53] yay! [18:56:00] no disable javascript [18:56:11] yes [19:00:33] aude: hmm [19:01:08] aude: when clicking on edit near the description it does not link to Special:SetDescription [19:04:44] it's probably not set yet in the patch, like Special:SetLabel is [19:05:07] it's not magical so you need to do that in the patch [19:06:11] aude: where can I change it? [19:06:38] i'm not sure exactly (without looking at code) but take a look at the ItemView and EntityView classes [19:06:48] ok [19:07:04] they generate the pages, and then if js is enabled, they essential overwrite everything with the js interface [19:32:42] aude: what is SpecialPageFactory? [19:34:25] benestar - I found an error in your bot. Please see http://www.wikidata.org/w/index.php?title=Q2547578&oldid=3438781 [19:34:32] also, hi [19:34:52] Sven_Manguard: I have a look [19:45:41] benestar: did you figure it out yet? [19:46:01] aude: no [19:46:29] it's sort of like a registry of special pages [19:46:33] I added the pages to EntityView.php but nothing went better [19:46:40] allows you to access them, such as [19:46:43] aude: where to register it? [19:46:52] SpecialPageFactory::getPage( 'Watchlist' ) [19:47:11] $specialPage = \SpecialPageFactory::getPage( "SetDescription" ); [19:47:17] seems not to work though [19:47:25] mmm.... let me see [19:48:14] I guess they must be registered anywhere [19:50:30] you added them in Wikibase.php so they should be there [19:51:34] yes [19:55:09] hi, i'm translating the wikibase/repo [19:55:17] can someone explain what this means? [19:55:25] MediaWiki:Wikibase-sitelinks-add [19:55:30] add a link to a site-link [19:55:39] Add a sitelink to a language specific page on the cluster. See also Wikidata's glossary for sitelinks. [19:55:54] "add a link to a site-link" is the actual text to translate [19:56:27] tgr: where is it used? [19:58:00] aude: works now :) [19:58:36] benestar, not sure, i'm using translatewiki [19:58:57] tgr: ph, ok [19:59:01] *a [19:59:26] also, what is cluster? i do not see it mentioned in the glossary [20:00:03] tgr: just look for the message in wikidata [20:00:14] you can use ?uselang=qqx at the end of the url [20:00:20] if I remember right [20:10:57] New patchset: Bene; "(bug 43871 - bug 43872) New Special Pages to edit entities without javascript [DO NOT SUBMIT]" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/43583 [20:11:25] aude: it works now :) [20:18:09] benestar: looks good [21:28:29] aude: why aren't the stylesheets available in my pages? [21:30:09] your CSS? [21:30:51] benestar: the special pages look okay to me [21:31:23] Jasper_Deng, aude there is some css for spcial pages [21:31:32] is there none of the vector styling at all for your pages? [21:31:35] wikibase.special.css [21:31:42] ah, ok [21:31:44] and this file is missing [21:32:00] it isn't included in my file so I probably have to require it [21:32:11] but I don't know how to to it [21:32:50] There's a CSS instruction for this I think [21:33:38] Jasper_Deng: where? [21:33:54] I saw it somewhere but I can't remember [21:34:01] :/ [21:34:08] benestar: they get included in special:createitem [21:34:17] sure it's something simple [21:34:26] yes, I think so too [21:36:23] take a look at the code for Special:CreateItem ( and perhaps it's in Special:CreateEntity) [21:37:14] we can add resource loader modules to special page output [21:37:25] cannot find anything [21:37:42] found [21:37:47] $this->getOutput()->addModuleStyles( array( 'wikibase.special' ) ); [21:38:09] ah, yes [21:38:26] i assume that's missing from the other special pages [21:43:49] New patchset: Bene; "(bug 43871 - bug 43872) New Special Pages to edit entities without javascript [DO NOT SUBMIT]" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/43583 [22:22:58] eh eh.... 3 Millions http://www.wikidata.org/wiki/Q3000000 [22:24:32] awww, it has no interwiki links :( [22:25:38] denny is too quick... [22:27:26] aude: quick, change it for something awesome [22:27:39] it was created by benbot [22:27:57] benebot* [22:31:05] heh