[07:23:28] Does anyone knows whether the client-js and client-nojs classes still work? https://www.mediawiki.org/wiki/No-JavaScript_notes [07:23:42] Are they supposed to work? Or are they removed? [07:32:11] My bad, it is not used as I expected. [09:12:05] Hi, I am interested in traffic logs from a mediawiki (e.g. Wikipedia.org). Any suggestions how I could acquire these? [09:36:26] @willem posted in Getting traffic logs from an existing mediawiki API (e.g. wikipedia) - https://discourse-mediawiki.wmflabs.org/t/getting-traffic-logs-from-an-existing-mediawiki-api-e-g-wikipedia/1032/1 [13:39:05] Hm. [13:39:10] Reedy? [13:39:22] Earth calling Reedy… [13:42:36] Changed the box to 'debian/stretch64' and built a new instance, and it seems to work… [14:20:00] hi everyone [14:20:09] im having trouble creating a new user preference [14:21:18] apparently $wgDefaultUserOptions serves to change the values of existing preferences [14:21:26] but it's no good for creating new preferences [14:21:49] or at least, when i try to do so and then try to set the preference using mw.Api().saveOption [14:22:05] i get an error saying "not a valid preference" [14:22:26] anyone knows what im talking about, and what the solution may be ? [14:24:13] Hmm, I think you maybe have to add it as a "hidden" preference via the GetPreferences hook [14:24:23] * bawolff hasn't looked at preferences in a while [14:25:09] thanks, i'll try that [14:26:11] Sophivorus: maybe https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:User_preferences will be helpful [14:26:47] thanks again [14:31:33] bawolff: GetPreferences was the way, thanks ! [15:02:04] Merry Christmas! [16:33:59] @martyav posted in Editing with CAPTCHA - https://discourse-mediawiki.wmflabs.org/t/editing-with-captcha/1033/1 [17:59:18] hi. I am using the mediawiki package in freebsd. I had 1.27.5 and upgraded to 1.31.1. I ran the update script, and it works, but there's no CSS, and I get these warnings at the top of the page [17:59:22] Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /usr/local/www/mediawiki/includes/json/FormatJson.php on line 297 [17:59:25] Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /usr/local/www/mediawiki/languages/LanguageConverter.php on line 773 [17:59:28] this is with PHP 7.3 [17:59:57] I have not modified those files, obviously [18:05:23] ok, seems to work with PHP 7.2 [18:07:40] the mobile frontend extension doesn't seem to work, hmm [18:09:12] Those warnings will be fixed on the next point release of 1.31 [18:09:22] It's due to stuff changing in PHP 7.3 [18:09:31] And the releases dont' officially support it [18:09:47] 7.2 is probably better generally for the time being [18:52:50] yeah, thanks [18:53:09] I documented the working procedure for FreeBSD package here: https://xw.is/wiki/Upgrade_from_Mediawiki_1.27_to_1.31_on_FreeBSD_11.2 [18:53:16] that worked for all my wikis [19:40:51] Aram: I wouldn't recommend relying on the specific extdist.wmflabs.org URLs, as they will change (when the git sha1 changes) [19:51:09] legoktm: oh, so the old tarballs are not preserved? [19:55:32] hi [19:56:07] doing dumpuploads as said here [19:56:12] https://www.mediawiki.org/wiki/Manual:DumpUploads.php [19:56:37] it catches a lot more stuff and it was going on 75gb now [19:56:38] ? [20:01:59] any ideas please to export all images? [20:02:59] php /var/lib/mediawiki/maintenance/dumpUploads.php --base=$(pwd) | xargs -I foo cp 'foo' . -v <-? [20:05:50] or |xargs tar **** [20:11:26] Aram: no, they're deleted once the new ones are created [20:20:51] damn im not managing to dump the uploads [20:21:10] it goes and gets other files from other palces [20:21:12] *places [20:27:48] hello [20:28:13] Hi [20:28:52] I have searched high and low for even a youtube video with simple instructions.. i have uploaded extensions into the extensions directory.. but there is no clear what to do instructions on what exactly i should put into the Local Settings file and where. [20:29:10] hi [20:29:21] txhsfbgameday: Each extension usually has instructions, but generally [20:29:34] txhsfbgameday: you put: [20:29:43] wfLoadExtension( 'extension name' ); [20:29:48] at the bottom of LocalSettings.php [20:29:56] replacing extension name with name of extension [20:30:02] So for checkuser, you would put [20:30:10] wfLoadExtension( 'CheckUser' ); [20:30:14] tried this -> php /var/lib/mediawiki/maintenance/dumpUploads.php --base=$(pwd) --conf LocalSettings.php | tar cvf images.tar <- it backups alot other files than the uploads [20:30:19] ideas to fix this? [20:30:29] ok [20:30:29] thank you [20:30:59] and please of course [20:37:21] bawolff I did exactly this but when I refresh the page i get.. This page isn’t working HTTP ERROR 500 [20:37:59] Ok, can you check your php error log? [20:38:01] !500 [20:38:01] A blank page or HTTP 500 error usually indicates a fatal PHP error. For information on debugging (including viewing errors), see . [20:39:27] about the dumuploads i pasted it even backups the php directory somewhere [20:39:29] ideas please bawolff ? [20:43:00] bawolff .. i have not a clue what i am doing here [20:51:26] oh well.. i am stumped [20:53:51] no extensions for me i guess.. i dont know what i am doing wrong. i did as instructed and i get a 500 error every time i upload the change [20:54:18] usually, 500 means some sort of typo [20:54:23] e.g. missing semi-colon [20:54:30] missing quotes [20:54:33] or something like that [20:54:54] If you can locate and look in your php error log, it will usually tell you more details about the error [20:56:26] where is the error log? I am not a technical person here. [20:56:54] Usually there is a file on your server, where php will write down any errors it encounters [20:57:08] Its useful to look at when things go wrong [20:58:02] well i dont know what that file is [20:58:06] ive decided to copy all images to the new dir [20:58:10] ddint matter much [20:58:54] Where its located can depend on what type of server you have and what not [20:59:23] if its a VPS its probably in /var/log/php/error.log or something like that [21:02:28] i have no clue.. and i have spent hours trying figure out what i am doing wrong [21:03:18] txhsfbgameday: Can you put a copy of your LocalSettings.php that causes the error on to https://dpaste.de/ - maybe I can spot something that looks wrong [21:06:21] damn it :( [21:17:03] images are coming [21:17:03] :D [21:17:11] uff [21:29:29] I'm tempted to post my mediawiki farm management scripts to gitlab, but I suspect I'll be torn limb from limb for reinventing a wheel somewhere [21:30:32] go for it [21:30:35] its always nice to learn [21:41:47] is it possible to share images between wikis? [21:42:03] hum [21:42:34] yes [21:42:54] yes i checked it now [21:42:58] its possible thanks [21:43:53] Uploads to the wiki will NOT be put there - they will be put into $wgUploadDirectory. [21:44:06] so at the end uploads will be into 2 different paths? [21:44:12] that's how commons and the other wikimedia projects [21:45:59] so it uploads to its own path and then what do i do with the shared? [23:20:50] James_F: hi! Do you know on which server https://commons.wikimedia.beta.wmflabs.org is running? I can't find it on horizon... [23:21:53] SMalyshev: Erm. One of the deployment-prep hosts? deployment-mediawiki-07 when I loaded it. [23:22:21] ah, ok, it's ok mediawiki [23:22:26] *on [23:22:36] I wasn't sure if it's on separate server [23:22:38] thanks