cancel
Showing results for 
Search instead for 
Did you mean: 

The following modules are outdated:\nMagento_Directory db schema version

SOLVED
   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

The following modules are outdated:\nMagento_Directory db schema version

the whole store went kaboom after i did a cache flush , i get this error :

{"0":"Please update your modules: Run \"composer install\" from the Magento root directory.\nThe following modules are outdated:\nMagento_Directory db schema version: defined in codebase - 2.0.1, currently installed - 2.0.2\nMagento_Directory db data version: defined in codebase - 2.0.1, currently installed - 2.0.2\nMagento_Customer db schema version: defined in codebase - 2.0.12, currently installed - 2.0.13\nMagento_Customer db data version: defined in codebase - 2.0.12, currently installed - 2.0.13\nMagento_Catalog db schema version: defined in codebase - 2.2.3, currently installed - 2.2.4\nMagento_Catalog db data version: defined in codebase - 2.2.3, currently installed - 2.2.4\nMagento_Quote db schema version: defined in codebase - 2.0.6, currently installed - 2.0.7\nMagento_Quote db data version: defined in codebase - 2.0.6, currently installed - 2.0.7\nMagento_Sales db schema version: defined in codebase - 2.0.7, currently installed - 2.0.9\nMagento_Sales db data version: defined in codebase - 2.0.7, currently installed - 2.0.9\nMagento_Newsletter db schema version: defined in codebase - 2.0.0, currently installed - 2.0.1\nMagento_Newsletter db data version: defined in codebase - 2.0.0, currently installed - 2.0.1\nMagento_Vault db schema version: defined in codebase - 2.0.2, currently installed - 2.0.3\nMagento_Vault db data version: defined in codebase - 2.0.2, currently installed - 2.0.3\nMagento_Tax db schema version: defined in codebase - 2.0.2, currently installed - 2.0.3\nMagento_Tax db data version: defined in codebase - 2.0.2, currently installed - 2.0.3","1":"#0 \/home\/storenovobiotek\/public_html\/vendor\/magento\/framework\/Interception\/Interceptor.php(121): Magento\\Framework\\Module\\Plugin\\DbStatusValidator->beforeDispatch(Object(Magento\\Framework\\App\\FrontController\\Interceptor), Object(Magento\\Framework\\App\\Request\\Http))\n#1 \/home\/storenovobiotek\/public_html\/vendor\/magento\/framework\/Interception\/Interceptor.php(153): Magento\\Framework\\App\\FrontController\\Interceptor->Magento\\Framework\\Interception\\{closure}(Object(Magento\\Framework\\App\\Request\\Http))\n#2 \/home\/storenovobiotek\/public_html\/generated\/code\/Magento\/Framework\/App\/FrontController\/Interceptor.php(26): Magento\\Framework\\App\\FrontController\\Interceptor->___callPlugins('dispatch', Array, Array)\n#3 \/home\/storenovobiotek\/public_html\/vendor\/magento\/framework\/App\/Http.php(135): Magento\\Framework\\App\\FrontController\\Interceptor->dispatch(Object(Magento\\Framework\\App\\Request\\Http))\n#4 \/home\/storenovobiotek\/public_html\/vendor\/magento\/framework\/App\/Bootstrap.php(256): Magento\\Framework\\App\\Http->launch()\n#5 \/home\/storenovobiotek\/public_html\/index.php(39): Magento\\Framework\\App\\Bootstrap->run(Object(Magento\\Framework\\App\\Http))\n#6 {main}","url":"\/admin\/","script_name":"\/index.php"}
1 ACCEPTED SOLUTION

Accepted Solutions

Re: The following modules are outdated:\nMagento_Directory db schema version

Hello @lowformat,

 

I'm giving an example for it how to solve it because I don't know howmany modules need to update so.

Please run below command to upgrade your database from the Magento root directory.

 

php bin/magento setup:upgrade

Suppose you get the following modules are outdated:

 

 

Vendor_Module schema: current version - x.x.x, required version - z.z.z
Vendor_Module data: current version - x.x.x., required version - z.z.z

So after you have run these commands to fix it

 

 

composer update vendor/module-name
php bin/magento setup:upgrade

Please navigate to your database and run this SQL Query

UPDATE `table_prfix_setup_module` SET schema_version="z.z.z", data_version="z.z.z" WHERE  module="Vendor_Module";

Please do as a smart way, I just give an example. 

 

--
If my answer is useful, please Accept as Solution & give Kudos

 

View solution in original post

4 REPLIES 4

Re: The following modules are outdated:\nMagento_Directory db schema version

Hi @lowformat

 

okay i understand the problem you are facing !

 

Run "composer update" command , from your magento 2 root directory on the SSH panel !

 

Then check it will works !

 

Also for more reference refer this link - https://magefan.com/blog/issue-the-following-modules-are-outdated/

 

 

if issue solved,Click Kudos & Accept as Solution

Re: The following modules are outdated:\nMagento_Directory db schema version

I did try that and it did not work 

Re: The following modules are outdated:\nMagento_Directory db schema version

UPDATE: i manage to get the store up by , changing the ver. of the affected modules in the DB by hand. 

 

but this lead me to the 1st issue i was facing before i trigger a cache refresh and got this error and that is that the store is unable to register new clients, once you hit create account it goes to a 500 http error page. 

Re: The following modules are outdated:\nMagento_Directory db schema version

Hello @lowformat,

 

I'm giving an example for it how to solve it because I don't know howmany modules need to update so.

Please run below command to upgrade your database from the Magento root directory.

 

php bin/magento setup:upgrade

Suppose you get the following modules are outdated:

 

 

Vendor_Module schema: current version - x.x.x, required version - z.z.z
Vendor_Module data: current version - x.x.x., required version - z.z.z

So after you have run these commands to fix it

 

 

composer update vendor/module-name
php bin/magento setup:upgrade

Please navigate to your database and run this SQL Query

UPDATE `table_prfix_setup_module` SET schema_version="z.z.z", data_version="z.z.z" WHERE  module="Vendor_Module";

Please do as a smart way, I just give an example. 

 

--
If my answer is useful, please Accept as Solution & give Kudos