cancel
Showing results for 
Search instead for 
Did you mean: 

Error Create Store View for each Magento 2 language

SOLVED

Error Create Store View for each Magento 2 language

Hi! I have installed the following language packs:

 

php bin/magento setup: static-content: deploy -f nl_NL

php bin/magento setup: static-content: deploy -f fr_FR

php bin/magento setup: static-content: deploy -f de_DE

 

Once the deploy is done, the cache cleaned and reindexed, I have created a Store View for each language but when I activate them and change in my store to the selected language I get the following error:

 

https://ibb.co/Xs2xdfr

 

Can someone help me understand what the problem is please? Because I can not find out why it is not working for me.

thank you very much!

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Error Create Store View for each Magento 2 language

Hi @ManuelSissl 

 

As you already run static-content:deploy command for each language pack you will require to run compilation command as well.

 

So do one thing below i am posting few commands - run those in a sequence and then check !

 

rm -rf generated
rm -rf var/cache
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup: static-content: deploy -f nl_NL
php bin/magento setup: static-content: deploy -f fr_FR
php bin/magento setup: static-content: deploy -f de_DE
php bin/magento indexer:reindex
php bin/magento cache:clean
php bin/magento cache:flush

then check - it will remove the errors and works well !

 

if issue solved,Click Kudos & Accept as Solution

View solution in original post

2 REPLIES 2

Re: Error Create Store View for each Magento 2 language

Hi @ManuelSissl 

 

I will suggest you to de-compile code once and check "generated" directory permissions. Also you need to check that top-home.phtml file exist in the Magento Cms directory inside theme your are using. And this file is in the right directory path.

 

I hope it will help you.

Thanks
--
If my answer is useful, please Accept as Solution & give Kudos

Re: Error Create Store View for each Magento 2 language

Hi @ManuelSissl 

 

As you already run static-content:deploy command for each language pack you will require to run compilation command as well.

 

So do one thing below i am posting few commands - run those in a sequence and then check !

 

rm -rf generated
rm -rf var/cache
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup: static-content: deploy -f nl_NL
php bin/magento setup: static-content: deploy -f fr_FR
php bin/magento setup: static-content: deploy -f de_DE
php bin/magento indexer:reindex
php bin/magento cache:clean
php bin/magento cache:flush

then check - it will remove the errors and works well !

 

if issue solved,Click Kudos & Accept as Solution