cancel
Showing results for 
Search instead for 
Did you mean: 

Undefind index website error in installing Magento 2

SOLVED

Undefind index website error in installing Magento 2

Hello,

I cloned a private Magento 2 git repository and run the command to

composer update

load all the dependency of Magento core files.


Now when I run a command

setup: upgrade

, it throws an error "Undefined Index website".

Can anyone please help?

Thanks,

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Undefind index website error in installing Magento 2

@iCreativeTech

 

First, you have to setup Magento 2 before running the command php bin/magento setup:upgrade 

 

Follow this sequence.

 

  1. Setup Magento 2 from browser or composer.
  2. Run php bin/magento setup:di:compile
  3. Run php bin/magento setup:upgrade
  4. Run php bin/magento setup:static-content:deploy
If you find my answer useful, Please click Kudos & Accept as Solution.

View solution in original post

2 REPLIES 2

Re: Undefind index website error in installing Magento 2

@iCreativeTech

 

First, you have to setup Magento 2 before running the command php bin/magento setup:upgrade 

 

Follow this sequence.

 

  1. Setup Magento 2 from browser or composer.
  2. Run php bin/magento setup:di:compile
  3. Run php bin/magento setup:upgrade
  4. Run php bin/magento setup:static-content:deploy
If you find my answer useful, Please click Kudos & Accept as Solution.

Re: Undefind index website error in installing Magento 2

Hello @Mayur Bhuva,

 

Thanks for the solution, It's work for me.

 

Thanks,