-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Parameter "_locale" for route ERROR #5396
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
Comments
Well, the error appears when generating the route |
Yes but if i fix Symfony v2.1.0-RC2 works correct. This is the route: portada:
pattern: /{_locale}/
defaults: { _controller: BlogBundle:Default:portada, _locale: null}
requirements:
_locale: ca|es|en|fr|de What information Can I give you? Thanks Regards |
The commit that "causes" the new behavior is: 0706d18 There 2 things that are probably wrong:
I guess your route pattern was at some time |
I have an idea how to help people to not declare param defaults that can never be returned by the matching process (which would also make this error obvious when compiling the route already). |
Please close this issue. |
Thanks for help, the problem was in my routing. Regards |
Hello,
This afternoonI have done a composer update.
After update my app not works, I obtained this error:
An exception has been thrown during the rendering of a template ("Parameter "_locale" for route "portada" must match "[^/]+" ("" given).") in "BlogBundle:Default:portada.html.twig".
I fixed the version "symfony/symfony": "v2.1.0-RC2", in composer.json and now works again.
This is the commit that generate the error: - Updating symfony/symfony (dev-master)
Checking out 2cf50b7
I write this issue to inform the error.
Thanks
Regards
The text was updated successfully, but these errors were encountered: