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.
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.