[00:34:03] hmm [00:34:18] how to purge an image files from the command line? [00:34:48] so that metadata is fetch and thumbnails are rerendered [00:37:44] action=purge works, but I want something not requiring manual purges [00:54:52] Platonides: rm -rf the thumbs directory and run rebuildImges.php? [00:55:10] ok, one silly error found: I was running from a machine that didn't have the dependencies installed [00:55:21] while the web server had so it worked there [00:57:07] now it is extracting the metadata [00:57:18] but it's not getting saved into the db :/ [01:03:13] hmm [01:03:18] "could not open lock file [01:04:54] now it works [01:04:59] although the error was swallowed out [01:07:56] ok [01:14:01] changed owner of the files [01:14:07] and ran maintenance/purgeChangedFiles.php over all of them [01:14:19] changing back the owner to www-data [01:14:35] aand... it works [01:15:24] I had forced maybeUpgradeRow() to always upgradeRow() in filerepo/file/LocalFile.php [01:15:29] not sure it it was really needed [01:15:32] but it worked [10:06:16] Hi guys, maybe a stupid question: I want to add a JS with "document.addEventListener( 'DOMContentLoaded', function(event) {...}); how should I do that? [10:13:04] !js [10:13:04] To set up custom javascript on a wiki, edit the page called [[MediaWiki:Common.js]] (NOT a file, a page on your wiki, which is included via [14:32:44] Thanks kostajh. That did the trick. 🙂 [15:17:49] hello given a page id from wikipedia fr, i would like to get the identifiers from the bottom of here https://www.wikidata.org/wiki/Q64007200 [19:52:36] any mediawiki.org sysops around? I'm trying to add some Google Code-In wrapup blog posts to that page and they got blocked by an abuse filter :/ [19:56:05] hi tassu [19:56:16] hi [19:56:49] what's your username? [19:56:53] Majavah [19:58:03] ok [19:58:46] tassu, try now [19:58:59] thanks [19:59:02] working [20:00:34] np [20:09:45] hmm, after disabling MsCatSelect on a wiki, File Upload is erroring with the msg "You must provide at least one category to a page before saving it. Please choose a category from the category selection list at the bottom of the Edit page." [20:10:05] is there some kind of extension cache I need to purge or something? [20:10:38] this is on 1.31.6 btw [20:18:55] No... could be opcode cache though [20:28:27] ok thanks, i'll get that cleared and see what happens [21:28:44] Doing some very naive dabbling here: https://gerrit.wikimedia.org/r/#/c/mediawiki/extensions/TemplateData/+/468901/ [21:28:54] Can anyone see why are the tests failing? Is it a dependency problem, or did I just do something silly while rebasing? [21:47:32] There’s a load of phpcs errors introduced [21:47:40] https://integration.wikimedia.org/ci/job/quibble-vendor-mysql-php72-docker/42164/console [21:49:16] Yeah, I see it, and I'm fixing it, but I suspect it's not the only thing [21:49:21] Or is it? [21:52:51] There’s a load of them [21:53:01] I didn’t check the other test types [22:23:40] hihi [22:24:02] dumb question, is there a script I can run to setup the right mysql user for mw? [22:24:25] the installer can't connect as the root user because I only have auth_socket [22:24:41] e.g. I could create the mysql user as root by running a script? [22:27:01] you can create a mysql user in advance, yes [22:27:11] Skizzerz: what privs? [22:27:23] I wanted to use the root user so MW could do that itself [22:27:31] easiest is to grant it all privileges on the database you are installing mw to [22:27:40] OK [22:27:41] which is what the mw installer does at any rate [22:27:48] good enough for me [22:29:06] GRANT ALL ON *.* <-- which star is the DB? [22:29:23] GRANT ALL ON wiki_db.* ... ? [22:29:24] first [22:29:28] ta [22:29:29] db.table [22:30:14] Wow... I spelt privileges correct on the first try!