
Magento 2.x – Fix “The following modules are outdated” error
If you are trying to enter to your M2 site, and the following error is being showed:
The following modules are outdated:
Vendor_ModuleName db schema version: defined in codebase – 1.0.1, currently installed – 1.0.2
You will need to perform the following steps:
- Change the setup_version of your module (Vendor_ModuleName) in app/code/Vendor/ModuleName/etc/module.xml. Try a different version name like setup_version=”2.0.1″ or the database currently installed one (1.0.2).
- Flush your cache:
1php bin/magento cache:flush - If it doesn’t work, then run:
1php bin/magento setup:upgrade - If it doesn’t work either, disable your module running the following:
1php bin/magento module:disable Vendor_ModuleName
or changing your module name in app/etc/config.php from Vendor_ModuleName => 1 to Vendor_ModuleName => 0. - Then run:
12php bin/magento setup:upgradephp bin/magento cache:flush