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:
  • If it doesn’t work, then run:
  • If it doesn’t work either, disable your module running the following:

    or changing your module name in app/etc/config.php from Vendor_ModuleName => 1 to Vendor_ModuleName => 0.
  • Then run: