[15:32:50] Hey all -- I've got a bit of a challenge ahead of me. I've been tasked on migrating/upgrading a Mediawiki 1.15.3 installation for an internal project to at minimum 1.39.13. I'm bumping into a lot of minor issues such as missing includes files. I don't mind doing small, incremental upgrades, but I'm having trouble finding either sources or docker images of such an old version. [15:34:32] Ah I found the archived release page.. [15:36:43] din0: see also https://www.mediawiki.org/wiki/Manual:Upgrading#How_do_I_upgrade_from_a_really_old_version?_In_one_step,_or_in_several_steps? [15:37:03] (or https://www.mediawiki.org/wiki/Manual:Upgrading#How_do_I_upgrade_from_a_really_old_version?_In_one_step,_or_in_several_steps%3F depending on whether your IRC client included that question mark in the URL or not ;)) [15:48:57] Perfect, thank you [15:49:17] Just to point out 1.39 will be EOL at the end of the year too ;) [15:49:50] MW 1.15 predates Docker by about ~4 years :P [15:53:19] Yeah it's been a quiet service running on a little legacy VM for quite some time, unfortunately. [15:53:43] I'll try to get it up to the latest version and the ultimate goal is to just run it via the latest docker version [16:43:27] Oof this is going to be a wild ride :\ At this point I think I just need the schema updates from 1.15 -> ~1.35 [16:46:02] I can't even run the update.php to schema output without getting a `Recursive service instantiation` error [16:49:16] I have lots of warnings from deprecated use of InternalParseBeforeSanitize even though I removed that hook from w/extension/Variables/extension.json and cleared the PHP opcache. Does MW store extension.json data in the apcu cache or something? [16:58:33] Ah I think I'm up a creek -- I think I need an ancient version of php to run this upgrade.php file from such an old mediawiki version [17:31:58] Yep unfortunately I think this might be too old --- needs php7 to run the the 1.35 upgrade.php, but I can't get a good installation package for php7-mysql [19:08:23] Oh I'm pretty close now. Long story short, I managed to migrate from 1.15 to 1.35 (details if anyone cares to know), now I am on 1.39 and I can't run the upgrade.php due to a 'Error: Class "MysqliInstaller" not found' ? Google is neigh useless on these search parameters [19:11:28] Do you have a stacktrace? See $wgShowExceptionDetails on https://www.mediawiki.org/wiki/Manual:How_to_debug [19:22:30] I set it to true but it did not give any more info https://pastebin.com/PPe3M5Hu [19:31:24] Specifically MysqliInstaller? [19:31:44] I'm not sure we ever had a MysqliInstaller... [19:32:16] What is $wgDBtype set to? [19:42:37] mysqli [19:44:03] change it to mysql [19:44:22] We probably changed that from being driver, to linking to a installer/updater class at some point [19:45:01] DatabaseMysqli.php did exist at one point, IIRC [19:46:02] In 1.41 it went away https://gerrit.wikimedia.org/r/c/mediawiki/core/+/945676 [19:47:04] I think it still uses the mysqli driver just for added confusion [20:01:47] Hmm I'll give it a shot, I had to change it to mysqli from 1.15->1.35, but I can try reverting it [20:44:56] Reverting it back to mysql seems to have done the trick. Next challenge is that the image thumbnails either didnt generate or render correctly "Error creating thumbnail: Unable to save thumbnail to destination" is there a way to re-run the generation script? [20:49:48] Ah fixed that as well, permissions on the directories needed updated. Now the images just dont render at all [20:57:05] I imagine it's a css issue since the browser is throwing all kinds of errors due to MIME mismatches [22:21:20] Most thumbs are generated on demand