Frage

  • Old Version : 2.2.2
  • Upgraded Version : 2.2.4

i'm getting error while run command php bin/magento setup:upgrade

Module 'Magento_Store':
Module 'Magento_Directory':
Module 'Magento_Eav':
Module 'Magento_Theme':
Module 'Magento_Customer':
Upgrading data.. Area code not set: Area code must be set before starting a session.

I have tried with php bin/magento sampledata:reset but still not solved

War es hilfreich?

Lösung

vendor\magento\module-customer\Setup\UpgradeData.php

public function __construct(
        ...
        ...
        \Magento\Framework\App\State $state,

    ) {
        ...
        ...
        $state->setAreaCode(\Magento\Framework\App\Area::AREA_GLOBAL);

        );
    }

EDIT
get idea from ss which file have to change http://prntscr.com/mmj3oe

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit magento.stackexchange
scroll top