[12:18:28] hello, i just made an mediawiki, coupled with a ddns adres ( like example.ddns.net) but when i try to reach the adres with: example.ddns.net/mediawiki, het translate the adress to example.ddns.net/mediawiki/example.ddns.net/mediawiki/index.php/Main_Page, I don't know what to do for this issue, can someone help me? [15:30:50] Hello. Has anyone successfully installed and configured extension:ContributionTracking? After install, and update.php I receive Invalid form submission on Special:ContributionTracking and internal error on Special:ContributionTrackingTester [15:38:29] guest00: I'm not sure it is very much use to you as it's designed specifically for WMF usages [15:40:37] @ Reedy: I wanted to implement a Donation interface and those are only extensions I found. [15:45:13] Hi, by default the MediaWiki software uses Alt+Shift+accesskey, now I am trying to create a Js script and would like to use other function keys (for instance Ctrl+Shift, etc.). Is this possible? [16:31:55] quit [19:03:02] Does anyone here have mediawiki set up with centos + nginx ? [19:06:10] bkeys: aye [19:06:35] bkeys: but only nginx is installed through package, MediaWiki isn't [19:06:53] Yes I know this [19:06:58] I cannot get my server block to work [19:07:10] If you visit orcadia.bkeys.org you get a connection refused error [19:07:12] could you copy paste it somewhere? I'll have a look [19:07:17] Doing that now [19:08:13] https://paste.fedoraproject.org/paste/3rWeBz4u6ygoCPpIp0IzuF5M1UNdIGYhyRLivL9gydE= [19:08:20] It is based on this [19:08:22] https://www.mediawiki.org/wiki/Manual:Short_URL/Page_title_-_nginx,_Root_Access,_PHP_as_a_CGI_module [19:08:28] * Dereckson looks [19:09:04] is the server actually running? connection refused means firewall rejecting connections, nothing listening on the other side (although this usually causes a connect timeout) or server crash [19:09:31] you can simplify that a little bit with try_files $uri $uri/ @fpm location @fpm { the cotnent of your php block } [19:09:48] O.o [19:10:14] Vulpix: Well there is bkeys.org and both of those run on the same server [19:10:15] oh oh oh oh [19:10:23] you've an infinite loop actually [19:10:29] Where? [19:10:41] @rewrite to php block, php block to @rewrite [19:10:53] Could you do a paste? [19:11:23] bkeys: by the way, personally, I use this: https://www.dereckson.be/blog/2013/10/24/mediawiki-nginx-configuration-file/ [19:12:13] thumbnails handling could be simplify with another try_files, but it works fine [19:12:16] This looks like it is overly complex for what I am trying to do [19:15:19] Dereckson: What is it that I do with the php rewrite? [20:06:30] Hello? [20:08:03] hey [20:09:03] https://paste.fedoraproject.org/paste/3rWeBz4u6ygoCPpIp0IzuF5M1UNdIGYhyRLivL9gydE= [20:09:11] Do you know what is wrong with my server block for mediawiki? [20:50:38] Hello everyone. I need help with modifying the Tools menu in the left-hand sidebar. I am following the instructions found at https://www.mediawiki.org/wiki/Manual:Interface/Sidebar, but I believe the documentation may be out of date... [20:51:49] I have added the item to the Tools menu, but want to restrict it to logged in users. If you go to the link above, and then search for 'restricting modifications to specific usergroups', it will take you to the code I am trying to implement. [20:52:59] I did figure out that isArray needs to be changed to Array,isArray, which got rid one an error message. But I am now getting an error that wgUserGroups does not exist. [20:53:35] oops... *isArray needs to be changed to Array.isArray [21:01:43] hi AmandaNP [21:01:45] hi Amie :) [21:02:26] Amie: yeah, that looks old. instead of wgUserGroups, do mw.config.get('wgUserGroups') [21:02:54] Great, I'll give that a shot. Thanks you. [21:03:01] (the config options are no longer exported to global variables by default. there's some hidden config option somewhere for it) [21:03:27] (using mw.config instead will work for every old global variable starting with 'wg' in JS code) [21:08:20] MatnaRex, I must not be doing this right, I receive the following error message, "JavaScript parse error: Parse error: Missing ; before statement in file 'MediaWiki:Common.js' on line 340" [21:08:57] If I understand your instructions correctly, I put mw.config.get('wgUserGroups'); before the if-statement, and leave everything else the same. Is that correct? [21:09:55] Amie: i meant changing the first two lines like this: [21:10:14] if ( Array.isArray( mw.config.get('wgUserGroups') ) ) { [21:10:25] if ( mw.config.get('wgUserGroups').Contains( 'bureaucrat' ) ) { [21:10:47] (well, this is actually a bit weird, now that i think about it, but it'll work) [21:13:05] After making that change, there are too many errors to post here. [21:13:32] summary: mw.config.get(...).Contains is not a function TypeError: mw.config.get(...).Contains is not a function [21:15:39] Amie: you'd have to copy also the Contains function, defined below [21:15:41] but, eh [21:15:44] this is weird [21:15:49] forget it all, let's rewrite it [21:16:30] k [21:16:39] if ( mw.config.get('wgUserGroups') && mw.config.get('wgUserGroups').indexOf( 'bureaucrat' ) !== -1 ) { jQuery( CustomizeModificationsOfSidebar ); } [21:19:20] I'll give it a shot. [21:21:13] Whoo Hoo!! It worked. Thank you very much! [21:21:57] Amie: that entire section seems to be like ten years old, and a lot more complicated than it needs to be today, eh [21:22:04] glad it works :) [21:23:24] I am not proficient with Javascript, so I have no way to know what is good or bad. I am working on a wiki that has 80,000 pages though. I hope this doesn't slow down every page load. [21:24:02] (i tweaked it a bit, i don't have time to rewrite it all) [21:24:39] Amie: no, it shouldn't be problematic, but the JavaScript additions might "flicker" into visibility with a little delay [21:25:34] Okay, I'll watch for that. If it is a problem, upper management may have to decide to live without the addition to the Tools menu. [21:25:48] :) [21:26:04] you could do that from PHP code too, i guess. no idea how you feel about that. :) [21:27:46] I love php, the only issues is modifying code that may be rewritten with an upgrade. [21:28:58] https://www.mediawiki.org/wiki/Manual:Hooks/BaseTemplateToolbox [21:30:12] nice, I'll work on that. [21:33:08] Thanks for your help MatmaRex! [21:53:17] Does anyone know how to set up Mediawiki on nginx? :c [21:56:57] no [22:00:57] Sad face [22:01:05] 330 people and no nginx users [22:10:42] Dereckson: ping [22:11:35] bkeys: have you tried https://www.mediawiki.org/wiki/Manual:Short_URL/Page_title_-_nginx,_Root_Access,_PHP_as_a_CGI_module [22:11:51] bd808: Yes [22:12:40] https://paste.fedoraproject.org/paste/cBe4F~p5YqCVB2V5OwBIgl5M1UNdIGYhyRLivL9gydE= [22:12:48] This is my current nginx config; iti s based on the link you sent [22:13:00] I dunno what is going on [22:13:15] Other than the extra local/ on my root [22:13:44] Got rid of it and I still get a connection refused error [22:14:01] bkeys: pong [22:14:15] Dereckson: As you can see I am still getting rekt by nginx and mediawiki [22:14:36] if you are getting connection refused then nginx isn't starting at all *or* you have another firewall or something that needs to be open for port 80 [22:14:49] No cause the wiki is located on orcadia.bkeys.org [22:14:57] But my normal website of bkeys.org is up [22:15:05] They are both being ran on the same nginx instance [22:15:35] There is also themusicinnoise.net which is my friends website; it runs some PHP as well and is on the same nginx instance [22:15:55] So I am fairly certain the web server is working fine; systemctl confirms this [22:16:07] /home/dereckson ] telnet orcadia.bkeys.org 80 [22:16:10] telnet: connect to address 209.239.114.150: Connection refused [22:16:36] Yes; the browser reports the same issue [22:16:49] it's a network issue here, not a nginx one [22:16:49] However you can ping the server; or visit the websites I mentioned that are on the same nginx instance [22:16:53] Hmm [22:17:05] themusicinnoise.net is 64.94.238.142 [22:17:10] Well I can take down the entire firewall and the wiki instance still hides [22:17:12] that's not the same ip [22:17:16] I see; so he has not moved it yet [22:17:25] None the less; bkeys.org is on this server and is working [22:20:33] I ran [22:20:34] sudo systemctl status rh-php70-php-fpm [22:20:36] And PHP is indeed running [22:24:54] bkeys.org is 64.94.238.142 too [22:25:10] so if you server is 64.94.238.142, your issue with orcadia.bkeys.org is at DNS level [22:26:02] you have a record orcadia.bkeys.org A 209.239.114.150 [22:26:35] Dereckson: You are right [22:26:55] Let me give my DNS a minute to cycle [22:28:33] Yay orcadia.bkeys.org is now up [22:28:47] I confirm I've now an orcadia.bkeys.org A 64.94.238.142 [22:29:32] http://orcadia.bkeys.org/mw-config/index.php [22:30:12] https://stackoverflow.com/questions/42105209/mediawiki-dbloadbalancer-error-while-setting-up-wiki [22:30:13] Hmm [22:34:11] Dereckson: You got any clue? [22:43:35] bkeys: did you do a "composer update" by the way? [22:43:49] Composer update? [22:43:56] What is that? [22:46:41] bkeys: Composer is a package manager for PHP dependencies [22:46:48] Why not use yum? [22:47:17] They solve slighly different problems: yum works at OS level, composer at application level [22:47:45] composer focus to provide everything the php app needs, regardless of the oS [22:48:28] Ehh I would rather use the system package manager where possible [22:48:32] I have set it up before without composer [22:49:02] So, you can install Composer through dnf/yum, then go to your mediawiki folder, and try "composer update", that could solve the issue, as it seems a component is missing [22:49:25] You'll find more information here: https://www.mediawiki.org/wiki/Composer [22:49:29] it's not really possible to use a system package manager for this. it wouldn't work if you were running two applications, each using a different incompatible version of some library. [22:49:57] (plus, if you're running on a shared hosting, you can't use the system package manager at all) [22:50:47] MatmaRex: well, pkgsrc works well to install several versions of a software [22:51:10] Running composer update now [22:51:19] so I'd use "convenient" "easy to use" "not hellish" [22:51:22] instead of possible [22:51:47] ok. i don't really want to discuss package managers right now :) [22:52:06] I ran composer update on the directory [22:52:09] THen restarted PHP [22:52:11] I still get the error [22:52:18] http://orcadia.bkeys.org/mw-config/index.php [22:53:11] MatmaRex: my first complex PHP installation for several sites, I tried to set in php.ini a same include folder for libraries, it was cumbersome to manage "what site requires OpenID?" "what site wants this version of SOAP? and this one?" [22:53:26] bkeys: how did you install mediawiki ? [22:53:35] From the website [22:53:46] I got the tarball and then extracted it in /var/www/orcadia.bkeys.org/ [22:53:52] ok [22:54:15] someone had this issue before: https://www.mediawiki.org/wiki/Topic:Tlunnqovj0wesefs [22:54:37] https://phabricator.wikimedia.org/T157890 [23:39:07] does anyone know if spammers use the API or just visit the website using whatever crappy bot they have? [23:39:50] i was more thinking about the spam bot types and not the human ones [23:40:36] look it up in logs? [23:42:17] how can I tell? just based on the user agent? [23:44:30] or by comparing the timestamps of the edits to the timestamps in webserver access logs [23:45:08] i'm sorry, what's the implication there? wouldn't the edit time stamps match the access log timestamps? [23:47:21] i mean, you want to find out if spambots are using api.php or index.php? so, take the timestamps of some of their edits, and look at the webserver access logs near the same timestamp, and see if index.php or api.php was accessed. [23:48:14] i'm assuming here that your site is small enough that you can actually make sense of the logs "by hand" :) if not, you'd probably need to write some code, i'm afraid [23:48:34] thanks [23:49:03] if i had to guess, i'd guess that they probably use index.php. spambots have existed for much longer than mediawiki's api has :P [23:49:34] how do they know what fields to fill? just randomly tossing things and hoping they stick? [23:49:53] Dereckson, Sorry I had to head home from work [23:50:11] SimpleAntiSpam is in core now, so I'm assuming there is at least some customization for spamming mediawiki