Magento – Command line error stock magento

commandcommand linemagento2

I get this error after install when trying to clear var/ generation, and static content deploy via command line.

[Exception] Warning: Invalid argument supplied for foreach() in /vendor/magento/module-store/Model/Config/Processor/Fallback.php on line 125

Best Answer

The problem was in app/etc/env.php file which was empty.

I restored the content of this file with the local data and it started working again.

Related Topic