Help:Upgrade/Switching to native Composer support
Switching to native Composer support
As documented on the Upgrade from SMW 1.9.x or later to SMW 2.1.x (MW 1.19.0 to MW 1.21.x) page the "Extension Installer" extension is only required for MediaWiki 1.19.x to MW 1.21.x since these versions of MediaWiki do not natively support Help:Using Composer. Thus you will have to adapt the way to upgrade and update Semantic MediaWiki after upgrading to MediaWiki 1.22+:
- Backup your database and installation.
- Move the "composer.json" file from the
…/extensions/ExtensionInstaller/directory to the base directory of your MediaWiki installation.
- Delete the directories
vendor/from within the
…/extensions/directory as well as the directories of the extensions which were also previously installed using the "Extension Installer" extension, e.g. Semantic Results Formats, etc. if applicable. See the "composer.json" file for the list of these extensions.
- Run the update script from the base directory of your MediaWiki installation:
php composer.phar update
- See the page "Special:Version" on your wiki to verify that the extension(s) was/were successfully installed.
- Delete the directory
ExtensionInstaller/from within the
- Remove the following line from the "LocalSettings.php" file:
Note: These instructions deliberately do not involve an upgrade of Semantic MediaWiki. If a newer version is available than the one used prior to the switch described above when do the upgrading in a second step.