User:Daveh/Upgrade 1.38
From Starfield Wiki
Notes on upgrading MediaWiki from to 1.35 to 1.38.6.
- Update config/Extensions.php with the upgrade info array.
- Update all extensions with uesp-upgrademw.php
- Copy DarkVector skin from 1.35.
- Modify DarkVectorTemplate.php at the start to deal with the missing User::isWatched function (merge from the 1.39 branch....the full 1.39 skin doesn't work in 1.38).
- Set $sfwikiIsDev = true; in config/InitializeSettings.php temporarily to run the update script. The update script doesn't permit unknown parameters anymore (unsure how to fix this).
- Run the update: php74 ./maintenance/update.php.
- Run composer in the extensions/CirrusSearch/ and extensions/Elastica directories like:
php74 /usr/local/bin/composer.phar update
Issues[edit]
- Search Index Issue
- Search index does not appear to be updating (might have been a prior issue).
- This seems to be just an change in behavior from the UESP search. Searching for porrim shows nothing while porrim* shows the relevant articles.
- Deprecation Warnings from EmbedVideo
- Replace EmbedVideo.hooks.php with version from https://gitlab.com/jmnote/EmbedVideo/-/blob/master/EmbedVideo.hooks.php .
- Class 'Wikimedia\CSS\Parser\Parser' not found from TemplateStyles
- Run composer in the TemplateStyles extension:
php74 /download/composer.phar update --no-dev
- jquery.tabIndex module not found
- Edit the DarkVector skin to remove the jquery.tabIndex dependancy.
Files to Modify for 1.39[edit]
- DarkVectorTemplate.php -- Change from using the deprecated methods getFooterIcons() and renderAfterPortlet().
- EmbedVideo.hooks.php - Change addModules() and addModuleStyles() to use array parameters.