-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgraded to Magento 2.2.4 from Magento 2.1.9 - Locale and Store Configuration issues 'Store View' Locale not being used on frontend, 'Default Config' Locale being used instead #15205
Comments
Further to the above, we have done some further research and no other language apart from en_GB gets compiled in the 'pub/static/' folder regardless of what language/locale we have set. |
I got the same issue in 2.2.4, Default locale configuration is used for all stores view. This issue is really big. |
I tested others language, like Chinese , Japanese it can showing the language. *But something error on frontend , my theme some file is losed. On english frontend is working.I already changed file 777 . Ran update,compile or static-content:deploy , something are not working still. |
Hi @magento-engcom-team / @magento-team, Is there any reponse on this at all? It seems to be a pretty fundamental issue for users with multi-store websites and one that doesn't look to have been tested overly well by yourselves. It looks like the "Default Configuration' is used for all store views when loaded regardless if you have chosen to 'Use Default Values' or not. I'm seeing similar issues now appear in the Issue Tracker: |
@callumstar: I tried to reproduce this on a cleanly installed 2.2.4 but couldn't reproduce (sorry, didn't test upgrading from 2.1.9), I performed following steps:
Can you try to provide clear steps to reproduce the issue (preferably on a clean install of 2.2.4)? Additional thing you can check, check the files |
Hi @hostep, I did some further digging after your testing and I agree that this changes the locale on the frontend if you change the values for the 'Default' store (the store you have assigned as the default store view). However, you missed a critical step, you need to have multiple storeviews not just 1 storeview. If you change the values for the 'Default' store then it is fine. I just tested changing the 'Default' storeview and it works as expected (I switched the locale to IT and it changed it to IT) but then tried changing another storeview with the locale of FR and this then kept the IT value. The issue is with having multiple storefronts not just a single 'Default Store View'. I did also check the |
Yes I agree with @callumstar. Moreover the problems occurs only in production mode I think. |
Ok thanks for the additional information! I'll do some more testing later on. |
Alrighty, I was able to reproduce, interestingly enough it only happens when you have multiple websites, if you only have a single website but multiple stores or storeviews, the problem doesn't trigger. So here are the steps to reproduce:
So basically this is the same issue as reported in #15245, it's only with a different configuration. I tested with a couple of other configurations changed on the non-default storeview and all of them are getting ignored and the ones from the default website are taken. Following @jokeputs advice from #15245 to try and see if reverting commit c18e36b also fixes this problem, and yes it does (but this is most likely not the correct way of fixing this). @magento-engcom-team: this is a very serious issue, I really hope you can prioritise this and make sure it gets fixed in 2.2.5 |
Hi @callumstar. Thank you for your report.
The fix will be available with the upcoming 2.2.6 release. |
Let's quote from the PR to provide more accurate info:
|
Hi @callumstar. Thank you for your report.
The fix will be available with the upcoming 2.3.0 release. |
I posted a solution for everyone who are not patient enough to wait until 2.3 here: |
Doesn't look like it was shipped out as of 2.2.6 either. The fixed code doesn't appear in 2.2.8. I know code quality is extremely important, but the time to release fixes seems a little ridiculous. |
@Ctucker9233: this was definitely fixed in 2.2.5. And 2.2.8 also contains the changes. Are you sure you are talking about the correct problem here? Any steps you can provide to reproduce on 2.2.8? |
@hostep I'm just comparing code. I don't see this code in any variation in the 2.2.8 code. I'll double check to make sure. |
@hostep Yes it is there. I just didn't see it. Not an issue then. |
Package zendframework/zend-stdlib is abandoned, you should avoid using it. Use laminas/laminas-stdlib instead. |
Magento multi-store installations aren't using the store view specific values from the Store Configuration if they have been set to be different to the global 'Default Configuration'.
Preconditions
Steps to reproduce
Expected result
Actual result
The text was updated successfully, but these errors were encountered: