Skip to main content

How to upgrade extension

Follow these steps to update the extension via сomposer:

  1. Back up your store's database and web directory.

  2. Log in to the SSH console of your server and navigate to the root directory of the Magento 2 store.

  3. Run the command below to update the current extension with all dependencies:

    composer require mirasvit/module-blog-mx:* mirasvit/module-comment:* mirasvit/module-vote:* --update-with-dependencies

    In 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/*

    ⚠️ If you have Hyvä installed, remove the retired compatibility packages first. Hyvä support now ships inside the extensions themselves, and the new versions refuse to sit beside the old packages:

    composer remove mirasvit/module-blog-mx-hyva mirasvit/module-comment-hyva mirasvit/module-vote-hyva
    composer require mirasvit/module-blog-mx:* mirasvit/module-comment:* mirasvit/module-vote:* --update-with-dependencies

    Composer does not warn you if you skip the removal. It resolves without an error, quietly leaves Blog MX on the version you already had, and the upgrade simply does not arrive — if composer show mirasvit/module-blog-mx still reports the previous version afterwards, this is why.

    ⚠️ Upgrade Comments in the same command. Removing mirasvit/module-blog-mx-hyva also removes mirasvit/module-comment-hyva, which was only ever installed as its dependency — so comments under a post lose their Hyvä styling until mirasvit/module-comment 1.3.0 or later is installed. The command above does both at once.

  4. Install the updates by running the following command:

    php -f bin/magento setup:upgrade
  5. Run the command below to set up dependencies:

    php -f bin/magento setup:di:compile
  6. Clean the cache by running the following command:

    php -f bin/magento cache:clean
  7. Deploy static view files:

    rm -rf pub/static/*; rm -rf var/view_preprocessed/*;
    php -f bin/magento setup:static-content:deploy