Skip to content
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

Warning: Undefined variable $_v0 since 3.15 #4480

Closed
lpotherat opened this issue Nov 28, 2024 · 56 comments
Closed

Warning: Undefined variable $_v0 since 3.15 #4480

lpotherat opened this issue Nov 28, 2024 · 56 comments

Comments

@lpotherat
Copy link

lpotherat commented Nov 28, 2024

Hi,

Since twig 3.15, the base layout of easyadmin ( vendor/easycorp/easyadmin-bundle/templates/layout.html.twig ) triggers a warning at line 108 of the template : {{ item.label|trans }} .

The warning tells that the $_v0 variable is undefined in the compiled version of the twig template, here is the line :

// line 108
yield "                                        ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "label", [], "any", false, false, false, 108), [], $_v0), "html", null, true);
yield "

And the full function from the compiled template :

// line 96
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_user_menu(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
        $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "user_menu"));

        $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "user_menu"));

        // line 97
        yield "                    ";
        if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["ea"]) || array_key_exists("ea", $context) ? $context["ea"] : (function () { throw new RuntimeError('Variable "ea" does not exist.', 97, $this->source); })()), "userMenu", [], "any", false, false, false, 97), "items", [], "any", false, false, false, 97)) > 0)) {
            // line 98
            yield "                        <li><hr class=\"dropdown-divider\"></li>
                        ";
            // line 99
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["ea"]) || array_key_exists("ea", $context) ? $context["ea"] : (function () { throw new RuntimeError('Variable "ea" does not exist.', 99, $this->source); })()), "userMenu", [], "any", false, false, false, 99), "items", [], "any", false, false, false, 99));
            $context['loop'] = [
              'parent' => $context['_parent'],
              'index0' => 0,
              'index'  => 1,
              'first'  => true,
            ];
            if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
                $length = count($context['_seq']);
                $context['loop']['revindex0'] = $length - 1;
                $context['loop']['revindex'] = $length;
                $context['loop']['length'] = $length;
                $context['loop']['last'] = 1 === $length;
            }
            foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
                // line 100
                yield "                            <li>
                                ";
                // line 101
                if ((CoreExtension::getAttribute($this->env, $this->source, $context["item"], "isMenuSection", [], "any", false, false, false, 101) &&  !CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 101))) {
                    // line 102
                    yield "                                    <hr class=\"dropdown-divider\">
                                ";
                } elseif ( !CoreExtension::getAttribute($this->env, $this->source,                 // line 103
$context["item"], "isMenuSection", [], "any", false, false, false, 103)) {
                    // line 104
                    yield "                                    <a href=\"";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "linkUrl", [], "any", false, false, false, 104), "html", null, true);
                    yield "\" class=\"dropdown-item user-action ";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "cssClass", [], "any", false, false, false, 104), "html", null, true);
                    yield "\"
                                       target=\"";
                    // line 105
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "linkTarget", [], "any", false, false, false, 105), "html", null, true);
                    yield "\" rel=\"";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "linkRel", [], "any", false, false, false, 105), "html", null, true);
                    yield "\"
                                       referrerpolicy=\"origin-when-cross-origin\">
                                        ";
                    // line 107
                    if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "icon", [], "any", false, false, false, 107))) {
                        yield $this->env->getRuntime('Symfony\UX\TwigComponent\Twig\ComponentRuntime')->render("ea:Icon", ["name" => CoreExtension::getAttribute($this->env, $this->source, $context["item"], "icon", [], "any", false, false, false, 107)]);
                    }
                    // line 108
                    yield "                                        ";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "label", [], "any", false, false, false, 108), [], $_v0), "html", null, true);
                    yield "
                                    </a>
                                ";
                }
                // line 111
                yield "                            </li>
                        ";
                ++$context['loop']['index0'];
                ++$context['loop']['index'];
                $context['loop']['first'] = false;
                if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
                    --$context['loop']['revindex0'];
                    --$context['loop']['revindex'];
                    $context['loop']['last'] = 0 === $context['loop']['revindex0'];
                }
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 113
            yield "                    ";
        }
        // line 114
        yield "                ";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        
        $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);

        yield from [];
    }

I rolled back to 3.14.2 and all works again.

Thanks

@jdreesen
Copy link
Contributor

Duplicate of #4452?

@xabbuh
Copy link
Contributor

xabbuh commented Nov 28, 2024

Does #4475 help?

@lpotherat
Copy link
Author

Yes, #4452 has the exact same error in one of the comments, the issue title was not meaningful for my use case sorry !
I'm going to test it

@lpotherat
Copy link
Author

I'm back, upgrading to "twig/twig": "3.x-dev#c384fb4d8cd4bfbca7a13f9d36e3afb53c4ed655" brings me to a Syntax error :

An exception has been thrown during the compilation of a template ("EmptyNode cannot have children.")
image

