[06:49:45] hi, can anyone review this patch? I know Extension:PageViewInfo has no maintainer but this is a minimal patch I can make https://gerrit.wikimedia.org/r/c/mediawiki/extensions/PageViewInfo/+/695669 thanks! [06:50:34] and the patch is tested in a third party wiki and works well, visit https://femiwiki.com/index.php?title=Project:%EB%8C%80%EB%AC%B8&action=info#mw-pvi-month-count to see the working example [06:55:35] * the smallest patch i can make [07:46:15] lens0021: IIRC the intention was that you can redefine the 'PageViewService' service [07:47:30] in the MediaWikiServices hook you can call $services->redefineService('PageViewService', .... ) [07:48:05] ok, that's not the right function [07:48:14] but https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/AbsenteeLandlord/+/refs/heads/master/AbsenteeLandlord.class.php#21 is an example for another service [07:49:01] https://gerrit.wikimedia.org/g/mediawiki/libs/Services/+/9432d29e9c4670970975c1413a8d7735d349ae52/src/ServiceContainer.php#253 oh, redefineService does exist [07:49:22] addServiceManipulator looks more like if you want to wrap the existing service [07:52:37] I am shocked to hear it is possible... I will try it later [07:53:26] Thank you very much. I don't know if I can express my thanks in English. [07:53:47] :))) [07:58:34] * enterprisey applauds legoktm for yet another great answer [10:31:15] Hello. [10:31:31] Is it possible to run maintenance script from the web interface, in a way or another ? [10:32:34] Reventlov: check out these extensions, maybe: https://www.mediawiki.org/wiki/Manual:Maintenance_scripts#No_shell_access [10:33:26] well, oops, it says "You are advised against using this extension on a live site. " on at least one of them [10:33:28] Thanks ! [10:33:59] np, be careful, it seems both are not maintained and could be dangerous :( [10:34:11] just from the comments on it [10:51:20] yeah, saw that [12:31:56] Another small question: can you use the citoid service from wikipedia on another (private) wiki ? [12:32:45] hello. i try https://www.mediawiki.org/wiki/Gerrit/Tutorial/tl;dr and when run git clone ssh://qdinar@gerrit.wikimedia.org:29418/mediawiki/core.git mediawiki i get : [12:32:59] the authenticity of host... cannot .... rsa key fingerprint is .... [12:37:59] qdinar: this is the right fingerprint https://wikitech.wikimedia.org/wiki/Help:SSH_Fingerprints/gerrit.wikimedia.org:29418 [12:38:21] qdinar: the reason is that the key was supposed to change but then the change was reverted [12:38:43] https://wikitech.wikimedia.org/w/index.php?title=Help%3ASSH_Fingerprints%2Fgerrit.wikimedia.org%3A29418&type=revision&diff=1908069&oldid=1872718 [13:02:21] (answering my own question) yes you can use the wikipedia citoid api in your own wiki, it seems, but I didn't succeed yet [13:02:58] (I'm getting this after a request to wikipedia which is successful: https://0x0.st/-9yF.json ) [15:00:25] Hello [15:01:06] I'm trying to create a page ( Module:Citation/CS1/styles.css ) on my wiki but it seems I cannot write anything into the page (I'm getting the editor again and again). No errors in the console or in the logs, any idea what could cause this / how to debug ? [15:06:31] what do you mean you're getting the editor again and again? [15:28:07] Reedy: let me record some video [15:30:14] when you try to save, what happens? [15:33:56] I'm getting back at the editor with what I just pasted, but the page is not saved [15:35:10] https://0x0.st/-9vs.mp4 [15:35:15] here is the behaviour on video [15:36:52] Reventlov: check your browser console and be sure you don't get a redirect (status 301 or 302) when submitting the page [15:39:06] all 200 [15:39:12] https://0x0.st/-9vi.mp4 [15:41:26] Strange. It's like the content is not reaching the server. Have you experienced this problem saving other pages? [15:41:56] no, other pages are ok [15:43:12] Putting some whitespace in the page is ok, and it works [15:43:24] Maybe there's some web application firewall removing the posted content because it incorrectly flags it as malicious. For example, apache mod_security is a source of such problems [15:44:21] Hmmm, changing back the content to "plain text" makes it work [15:44:27] let me paste the css and switching back to css [15:44:53] hmmm >Invalid or unsupported value for property background at line 29 character 14. [15:46:57] removing the background properties makes it work. The background was pointing at //upload.wikimedia.org/wikipedia/commons/6/65/Lock-green.svg [15:47:02] meh [15:47:23] Ahhh, nice. This is the css sanitizer errors not displaying on save, only on preview! saving the page doesn't give any error, but simply doesn't save [15:47:57] I also got caught by this and spent a lot of time debugging the problem [15:48:31] Well thanks [15:48:40] now back at my citoid problem [15:49:16] I'm getting the data from the wikipedia API, but the visual editor says "We couldn't make a citation for you. You can create one manually using the "Manual" tab above." [15:49:37] and this is the response from my own's mediawiki api.php: https://0x0.st/-9v8.json [16:52:36] !cloakme [16:52:44] oop [18:00:23] so did someone in there managed to configure citoid on mediawiki 35 ? If yes, could you share your config ? [18:34:39] Hi there, in Page Forms, how to make the "protection reason" appear on the top of the "edit with form" for any page assigned to a form and whose page using form is protected? [18:45:37] Also, I have a small problem with the visual editors: the cursor is shifted: https://0x0.st/-9wx.mp4 [19:09:36] just went to a reinstall, and I get the same problem @ citoid [19:21:34] It seems I cannot (again) edit Template:Cite web, I get this message: Unexpected property "params.url-status.suggestedvalues". [19:31:53] Maybe it's because current templates of wikipedia en are not compatible with mediawiki 1.35 ? [20:01:47] Calling https://mywiki/api.php?action=templatedata&titles=Template:Cite%20web/doc&format=jsonfm results in some emptydata [20:24:19] Reedy: can you +2 https://gerrit.wikimedia.org/r/c/mediawiki/skins/Vector/+/700629/1 [20:40:20] Well, I guess nobody is using citoid / cite. I updated to 1.36.0 just to see if this was working better, and it is not. [21:22:37] Reedy: seen as you've done these before https://gerrit.wikimedia.org/r/c/mediawiki/core/+/700632 [21:25:00] Hi guys, I have installed mw 1.31 on azure and email notification doesn't work. But it is setup and emails can be send (tested with a script). What could the issue be? Anyone an idea?