How to upgrade the extension
To upgrade the extension, follow these steps:
-
Back up your store's database and web directory.
-
Log in to the SSH console of your server and navigate to the root directory of your Magento 2 store.
-
If
mirasvit/module-seo-hyvaormirasvit/module-seo-graph-qlis installed, remove it:composer remove mirasvit/module-seo-hyva mirasvit/module-seo-graph-qlFrom version 2.13.0 both ship inside the extension itself. If you leave them installed, the same modules are present twice, and composer refuses the upgrade with a conflict such as
mirasvit/module-seo … conflicts with mirasvit/module-seo-hyva …. The command above resolves it. No settings are lost, andsetup:upgraderemoves the retired module names fromapp/etc/config.phpfor you. If you never installed either package, skip this step. -
Run the following command to update the current extension along with all dependencies:
composer require mirasvit/module-seo:* --update-with-dependenciesIn some cases, the command above may not be applicable, or you may be unable to update only the current module. If that's the case, you will need to upgrade all Mirasvit modules in a bundle. The command above will have no effect in such scenarios. Instead, run the following command to update all Mirasvit modules installed in your store:
composer update mirasvit/* -
Install the updates by running the following command:
php -f bin/magento setup:upgrade -
Compile the code for the installed extensions:
php -f bin/magento setup:di:compile -
Clean the cache by running the following command:
php -f bin/magento cache:clean -
Deploy the static view files:
rm -rf pub/static/*; rm -rf var/view_preprocessed/*;
php -f bin/magento setup:static-content:deploy