I used the command bin/magento setup:upgrade and it returned

Invalid Scope type 'default'

enter image description here

How can I fix this?

2 Answers 2


it's because of your core_config_data table check the scope columns


Looks like there's a line break before the string, instead of


it should be


This can be either on core_config_data table in the database, or in app/etc/env.php file

Your Answer

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

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