Topic on Skin talk:Medik

Noloader (talkcontribs)

Hi Everyone,

We updated our Ubuntu 20.04.6 fully patched machine running Mediawiki 1.38.5. Our MW installation includes Skins from GitHub (and not the static zip files). It is easier to use GitHub because we only need to checkout the REL1_38 branch to get the latest version of the skin.

We are stuck at MediaWiki 1.38 at the moment. MW 1.39 requires Composer 2, but Ubuntu 20.04 does not provide it. We are waiting for our web host to offer Ubuntu 22.04. Composer 2 will be available with Ubuntu 22.04, and then we can upgrade to MW 1.39.

Restarting Apache results in:

``` Fatal error: Uncaught ExtensionDependencyError: Medik is not compatible with the current MediaWiki core (version 1.38.5), it requires: >= 1.39.0. in /var/www/html/w/includes/registration/ExtensionRegistry.php:432 Stack trace: #0 /var/www/html/w/includes/registration/ExtensionRegistry.php(255): ExtensionRegistry->readFromQueue() #1 /var/www/html/w/includes/Setup.php(252): ExtensionRegistry->loadFromQueue() #2 /var/www/html/w/includes/WebStart.php(93): require_once('/var/www/html/w...') #3 /var/www/html/w/index.php(44): require('/var/www/html/w...') #4 {main} thrown in /var/www/html/w/includes/registration/ExtensionRegistry.php on line 432 ```

Based on the output of our update script, it looks like Medik lacks Mediawiki's standard branches. Below, it looks like `REL1_38` is missing.

``` Updating skin medik Entering /var/www/html/w/skins/medik REL1_38 branch not found remote: Enumerating objects: 23, done. remote: Counting objects: 100% (23/23), done. remote: Compressing objects: 100% (16/16), done. remote: Total 18 (delta 13), reused 3 (delta 2), pack-reused 0 Unpacking objects: 100% (18/18), 2.14 KiB | 168.00 KiB/s, done. From https://bitbucket.org/wikiskripta/medik

  5046528..3c42a90  master     -> origin/master

HEAD is now at 3c42a90 Merged in mw39 (pull request #8) Branch master ```

Kghbln (talkcontribs)

Yes, the skin is on Bitbucket and does not have branches. The issue with the master branch for 1.38 is expected. Master brought more or less full support for 1.39. Version v3.2.7 should still support 1.38. Given the time constraints of the programmers involved, doing some backward-compatible shim appeared not feasible.

Anyhow, I think it is best to clone the code into your own repo on GitHub and fetch the desired code from there. At least, this is what I do when encountering issues like that.

Slepi (talkcontribs)

@Noloader Yes, @Kghbln is correct; Medik v4.0.0 is intended for MW 1.39+, however you can use "git checkout v3.2.7" to go back to version that supports MW 1.38.