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:
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!
Solved! Go to Solution.
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 !
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
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 !