Error when removing old locale parameter
Guite opened this issue · 3 comments
Q | A |
---|---|
Zikula Version | 3.1.0-dev |
PHP Version | 7.4.3 |
Expected Behavior
Site loads when removing locale: en
from here
Current Behavior
I get this exception:
You have requested a non-existent parameter "locale".
Insights
I've seen this parameter is set here. But the exception occurs before this code is executed.
When I search for %locale%
in src
I find these occurances:
- https://github.com/zikula/core/blob/master/src/system/SettingsModule/Resources/config/services.yaml#L20
- https://github.com/zikula/core/blob/master/src/system/RoutesModule/Resources/config/services.yaml#L64
- https://github.com/zikula-modules/Profile/blob/master/Resources/config/services.yaml#L29
- https://github.com/zikula/core/blob/master/src/Zikula/CoreInstallerBundle/Resources/config/services.yaml#L9
Context
This occured after I updated my 3.0.4-dev site to 3.1.0-dev. So very probably I am overseeing something, similarly to
7f43a4c#commitcomment-42646759
But the exception occurs before this code is executed.
This doesn't make sense to me. The Dependency Injection code runs when the container is built. This is before any page is loaded.
Can you be more specific on how you created the error - or when the error manifests?
please post your contents of config/packages/translation.yaml
and compare to https://github.com/zikula/core/blob/master/config/packages/translation.yaml
Good suggestion 👍
Replaced whole config/
folder by master
version and things worked again!
Thanks.