0

in my local setup I have run the command for testing, what happens.

php bin/magento module:disable --all I have found an error in most of commands and nothing is working.

php bin/magento module:disable --all

after that, I have run

php bin/magento module:enable -all

I have found the error in command-line

magento messy setup

in db core_config_data table is missing.

I have tried this for fun but never try this ....

2 Answers 2

2

If you want to disable all 3-rd parties modules you can run this command :

php bin/magento module:status | grep -v Magento | grep -v List | grep -v None | grep -v -e '^$'| xargs php bin/magento module:disable

This will keep only the Magento core modules enabled .

You should not have issues with setup:upgrade command .

Note ! (Captcha module might not be disabled , if it throws an error , disable it manually )

1

Use of module:disable --all means disabled all module.

And after that you have tried to enable again php bin/magento module:enable -all As the minimum modules which is required for run Magento system also disabled during disabling modules. You did the wrong.

Also in process some tables also removed that why you getting error.

For this case, you must need to remove the database and create a new fresh Magento install.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.