[09:18:54] hi, quick question , I'm trying to get LDAP auth to work on 1.29 (and I do know it's not entirely supported). So far it's not working, but I get not even a single error. Not in Php/Apache and SELINUX is all set. So I figured to add a logfile directive to LocalSettings.php , but it seems that it's not getting written.. Any ideas where else I can have a look? [09:30:00] !debug [09:30:00] For information on debugging (including viewing errors), see https://mediawiki.org/wiki/Manual:How_to_debug . A list of related configuration variables is at https://mediawiki.org/wiki/Manual:Configuration_settings#Debug.2Flogging Also see https://mediawiki.org/wiki/Manual:Errors_and_symptoms [09:30:12] Might have some info on how to make the log file show up [09:30:20] although usually mw log files are less useful than it sounds [09:31:15] but usually, first thing to do is check Special:Version and see if extension is listed there [09:33:01] although it looks like the extension was fixed up for 1.27 (change was merged), so its probably compatible with 1.29 [09:33:46] edi: --^ [09:34:08] bawolff, thanks :) [09:34:18] lol re the mw log files [09:35:11] yeah I saw the feature that's not working had to do w smt like LDAPAuto .. which I don't need so I figured that would be allright [09:35:13] Pretty much the only time they are useful is if you are the developer and your reading the log files for the code you just wrote that has logging statements in it you just wrote [09:36:45] ehe [09:37:49] i'm going to an upgrade from 1.21 to 1.29 which went fine for db, but the extensions 're giving me a hard time :) [09:42:17] plugin is recognized by the on special:version, jej [11:01:01] could the problem be that I'm using php7.1 ? [12:04:15] possibly a dumb question but: if i'm querying commonswiki via SQL, if I have the name of a file (e.g. Example.jpg), how can I find the actual URL of that file? (e.g. https://upload.wikimedia.org/wikipedia/commons/a/a9/Example.jpg ) [12:07:52] oxguy3: Umm, you basically take https://upload.wikimedia.org/wikipedia/commons/ then add first digit of md5( 'Example.jpg' ), then first 2 digits, and then filename [12:08:38] ohhhhh, okay that's easy, thanks bawolff! [12:08:59] its possible to do that all in sql, using things like CONCAT( 'https://upload.wikimedia.org/wikipedia/commons/', SUBSTRING( md5( img_name ), 1, 1 ), .... [12:28:36] awesome, got it working. the precise SQL, for anyone curious, is `CONCAT('https://upload.wikimedia.org/wikipedia/commons/', SUBSTRING(MD5(page_title), 1, 1), '/', SUBSTRING(MD5(page_title), 1, 2), '/', page_title) AS image_url`. thanks again bawolff! [12:39:04] edi: regarding the debug log file, if you are writing it to /tmp (e.g. $wgDebugLogFile= "/tmp/MediaWikiDebug.log";) and are running an OS with systemd and have PrivateTmp enabled for Apache (the default, for example, with RHEL 7), the debug log file will end up in a subdirectory of /tmp (something like /tmp/systemd-private-...apache.../tmp/MediaWikiDebug.log). [12:43:56] CindyCicaleseWMF, thanks for the input [12:44:04] but i figured that already, and it's not there [12:44:06] however [12:44:09] now worries [12:44:25] I was just being stupid, forgot to install the php-ldap ext for php7 [12:44:47] which miracleously fixed me problem ;) [12:44:59] now/no [12:46:15] Ah, makes sense. Excellent! I lost some time one day trying to find a hidden log file that turned up being due to PrivateTmp, and your problem sounded similar. [12:47:15] yeah :) [12:48:07] luckily the boss has no clue of what I'm doing, and thinks i'm an expert LOL [14:38:41] hi [16:02:02] What AMP/LAMP stacks are recommended for MediaWiki use? [16:02:26] I just started reading about Vagrant... [16:04:08] EPiSKiNG-: Development or production use? [16:04:15] both [16:04:23] development until production essentially [16:04:33] then production only, with spin off for development if needed [16:04:34] Last time I checked it was discouraged to use our vagrant install for production. [16:05:50] "Development" in the sense of developing mediawiki and uploading patches to it. That's what the vagrant installation is intended for. It configures a lot of stuff to be convenient for that use-case, which it turn means it's not focused on security (which your production environment should be). [16:07:22] very good [16:07:31] I'll just do it the old fashioned way :) [16:07:50] MySQL or MaraiaDB? [16:08:06] For production use I'd recommend to stick to what wikimedia uses: Debian/Ubuntu with Mariadb, php7.0 [16:08:18] yes, that's a good idea [16:09:10] Apache? [16:09:31] Because as wikimedia uses it, it's the most tested thing. [16:09:37] yes [16:10:01] 2.4 I assume? [16:10:30] Yes. [17:19:27] Good morning. Is there any reason why a user's javscript (in Special:MyPage/common.js and Special:MyPage/vector.js) would not load? $wgAllowUserJS is set to true. [17:22:25] Typos, for example. [17:22:36] What does the web browser's developer tools' console say? [17:39:14] The only thing in the JS is a simple console log to confirm that it's been loaded and that's not even showing [17:39:24] @andre__