[09:36:47] hey can I upgrade straight to the current MediaWiki LTS from my current version? [09:37:09] * stevenm waits for the inevitable question [09:38:54] stevenm: depends on how old is your current version; also depends on what extensions do you have installed [09:38:57] and skins [09:39:13] default skin, i don't remember adding any extensions [09:39:23] check your LocalSettings.php [09:39:39] there are maybe the default ones [09:39:56] lol ok one in /extensions - DeletePagePermanently [09:39:59] i can live without it :P [09:43:39] saper, for a site that isn't functional - but you can read the files and the database... what is the best way to determine the version? i see many different version numbers in different files [09:44:20] e.g. HISTORY vs RELEASE-NOTES files have different versions mentioned in them [09:46:34] aha! DefaultSettings.php [09:46:39] iiiiit's.... [09:46:42] 1.15.1 [09:49:03] whiiich is newer than 1.5 so in one step it sounds like [09:55:43] yeah... I hope you don't have too much funny stuff in your LocalSettings.php [09:55:59] and please make backup of the database, image/uploads directories and the code itself [09:58:59] yeah got backups [09:59:09] saper, it's not liking the localsettings file for some reason [10:01:08] tbh I think I'd prefer to upgrade *without* LocalSettings.php [10:01:12] and there was nothing in images/ [10:01:22] i.e. i want to do this with just the database I think [10:01:46] wizard doesn't give that option though [10:02:06] unless it'll realise there is an existing mediawiki db there once i put credentials in [10:04:07] ah no it does have that option :S [10:04:30] just skips past "Existing wiki" stage - but does it at "Upgrade existing installation" stage [10:05:09] and there is a regenerate option :) [10:10:04] oh crickey it's actually worked [10:49:57] stevenm: I prefer to use php/maintenance/something.php to upgrade from the command line [10:52:33] this'll do - it's only ever been used by me in the last 12 odd years and has a http auth password on it [10:52:44] and mostly unused for about 8 of those last years [10:52:52] but it had to move servers (from debian 4 to 10 lol) [10:53:45] stevenm: wow, most recently I have salvaged some Debian 5 installs but that's even better [10:54:57] lol well this one is a VM that *originally* was an old Compaq Proliant DL320 :P [10:55:08] pentium III goodness - 2nd hand stuff from 2007 lol [10:55:36] it's slooowly been crumbling since then - as i add more and more firewall rules on it to stop nasties [10:56:12] i really need to find the time to shut it down completely ... but it's from an age when we only had 1 server and it did *everything* - where as now (or rather for many years now) there is a VM platform(s) [10:56:46] it's soul lives on but it's carcass of a body was thrown ages ago [10:58:58] make sure you upgrade your MySQLs properly, I love utf8mb4 trick [11:14:34] saper, db was already utf8mb4 as is default in d10 [16:11:52] stevenm: but the source was... whatever :) I remember having to fix double-encoded Unicode which came over from MySQL 3/4 migrations [19:49:48] Is there some template-like system by which I could modify a single page to add a new section heading and have many other pages automatically gain a new empty section with that heading? Or at least point to a single page and say "update this page with new content from its template"? [20:10:01] I'm struggling to decide on a structure for my wiki. If anyone can spare an eye, I would appreciate feedback on what parts of this wiki idea to implement as categories vs [dynamic] lists vs namespaced pages, what to simplify via templates, etc. https://www.modesofdiscourse.com/ [20:16:37] sparr: will have a look tomorrow CET [20:33:50] Thanks, I would appreciate any advice [22:02:28] Upgrading to 1.33.1 with update.php gives me: UnexpectedValueException from line 169 of includes/user/UserGroupMembership.php: UserGroupMembership::insert() needs a positive user ID. Did you forget to add your User object to the database before calling addGroup()? [22:03:22] xypron: Anything I should do before running update.php --quick [22:35:41] xypron: This is https://phabricator.wikimedia.org/T236444. I guess it needs a backport to 1.33, but nobody did it [22:39:24] Vulpix, from where can I download the patch? I cannot identify it on the Gerrit pages. [22:39:52] https://gerrit.wikimedia.org/r/#/c/mediawiki/core/+/546636/ [22:40:14] https://gerrit.wikimedia.org/r/changes/546636/revisions/685b505628099a027ab5c9451502f522b489c109/patch?zip [22:51:58] Vulpix: I now get to ...deleting old default messages (this may take a long time!)... Let's see if this ever ends. [22:52:17] Vulpix: thanks for indicating the patch. [22:52:46] yw [22:52:48] Vulpix: Done in 6 min 0 s. :) [22:53:24] Vulpix: as 1.33.1 is current mainline downporting may make sense. [23:25:49] Ugh the whole process of dealing with Gerrit is *horrible* for drive-by fixers. [23:26:04] (though those thusly inclined might wish to look at https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Lockdown/+/550379) [23:52:37] bootc: it took me a while to get into gerrit, yeah [23:52:58] we tried it for a while at work and ran away screaming [23:53:07] we now use a private GitLab instance [23:55:20] bootc: I must admit after a long time I prefer gerrit's workflow [23:55:55] each to their own, I suppose :-)