I may not be the same issue ?
Rolling back to 3.14.2 again :)

@xabbuh
Copy link
Contributor

xabbuh commented Nov 28, 2024

for that you probably need symfony/symfony#58964 (i.e. the latest patch release of symfony/twig-bridge for the Symfony version you are using)

@lpotherat
Copy link
Author

I'm currently on 7.2 RC1, I'll wait the next RC to update Twig then

@fabpot
Copy link
Contributor

fabpot commented Nov 28, 2024

Closing as this has been fixed already as mentioned above.

@alexndlm
Copy link

@fabpot, the issue is still actual.

@xabbuh
Copy link
Contributor

xabbuh commented Nov 29, 2024

@alexndlm Please create a small application then that allows to reproduce it.

@alexndlm
Copy link

For now, I cannot create the Tets app.

Could you please check this https://github.com/EasyCorp/EasyAdminBundle/actions/runs/12086509610/job/33705948788

The interesting thing is that for dev devs, it works.

@xabbuh
Copy link
Contributor

xabbuh commented Nov 29, 2024

That job installs version 7.1.0 of the Twig bridge which is probably the reason for the failure.

@alexndlm
Copy link

Got it, thanks.

And what about job with 6.4 - https://github.com/EasyCorp/EasyAdminBundle/actions/runs/12086509610/job/33705948476

@alexndlm
Copy link

Ohhhhhh. Got it. In that job exactly 6.4.0

@stof
Copy link
Member

stof commented Nov 29, 2024

@alexndlm the jobs is asking for it: https://github.com/EasyCorp/EasyAdminBundle/actions/runs/12086509610/job/33705948476#step:6:1

6.4 as version constraint only allows 6.4.0 as matching version.

@alexndlm
Copy link

Thanks. I finally got it.

@javiereguiluz
Copy link
Contributor

javiereguiluz commented Dec 1, 2024

@xabbuh after updating to the latest versions of all Symfony packages, I still see An exception has been thrown during the rendering of a template ("Warning: Undefined variable $_v0"). issue but only in Symfony 7.2, not the previous versions.

