v1.9.0+
Status: | effective |
Progress: | 100% |
Version: | 1.9.0+ |
Switching to native Composer support[edit]
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
SemanticMediaWiki/
,Validator/
andvendor/
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…/extensions/
directory - Remove the following line from the "LocalSettings.php" file:
require_once "$IP/extensions/ExtensionInstaller/ExtensionInstaller.php";
- Done!
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.
See also[edit]
- Help page on upgrading
- Help page on using Composer
- Help page on troubleshooting