Error "Modules are out of date"

I get this error when creating a new module:

"Please upgrade your database: Run "bin/magento setup:upgrade" from the Magento root directory. The following modules are outdated: Sangeeta_Octan data: current version - none, required version - 0.0.1";i:1;s:1781:"#0 

I searched on google and did not find a solution other than reinstalling Magento. For instance:

Version

was changed from "2.0.0.0" to "2.0.0" during development, so the updater cannot recognize that "2.0.0.0" <= "2.0.0". Please reinstall the application from scratch to get the latest version. `

Do I have any options other than reinstalling?

+5
source share
4 answers
  • Change the setup_version of your module (Sangeeta_Octan) to app/code/Sangeeta/Octan/etc/module.xml . Try a different version of the name like setup_version="2.0.1" or setup_version="3.0.0"

  • Run bin/magento setup:upgrade

  • If this does not work, disable the module by changing the name of your module in app/etc/config.php from Sangeeta_Octan => 1 to Sangeeta_Octan => 0 . Then run bin/magento setup:upgrade

I hope the solution below also solves your problem.

https://magento.stackexchange.com/questions/112293/mysql-error-and-possible-duplicates-running-bin-magento-setupupgrade-after-rena/112299#112299

+5
source

in mysql find the setup_module table setup_module It will have 3 fields. Find the NULL values ​​in data_version and map them to schema_version

+4
source

Alternatively, you can access your magento database and look at the setup_module table setup_module You will see a list of all installed modules, and you can manually set the version numbers of the schema / data here.

+3
source

Remove the intruder lines from the setup_module table (if any) and run the bin/magento setup:upgrade command from the root directory of Magento 2.

0
source

Source: https://habr.com/ru/post/1247350/


All Articles