-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
Unable to find one of the following templates: "@SonataCore/FlashMessage/render.html.twig", "@SonataTwig/FlashMessage/render.html.twig" in @!SonataAdmin/standard_layout.html.twig at line 331. #6173
Comments
SonataCoreBundle it is optional now. Read this You should register SonataTwigBundle by add this line to your bundles.php: Sonata\Twig\Bridge\Symfony\SonataTwigBundle::class => ['all' => true], or you can add (not recommended) to composer to keep this bundle in your project: "sonata-project/core-bundle": "^3.20", |
okej, but I have an another bug: what about code in standard_layout.html.twig
etc |
It mean you using {% block notice %}
{% include ['@SonataCore/FlashMessage/render.html.twig', '@SonataTwig/FlashMessage/render.html.twig'] %}
{% endblock notice %} It mean use first existing template. This ignore registred paths exception too.
All |
this is not about flashmessage anymore, this is another bug, but I don't know what it concerns
it looks like it wasn't done everywhere |
Mybe you use it in twig?: twig:
form_themes:
- '@SonataCore/Form/datepicker.html.twig'
// Replace it to:
- '@SonataForm/Form/datepicker.html.twig'
It is done correctly. SonataCoreBundle asssets was move to SonataAdminBundle. After call |
I have the same problem.
adding lines - does not work Symfony -version=lts, fresh install |
another error
|
@axzx missing SonataDoctrineBundle registration Can you add this:
I'm using it in sandbox and it works. |
Thx, it works |
@wbloszyk thank you:) I can see how much work has been done, but some migration instruction could be useful :) |
@wbloszyk Shouldn't this be automatically added ? |
Let’s keep the Issue open until the recipe is updated then. |
I think these recipes can't be added because the rules for the recipes repository are rejecting a recipe of this kind:
BTW, there is a previous attempt: symfony/recipes-contrib#841. |
The only recipe I was able to add is for "sonata-project/form-extensions": symfony/recipes-contrib#975. |
Got the same issue, thanks for help. |
A complete mess !!! |
Why? The problem is Sonata do not longer require CoreBundle. People should add it by own or register extensions instead. It should be obvius for people WHO read composer notes. |
This seems to be a nice idea, do you want to make a PR @romainjanvier ? |
add this worked for me thnks |
…came optionnal #6173 (#6230) * Update required dependancies in install doc after SonataCoreBundle became optional #6173 * Update docs/getting_started/installation.rst Co-authored-by: wbloszyk <[email protected]> Co-authored-by: Romain Janvier <[email protected]> Co-authored-by: Jordi Sala Morales <[email protected]> Co-authored-by: wbloszyk <[email protected]>
Environment
Sonata packages
Symfony packages
PHP version
Subject
Steps to reproduce
composer up
Expected results
working webstie
Actual results
Unable to find one of the following templates: "@SonataCore/FlashMessage/render.html.twig", "@SonataTwig/FlashMessage/render.html.twig" in @!SonataAdmin/standard_layout.html.twig at line 331.
The text was updated successfully, but these errors were encountered: