zikula/core

Error when removing old locale parameter

Guite opened this issue · 3 comments

Guite commented
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".

Screenshot_20200923_073446

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:

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

Guite commented

Good suggestion 👍

Replaced whole config/ folder by master version and things worked again!
Thanks.