I prepared the smallest possible reproducer:

  • Clone https://github.com/javiereguiluz/ea-bug-reproducer
  • Run composer install
  • Run php bin/console doctrine:database:create (it's a SQLite database)
  • Run php bin/console doctrine:schema:create
  • Run symfony serve -d
  • Visit https://127.0.0.1:8001/admin

You'll see this exception:

Twig\Error\RuntimeError: An exception has been thrown during the rendering of a template ("Warning: Undefined variable $_v0").

at vendor/easycorp/easyadmin-bundle/templates/crud/index.html.twig:40
at Twig\Template->yieldBlock('content_title', array('pageName' => 'index', 'templateName' => 'crud/index', 'entities' => object(EntityCollection), 'paginator' => object(EntityPaginator), 'global_actions' => object(ActionCollection), 'batch_actions' => object(ActionCollection), 'filters' => object(FilterCollection), 'ea' => object(AdminContextProvider), 'app' => object(AppVariable), 'ea_field_assets' => object(AssetsDto), 'has_batch_actions' => true), array('head_metas' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_head_metas'), 'page_title' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_page_title'), 'head_stylesheets' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_head_stylesheets'), 'configured_stylesheets' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_configured_stylesheets'), 'head_favicon' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_head_favicon'), 'head_javascript' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_head_javascript'), 'importmap' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_importmap'), 'configured_javascripts' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_configured_javascripts'), 'configured_head_contents' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_configured_head_contents'), 'body' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_body'), 'body_attr' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_body_attr'), 'body_id' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_body_id'), 'body_class' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_body_class'), 'javascript_page_layout' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_javascript_page_layout'), 'javascript_page_color_scheme' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_javascript_page_color_scheme'), 'wrapper_wrapper' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_wrapper_wrapper'), 'flash_messages' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_flash_messages'), 'user_menu' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_user_menu'), 'wrapper' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_wrapper'), 'responsive_header' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_responsive_header'), 'responsive_header_logo' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_responsive_header_logo'), 'sidebar' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_sidebar'), 'header' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_header'), 'header_navbar' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_header_navbar'), 'header_logo' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_header_logo'), 'main_menu_wrapper' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_main_menu_wrapper'), 'content_top_header' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_content_top_header'), 'search_wrapper' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_search_wrapper'), 'search' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_search'), 'search_form' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_search_form'), 'search_form_filters' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_search_form_filters'), 'header_custom_menu_wrapper' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_header_custom_menu_wrapper'), 'header_custom_menu' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_header_custom_menu'), 'settings_dropdown_wrapper' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_settings_dropdown_wrapper'), 'content' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_content'), 'content_header_wrapper' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_content_header_wrapper'), 'content_header' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_content_header'), 'content_title' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_content_title'), 'content_help' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_content_help'), 'page_actions_wrapper' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_page_actions_wrapper'), 'page_actions' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_page_actions'), 'main' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_main'), 'content_footer_wrapper' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_content_footer_wrapper'), 'body_javascript' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_body_javascript'), 'configured_body_contents' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_configured_body_contents'), 'filters' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_filters'), 'global_actions' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_global_actions'), 'batch_actions' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_batch_actions'), 'table_head' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_table_head'), 'table_body' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_table_body'), 'entity_actions' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_entity_actions'), 'table_body_empty' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_table_body_empty'), 'table_footer' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_table_footer'), 'paginator' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_paginator'), 'delete_form' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_delete_form')))
(var/cache/dev/twig/98/98429a2e71318ee2f8afe3c02b60c7bb.php:208)
at __TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421->block_page_title(array('pageName' => 'index', 'templateName' => 'crud/index', 'entities' => object(EntityCollection), 'paginator' => object(EntityPaginator), 'global_actions' => object(ActionCollection), 'batch_actions' => object(ActionCollection), 'filters' => object(FilterCollection), 'ea' => object(AdminContextProvider), 'app' => object(AppVariable), 'ea_field_assets' => object(AssetsDto), 'has_batch_actions' => true), array('head_metas' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_head_metas'), 'page_title' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_page_title'), 'head_stylesheets' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_head_stylesheets'), 'configured_stylesheets' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_configured_stylesheets'), 'head_favicon' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_head_favicon'), 'head_javascript' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_head_javascript'), 'importmap' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_importmap'), 'configured_javascripts' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_configured_javascripts'), 'configured_head_contents' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_configured_head_contents'), 'body' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_body'), 'body_attr' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_body_attr'), 'body_id' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_body_id'), 'body_class' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_body_class'), 'javascript_page_layout' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_javascript_page_layout'), 'javascript_page_color_scheme' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_javascript_page_color_scheme'), 'wrapper_wrapper' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_wrapper_wrapper'), 'flash_messages' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_flash_messages'), 'user_menu' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_user_menu'), 'wrapper' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_wrapper'), 'responsive_header' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_responsive_header'), 'responsive_header_logo' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_responsive_header_logo'), 'sidebar' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_sidebar'), 'header' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_header'), 'header_navbar' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_header_navbar'), 'header_logo' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_header_logo'), 'main_menu_wrapper' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_main_menu_wrapper'), 'content_top_header' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_content_top_header'), 'search_wrapper' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_search_wrapper'), 'search' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_search'), 'search_form' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_search_form'), 'search_form_filters' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_search_form_filters'), 'header_custom_menu_wrapper' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_header_custom_menu_wrapper'), 'header_custom_menu' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_header_custom_menu'), 'settings_dropdown_wrapper' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_settings_dropdown_wrapper'), 'content' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_content'), 'content_header_wrapper' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_content_header_wrapper'), 'content_header' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_content_header'), 'content_title' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_content_title'), 'content_help' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_content_help'), 'page_actions_wrapper' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_page_actions_wrapper'), 'page_actions' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_page_actions'), 'main' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_main'), 'content_footer_wrapper' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_content_footer_wrapper'), 'body_javascript' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_body_javascript'), 'configured_body_contents' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_configured_body_contents'), 'filters' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_filters'), 'global_actions' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_global_actions'), 'batch_actions' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_batch_actions'), 'table_head' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_table_head'), 'table_body' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_table_body'), 'entity_actions' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_entity_actions'), 'table_body_empty' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_table_body_empty'), 'table_footer' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_table_footer'), 'paginator' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_paginator'), 'delete_form' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_delete_form')))
(vendor/twig/twig/src/Template.php:431)
at Twig\Template->yieldBlock('page_title', array('pageName' => 'index', 'templateName' => 'crud/index', 'entities' => object(EntityCollection), 'paginator' => object(EntityPaginator), 'global_actions' => object(ActionCollection), 'batch_actions' => object(ActionCollection), 'filters' => object(FilterCollection), 'ea' => object(AdminContextProvider), 'app' => object(AppVariable), 'ea_field_assets' => object(AssetsDto), 'has_batch_actions' => true), array('head_metas' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_head_metas'), 'page_title' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_page_title'), 'head_stylesheets' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_head_stylesheets'), 'configured_stylesheets' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_configured_stylesheets'), 'head_favicon' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_head_favicon'), 'head_javascript' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_head_javascript'), 'importmap' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_importmap'), 'configured_javascripts' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_configured_javascripts'), 'configured_head_contents' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_configured_head_contents'), 'body' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_body'), 'body_attr' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_body_attr'), 'body_id' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_body_id'), 'body_class' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_body_class'), 'javascript_page_layout' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_javascript_page_layout'), 'javascript_page_color_scheme' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_javascript_page_color_scheme'), 'wrapper_wrapper' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_wrapper_wrapper'), 'flash_messages' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_flash_messages'), 'user_menu' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_user_menu'), 'wrapper' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_wrapper'), 'responsive_header' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_responsive_header'), 'responsive_header_logo' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_responsive_header_logo'), 'sidebar' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_sidebar'), 'header' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_header'), 'header_navbar' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_header_navbar'), 'header_logo' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_header_logo'), 'main_menu_wrapper' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_main_menu_wrapper'), 'content_top_header' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_content_top_header'), 'search_wrapper' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_search_wrapper'), 'search' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_search'), 'search_form' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_search_form'), 'search_form_filters' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_search_form_filters'), 'header_custom_menu_wrapper' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_header_custom_menu_wrapper'), 'header_custom_menu' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_header_custom_menu'), 'settings_dropdown_wrapper' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_settings_dropdown_wrapper'), 'content' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_content'), 'content_header_wrapper' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_content_header_wrapper'), 'content_header' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_content_header'), 'content_title' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_content_title'), 'content_help' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_content_help'), 'page_actions_wrapper' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_page_actions_wrapper'), 'page_actions' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_page_actions'), 'main' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_main'), 'content_footer_wrapper' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_content_footer_wrapper'), 'body_javascript' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_body_javascript'), 'configured_body_contents' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_configured_body_contents'), 'filters' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_filters'), 'global_actions' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_global_actions'), 'batch_actions' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_batch_actions'), 'table_head' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_table_head'), 'table_body' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_table_body'), 'entity_actions' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_entity_actions'), 'table_body_empty' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_table_body_empty'), 'table_footer' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_table_footer'), 'paginator' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_paginator'), 'delete_form' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_delete_form')))
(var/cache/dev/twig/98/98429a2e71318ee2f8afe3c02b60c7bb.php:112)
at __TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421->{closure}()
(vendor/twig/twig/src/Extension/CoreExtension.php:2058)
at Twig\Extension\CoreExtension::captureOutput(object(Generator))
(var/cache/dev/twig/98/98429a2e71318ee2f8afe3c02b60c7bb.php:111)
at __TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421->doDisplay(array('pageName' => 'index', 'templateName' => 'crud/index', 'entities' => object(EntityCollection), 'paginator' => object(EntityPaginator), 'global_actions' => object(ActionCollection), 'batch_actions' => object(ActionCollection), 'filters' => object(FilterCollection), 'ea' => object(AdminContextProvider), 'app' => object(AppVariable), 'ea_field_assets' => object(AssetsDto), 'has_batch_actions' => true), array('head_metas' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_head_metas'), 'page_title' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_page_title'), 'head_stylesheets' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_head_stylesheets'), 'configured_stylesheets' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_configured_stylesheets'), 'head_favicon' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_head_favicon'), 'head_javascript' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_head_javascript'), 'importmap' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_importmap'), 'configured_javascripts' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_configured_javascripts'), 'configured_head_contents' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_configured_head_contents'), 'body' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_body'), 'body_attr' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_body_attr'), 'body_id' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_body_id'), 'body_class' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_body_class'), 'javascript_page_layout' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_javascript_page_layout'), 'javascript_page_color_scheme' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_javascript_page_color_scheme'), 'wrapper_wrapper' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_wrapper_wrapper'), 'flash_messages' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_flash_messages'), 'user_menu' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_user_menu'), 'wrapper' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_wrapper'), 'responsive_header' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_responsive_header'), 'responsive_header_logo' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_responsive_header_logo'), 'sidebar' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_sidebar'), 'header' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_header'), 'header_navbar' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_header_navbar'), 'header_logo' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_header_logo'), 'main_menu_wrapper' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_main_menu_wrapper'), 'content_top_header' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_content_top_header'), 'search_wrapper' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_search_wrapper'), 'search' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_search'), 'search_form' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_search_form'), 'search_form_filters' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_search_form_filters'), 'header_custom_menu_wrapper' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_header_custom_menu_wrapper'), 'header_custom_menu' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_header_custom_menu'), 'settings_dropdown_wrapper' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_settings_dropdown_wrapper'), 'content' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_content'), 'content_header_wrapper' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_content_header_wrapper'), 'content_header' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_content_header'), 'content_title' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_content_title'), 'content_help' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_content_help'), 'page_actions_wrapper' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_page_actions_wrapper'), 'page_actions' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_page_actions'), 'main' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_main'), 'content_footer_wrapper' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_content_footer_wrapper'), 'body_javascript' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_body_javascript'), 'configured_body_contents' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_configured_body_contents'), 'filters' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_filters'), 'global_actions' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_global_actions'), 'batch_actions' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_batch_actions'), 'table_head' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_table_head'), 'table_body' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_table_body'), 'entity_actions' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_entity_actions'), 'table_body_empty' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_table_body_empty'), 'table_footer' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_table_footer'), 'paginator' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_paginator'), 'delete_form' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_delete_form')))
(vendor/twig/twig/src/Template.php:387)
at Twig\Template->yield(array('pageName' => 'index', 'templateName' => 'crud/index', 'entities' => object(EntityCollection), 'paginator' => object(EntityPaginator), 'global_actions' => object(ActionCollection), 'batch_actions' => object(ActionCollection), 'filters' => object(FilterCollection), 'ea' => object(AdminContextProvider), 'app' => object(AppVariable), 'ea_field_assets' => object(AssetsDto), 'has_batch_actions' => true), array('head_metas' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_head_metas'), 'page_title' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_page_title'), 'head_stylesheets' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_head_stylesheets'), 'configured_stylesheets' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_configured_stylesheets'), 'head_favicon' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_head_favicon'), 'head_javascript' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_head_javascript'), 'importmap' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_importmap'), 'configured_javascripts' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_configured_javascripts'), 'configured_head_contents' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_configured_head_contents'), 'body' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_body'), 'body_attr' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_body_attr'), 'body_id' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_body_id'), 'body_class' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_body_class'), 'javascript_page_layout' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_javascript_page_layout'), 'javascript_page_color_scheme' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_javascript_page_color_scheme'), 'wrapper_wrapper' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_wrapper_wrapper'), 'flash_messages' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_flash_messages'), 'user_menu' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_user_menu'), 'wrapper' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_wrapper'), 'responsive_header' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_responsive_header'), 'responsive_header_logo' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_responsive_header_logo'), 'sidebar' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_sidebar'), 'header' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_header'), 'header_navbar' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_header_navbar'), 'header_logo' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_header_logo'), 'main_menu_wrapper' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_main_menu_wrapper'), 'content_top_header' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_content_top_header'), 'search_wrapper' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_search_wrapper'), 'search' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_search'), 'search_form' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_search_form'), 'search_form_filters' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_search_form_filters'), 'header_custom_menu_wrapper' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_header_custom_menu_wrapper'), 'header_custom_menu' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_header_custom_menu'), 'settings_dropdown_wrapper' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_settings_dropdown_wrapper'), 'content' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_content'), 'content_header_wrapper' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_content_header_wrapper'), 'content_header' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_content_header'), 'content_title' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_content_title'), 'content_help' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_content_help'), 'page_actions_wrapper' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_page_actions_wrapper'), 'page_actions' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_page_actions'), 'main' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_main'), 'content_footer_wrapper' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_content_footer_wrapper'), 'body_javascript' => array(object(__TwigTemplate_b9cd17cd5b40da14daa1a5898e4c8421), 'block_body_javascript'), 'configured_body_contents' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_configured_body_contents'), 'filters' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_filters'), 'global_actions' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_global_actions'), 'batch_actions' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_batch_actions'), 'table_head' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_table_head'), 'table_body' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_table_body'), 'entity_actions' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_entity_actions'), 'table_body_empty' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_table_body_empty'), 'table_footer' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_table_footer'), 'paginator' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_paginator'), 'delete_form' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_delete_form')))
(var/cache/dev/twig/99/99fc3d83a3ff07a30062991b4cfbcca6.php:77)
at __TwigTemplate_2e80ab6c9932371d4c54e110d0460c99->doDisplay(array('pageName' => 'index', 'templateName' => 'crud/index', 'entities' => object(EntityCollection), 'paginator' => object(EntityPaginator), 'global_actions' => object(ActionCollection), 'batch_actions' => object(ActionCollection), 'filters' => object(FilterCollection), 'ea' => object(AdminContextProvider), 'app' => object(AppVariable), 'ea_field_assets' => object(AssetsDto), 'has_batch_actions' => true), array('body_id' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_body_id'), 'body_class' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_body_class'), 'configured_head_contents' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_configured_head_contents'), 'configured_body_contents' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_configured_body_contents'), 'configured_stylesheets' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_configured_stylesheets'), 'configured_javascripts' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_configured_javascripts'), 'content_title' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_content_title'), 'page_actions' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_page_actions'), 'filters' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_filters'), 'global_actions' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_global_actions'), 'batch_actions' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_batch_actions'), 'main' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_main'), 'table_head' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_table_head'), 'table_body' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_table_body'), 'entity_actions' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_entity_actions'), 'table_body_empty' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_table_body_empty'), 'table_footer' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_table_footer'), 'paginator' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_paginator'), 'delete_form' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_delete_form')))
(vendor/twig/twig/src/Template.php:387)
at Twig\Template->yield(array('pageName' => 'index', 'templateName' => 'crud/index', 'entities' => object(EntityCollection), 'paginator' => object(EntityPaginator), 'global_actions' => object(ActionCollection), 'batch_actions' => object(ActionCollection), 'filters' => object(FilterCollection), 'ea' => object(AdminContextProvider), 'app' => object(AppVariable)), array('body_id' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_body_id'), 'body_class' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_body_class'), 'configured_head_contents' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_configured_head_contents'), 'configured_body_contents' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_configured_body_contents'), 'configured_stylesheets' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_configured_stylesheets'), 'configured_javascripts' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_configured_javascripts'), 'content_title' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_content_title'), 'page_actions' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_page_actions'), 'filters' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_filters'), 'global_actions' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_global_actions'), 'batch_actions' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_batch_actions'), 'main' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_main'), 'table_head' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_table_head'), 'table_body' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_table_body'), 'entity_actions' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_entity_actions'), 'table_body_empty' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_table_body_empty'), 'table_footer' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_table_footer'), 'paginator' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_paginator'), 'delete_form' => array(object(__TwigTemplate_2e80ab6c9932371d4c54e110d0460c99), 'block_delete_form')))
(vendor/twig/twig/src/Template.php:343)
at Twig\Template->display(array('pageName' => 'index', 'templateName' => 'crud/index', 'entities' => object(EntityCollection), 'paginator' => object(EntityPaginator), 'global_actions' => object(ActionCollection), 'batch_actions' => object(ActionCollection), 'filters' => object(FilterCollection)))
(vendor/twig/twig/src/Template.php:358)
at Twig\Template->render(array('pageName' => 'index', 'templateName' => 'crud/index', 'entities' => object(EntityCollection), 'paginator' => object(EntityPaginator), 'global_actions' => object(ActionCollection), 'batch_actions' => object(ActionCollection), 'filters' => object(FilterCollection)))
(vendor/twig/twig/src/TemplateWrapper.php:35)
at Twig\TemplateWrapper->render(array('pageName' => 'index', 'templateName' => 'crud/index', 'entities' => object(EntityCollection), 'paginator' => object(EntityPaginator), 'global_actions' => object(ActionCollection), 'batch_actions' => object(ActionCollection), 'filters' => object(FilterCollection)))
(vendor/twig/twig/src/Environment.php:320)
at Twig\Environment->render('@EasyAdmin/crud/index.html.twig', array('pageName' => 'index', 'templateName' => 'crud/index', 'entities' => object(EntityCollection), 'paginator' => object(EntityPaginator), 'global_actions' => object(ActionCollection), 'batch_actions' => object(ActionCollection), 'filters' => object(FilterCollection)))
(vendor/easycorp/easyadmin-bundle/src/EventListener/CrudResponseListener.php:49)
at EasyCorp\Bundle\EasyAdminBundle\EventListener\CrudResponseListener->onKernelView(object(ViewEvent), 'kernel.view', object(TraceableEventDispatcher))
(vendor/symfony/event-dispatcher/Debug/WrappedListener.php:115)
at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(ViewEvent), 'kernel.view', object(TraceableEventDispatcher))
(vendor/symfony/event-dispatcher/EventDispatcher.php:206)
at Symfony\Component\EventDispatcher\EventDispatcher->callListeners(array(object(WrappedListener), object(WrappedListener)), 'kernel.view', object(ViewEvent))
(vendor/symfony/event-dispatcher/EventDispatcher.php:56)
at Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object(ViewEvent), 'kernel.view')
(vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:122)
at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch(object(ViewEvent), 'kernel.view')
(vendor/symfony/http-kernel/HttpKernel.php:188)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
(vendor/symfony/http-kernel/HttpKernel.php:76)
at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
(vendor/symfony/http-kernel/Kernel.php:182)
at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
(vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
(vendor/autoload_runtime.php:29)
at require_once('ea-bug-reproducer/vendor/autoload_runtime.php')
(public/index.php:5)

@fabpot
Copy link
Contributor

fabpot commented Dec 1, 2024

@javiereguiluz Can you check that you have version 3.16.0?

@pentiminax
Copy link

I can confirm that I see the error on my side too with

  • symfony/twig-bridge 7.2.0 (9958f5a5b6640734fe4b24c18897191f77a02c61) and
  • EasyAdminBundle 4.18.0 (c1b694c1890d6f20858802d201cd7199212dc42a)
  • twig/twig 3.16.0 (9746573ca4bc1cd03a767a183faadaf84e0c31fa)

image

@pan93412
Copy link

pan93412 commented Dec 1, 2024

@javiereguiluz Can you check that you have version 3.16.0?

The composer.lock indeed indicates that it is on Twig 3.16.0:

https://github.com/javiereguiluz/ea-bug-reproducer/blob/0467a4bb1a9a37e28b1a091f6509b1521d2217bb/composer.lock#L7773-L7779

Note that I am using the latest Twig and symfony/twig-bridge (6cc64f2 and symfony/twig-bridge@9958f5a), and it is also reproducible.

CleanShot 2024-12-01 at 22 39 03@2x

@javiereguiluz
Copy link
Contributor

javiereguiluz commented Dec 1, 2024

@fabpot I made several tests:

EA version SF version Result
4.18.0 7.2.0 ❌ Fails
4.15.1 7.2.0 ❌ Fails
4.18.0 7.1.9 ✅ Works
4.15.1 7.1.9 ✅ Works

EA 4.16.0 introduced Twig Components; that's why I also test 4.15.1.

I did another test: EA 4.18 + SF 7.2 works if I downgrade Twig to 3.14.2. The first version that doesn't work is Twig 3.15.0.

@xabbuh
Copy link
Contributor

xabbuh commented Dec 1, 2024

I am looking into it.

pan93412 added a commit to database-playground/app-sf that referenced this issue Dec 1, 2024
Twig 3.15+ breaks EasyAdmin for some unknown reasons. Let's stick on 3.14 until EasyAdmin has fixed up their problem.

EasyCorp/EasyAdminBundle#6605
twigphp/Twig#4480
@bilik
Copy link

bilik commented Dec 1, 2024

Closing as this has been fixed already as mentioned above.

This closure was not fixed as mentioned above.

@ericmorand
Copy link
Contributor

This closure was not fixed as mentioned above.

Be prepared for the "acceptable breaking change" excuse.

@alexislefebvre

This comment was marked as resolved.

@fabpot
Copy link
Contributor

fabpot commented Dec 2, 2024

This closure was not fixed as mentioned above.

Be prepared for the "acceptable breaking change" excuse.

Please, be respectful. This comment is inappropriate, even more so as @xabbuh commented that he was looking at it.

@ericmorand
Copy link
Contributor

How is that inappropriate? It is exactly the excuse that your team used about another closed issue. Is this is inappropriate here, it was also inappropriate when your team used it.

Also note that this issue is still closed. If someone was looking at it, it would have been reopened.

@bilik
Copy link

bilik commented Dec 2, 2024

This closure was not fixed as mentioned above.

Be prepared for the "acceptable breaking change" excuse.

Please, be respectful. This comment is inappropriate, even more so as @xabbuh commented that he was looking at it.

Why isn't it reopen? I don't use EasyAdmin and I have the same problem.

@q1t1
Copy link

q1t1 commented Dec 2, 2024

Can everyone affected by this issue please check if symfony/symfony#59059 fixes it?

It is still present

@xabbuh
Copy link
Contributor

xabbuh commented Dec 2, 2024

@q1t1 Can you create a small example application that allows to reproduce your issue then please?

@javiereguiluz
Copy link
Contributor

@xabbuh yes, your change fixed the issue to me 🎉

Now I have SF 7.2.0 + Twig 3.16.0 + EA 4.18.0 and it's working 🙌 Thanks a lot 🙇

@q1t1
Copy link

q1t1 commented Dec 2, 2024

@q1t1 Can you create a small example application that allows to reproduce your issue then please?

Unfortunately, not at this time...

But I have SF 7.2.0 + Twig 3.16.0 + EA 4.18.0 too, and it doesn't work
If I downgrade to Twig 3.14.2, it is OK

@javiereguiluz
Copy link
Contributor

javiereguiluz commented Dec 2, 2024

In addition to the reproducer app, I just tested this on a real and complex Symfony app that was failing too, and the changes proposed by Christian fixed it too.

@q1t1 probably you did, but make sure to run rm -fr var/cache/* and symfony server:stop && symfony serve -d after changing that file in vendor/symfony/twig-bridge/NodeVisitor/TranslationDefaultDomainNodeVisitor.php

@xdrew
Copy link

xdrew commented Dec 2, 2024

Can everyone affected by this issue please check if symfony/symfony#59059 fixes it?

Mine issue also gone for SF 7.2.0 + Twig 3.16.0 + EA 4.18.0. Thanks

@RibJulien
Copy link

Can everyone affected by this issue please check if symfony/symfony#59059 fixes it?

Fix works for me with SF 7.2.0, Twig 3.16.0, EA 4.18.0

@fracsi
Copy link

fracsi commented Dec 2, 2024

Can everyone affected by this issue please check if symfony/symfony#59059 fixes it?

SF 7.2.0, Twig 3.15.0 / 3.16.0, EasyAdmin 4.18.0 - fix works

@q1t1
Copy link

q1t1 commented Dec 2, 2024

I managed to get it to work, thank you !

@fabpot
Copy link
Contributor

fabpot commented Dec 2, 2024

Thank you all for confirming.

@fabpot fabpot closed this as completed Dec 2, 2024
@pan93412
Copy link

pan93412 commented Dec 2, 2024

I have some tough time merging the commit to 7.3. I would try it later when this commit ported to 7.3.

CleanShot 2024-12-02 at 20 35 49@2x

xabbuh added a commit to symfony/symfony that referenced this issue Dec 2, 2024
This PR was merged into the 7.2 branch.

Discussion
----------

[TwigBridge] generate conflict-free variable names

| Q             | A
| ------------- | ---
| Branch?       | 7.2
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Issues        | Fix #58706 (comment), Fix EasyCorp/EasyAdminBundle#6605, Fix twigphp/Twig#4480
| License       | MIT

Commits
-------

1a38aca generate conflict-free variable names
symfony-splitter pushed a commit to symfony/twig-bridge that referenced this issue Dec 2, 2024
This PR was merged into the 7.2 branch.

Discussion
----------

[TwigBridge] generate conflict-free variable names

| Q             | A
| ------------- | ---
| Branch?       | 7.2
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Issues        | Fix symfony/symfony#58706 (comment), Fix EasyCorp/EasyAdminBundle#6605, Fix twigphp/Twig#4480
| License       | MIT

Commits
-------

1a38acac24 generate conflict-free variable names
@xabbuh
Copy link
Contributor

xabbuh commented Dec 2, 2024

@pan93412 done

@pan93412
Copy link

pan93412 commented Dec 2, 2024

@pan93412
Copy link

pan93412 commented Dec 2, 2024

I have some tough time merging the commit to 7.3. I would try it later when this commit ported to 7.3.

7.3 will be released on 2025: https://symfony.com/releases/7.3

I know. I have already adapted my project to 7.3-DEV.

@ServerExe
Copy link

ServerExe commented Dec 3, 2024

Unfortunately, this is still happening. Even with Symonfy 7.2 + EA 4.18 + Twig 3.16. The only fix here is to go back to twig/twig version 3.14.2.

@stof
Copy link
Member

stof commented Dec 3, 2024

@ServerExe are you using the 7.2.x-dev version of Symfony or a stable release ? The fix has been merged in Symfony (hence closing the bug) but not yet released.

@ServerExe
Copy link

No, I am using the stable version of 7.2. Not the dev one. Okay, so it's not yet released, got it :) Thank you!

@LaurentMarquet
Copy link

Hi, has someone found a solution? Because using SF 7.2.0, Twig 3.16.0 and EasyAdmin 4.20.0 I still have the same problem

@javiereguiluz
Copy link
Contributor

@LaurentMarquet this is a known problem of Symfony 7.2.0.

The bug has been fixed here: symfony/symfony#59059 but it won't be available until Symfony 7.2.1 is released.

@ericmorand
Copy link
Contributor

ericmorand commented Dec 7, 2024

@fabpot

Maybe because the discussion happened during the week-end?

And maybe it would not happen if you stopped introducing breaking changes into minor versions. Using the weekend excuse as a way to hide the fact that you don't care about us is disrespectful. I will say again in case today you are ready to listen: just emit a major version whenever you introduce breaking changes. We are not your beta testers.

@pan93412
Copy link

pan93412 commented Dec 7, 2024

And maybe it would not happen if you stopped introducing breaking changes into minor versions. Using the weekend excuse as a way to hide the fact that you don't care about us is disrespectful. I will say again in case today you are ready to listen: just emit a major version whenever you introduce breaking changes. We are not your beta testers.

I believe this is more of a bug than an intended breaking change.

I noticed this issue during the 7.2 beta as well, but I'm not sure if it's caused by EasyAdmin, Twig, or Symfony, so I didn't report it. Is there a chatroom or a place where I can submit a general bug report that can be discussed before creating an actual bug report? I'm unsure if Symfony's Slack is active.

@endroid
Copy link

endroid commented Dec 7, 2024

@ericmorand If you eat an apple from a tree and find a worm in it, don't blame the tree

@javiereguiluz
Copy link
Contributor

@pan93412 yes, it'd be very useful to us if you reported this issue when you found it. Next time, please do. Don't worry about reporting the issue in the "wrong" repository; we'll guide you, if needed, to open the issue in the most appropriate repository.

About https://symfony.com/slack activity, I can tell you that it's more active than ever so you can use that too if you prefer it. Thanks.

@stof
Copy link
Member

stof commented Dec 7, 2024

@ericmorand this bug was not caused by a BC break at all.
We did a refactoring in the implementation of {% trans_default_domain %} in symfony/twig-bridge and the new implementation had a bug (not intended at all) in a case that was not covered by an integration test of the feature (new tests have also been added to prevent this to happen again in the future). The reason why downgrading Twig also fixed the issue is because the internal implementation of Symfony switches between 2 implementations depending on the version of Twig to avoid reporting a deprecation warning, and the bug was only in 1 of them, not in both.

@Kelaven
Copy link

Kelaven commented Dec 9, 2024

Can everyone affected by this issue please check if symfony/symfony#59059 fixes it?

It works for me, thank you ! 🎼

@fabpot
Copy link
Contributor

fabpot commented Dec 11, 2024

Symfony 7.2.1 has been released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests