Getting Missing required argument $routerList of Magento\Framework\App\RouterList in Magento 2

In my env.php file from app/etc I had to change this part:

'cache_types' =>
        array (
            'config' => 1,
            'layout' => 1,
            'block_html' => 1,
            'collections' => 1,
            'reflection' => 1,
            'db_ddl' => 1,
            'eav' => 1,
            'customer_notification' => 1,
            'full_page' => 1,
            'config_integration' => 1,
            'config_integration_api' => 1,
            'translate' => 1,
            'config_webservice' => 1,
            'compiled_config' => 1,
        ),

into this:

'cache_types' =>
        array (
            'config' => 0,
            'layout' => 0,
            'block_html' => 0,
            'view_files_fallback' => 0,
            'view_files_preprocessing' => 0,
            'collections' => 0,
            'db_ddl' => 0,
            'eav' => 0,
            'full_page' => 0,
            'translate' => 0,
            'config_integration' => 0,
            'config_webservice' => 0,
            'config_integration_api' => 0,
        ),

This one, fixed my issue.


Just run bin/magento module:enable --all to regenerate config.php, and then bin/magento setup:upgrade.

Tags:

Magento2