How to upgrade extension
Follow these steps to update the extension via сomposer:
-
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 the Magento 2 store.
-
Run the command below to update the current extension with all dependencies:
composer require mirasvit/module-review:* --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/*⚠️ 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-review-hyva mirasvit/module-comment-hyva mirasvit/module-vote-hyva
composer require mirasvit/module-review:* --update-with-dependenciesComposer does not warn you if you skip the removal. It resolves without an error, quietly leaves the old versions in place, and the upgrade simply does not arrive — if
composer show mirasvit/module-reviewstill reports the previous version afterwards, this is why.One other extension can hold
mirasvit/module-comment-hyvain place even after you remove it here: Advanced Blog MX on Hyvä (mirasvit/module-blog-mx-hyva), which required it until 2.2.4. If your store runs Blog MX on Hyvä, upgrade that package to 2.2.4 or later first. -
Run the command below to enable extension:
php -f bin/magento module:enable Mirasvit_Core Mirasvit_Review Mirasvit_Comment Mirasvit_VoteThe
Hyva_MirasvitReview,Hyva_MirasvitCommentandHyva_MirasvitVotemodules are gone, not renamed — everything they did happens inside the modules above.setup:upgradedrops the old names fromapp/etc/config.phpfor you. -
Install the updates by running the following command:
php -f bin/magento setup:upgrade -
Clean the cache by running the following command:
php -f bin/magento cache:clean -
Deploy static view files:
rm -rf pub/static/frontend/*; rm -rf pub/static/backend/*; rm -rf var/view_preprocessed/*;
php -f bin/magento setup:static-content:deployIf you have the Hyva installed, run:
cd /path/to/theme/web/tailwind/
npm run build-prod
cd /path/to/project/
rm -rf pub/static/frontend/*; rm -rf pub/static/backend/*; rm -rf var/view_preprocessed/*;
php -f bin/magento setup:static-content:deploy