Easyadminbundle: Apache segmentation fault when extending list.html.twig

Created on 9 Mar 2016  路  6Comments  路  Source: EasyCorp/EasyAdminBundle

  • Symfony 2.8.3
  • EasyAdminBundle 1.11.7

I am reporting this issue but it may come from my configuration. When trying to extend list.html.twig I've got an Apache2 segmentation fault.

[Wed Mar 09 11:59:29.149309 2016] [core:notice] [pid 2790] AH00051:
child pid 30300 exit signal Segmentation fault (11), possible coredump in /etc/apache2

Here is the overrided template app/Resources/EasyAdminBundle/views/default/list.html.twig

{% extends '@EasyAdmin/default/list.html.twig' %}

What is weird is happens when extending list.html.twig or layout.html.twig, extending new.html.twig is OK.
When I copy / paste the original template and add my modifications, it works without problem.

bug unconfirmed

All 6 comments

I must confess that I don't have a clue about what could be happening. My (wild guess) is that maybe there is a circular inheritance issue somewhere. Could we have more information about the error? Apache just displays a coredump, but maybe the Symfony app logs something?

Friendly ping to ask if you could fix this issue. If not, maybe you could send to me the troubling template privately (javier.eguiluz @gmail.com) so I can debug the issue. Thanks!

Closing because of the lack of feedback. Hopefully it's fixed by now.

Hi @javier , well the segfault was pretty obvious:

in app/Resources/EasyAdminBundle/views/default/layout.html.twig

I extends:

{% extends 'EasyAdminBundle:default:layout.html.twig' %}

But Symfony includes again the custom one and not the bundle one, that's why I think there is an infinite loop.

Tried with:

{% extends '@EasyAdmin/default/layout.html.twig' %}

Same result. How to force sf to include the bundle one ?

Just if someone is still having this issue (as have I today), this is solution: https://github.com/symfony/symfony/issues/17557#issuecomment-313555650

@dvoracek-jakub I think this is solved as explained in this section: https://symfony.com/doc/master/bundles/EasyAdminBundle/book/list-search-show-configuration.html#overriding-the-default-templates-using-symfony-s-mechanism Read carefully the "DON'T DO THIS" and "DO THIS" sections in the code example to use the new Symfony feature that avoids the infinite loop.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BigMichi1 picture BigMichi1  路  3Comments

ghost picture ghost  路  3Comments

devkbsc picture devkbsc  路  3Comments

ziobudda picture ziobudda  路  4Comments

Wait4Code picture Wait4Code  路  3Comments