EasyAdminBundle icon indicating copy to clipboard operation
EasyAdminBundle copied to clipboard

Call to a member function getTemplatePath()

Open rsantellan opened this issue 11 months ago • 3 comments

Describe the bug when create custom action and render twig. it's worked before version 4.16

Duplicated of #6513

To Reproduce ... return $this->render(view: 'create.html.twig', parameters: [ 'form' => $form, ]); ... (OPTIONAL) Additional context

Image

rsantellan avatar Jan 25 '25 12:01 rsantellan

This error is explained here and a pull request has already been made:

https://github.com/EasyCorp/EasyAdminBundle/pull/6765

Michelium avatar Jan 28 '25 13:01 Michelium

This error is explained here and a pull request has already been made:

#6765

Hi! The weird thing is that I have a custom controller with two actions.

The first action works like a charm when is the first out of a EasyAdmin crud, but on the second it breaks.

rsantellan avatar Jan 28 '25 13:01 rsantellan

Hello ! I'm having exactly the same issue despite using dashboard and crud controllers only

Image

(the issue is random, sometimes it works, sometimes it crashes with that error) I'm running v4.24.7 on frankenphp worker mode.

I have checked this out too https://github.com/EasyCorp/EasyAdminBundle/issues/5986 which isn't exactly related, but seems very similar

Deksor avatar May 31 '25 20:05 Deksor

Hello ! I'm having exactly the same issue despite using dashboard and crud controllers only

Image

(the issue is random, sometimes it works, sometimes it crashes with that error) I'm running v4.24.7 on frankenphp worker mode.

I have checked this out too #5986 which isn't exactly related, but seems very similar

I have exactly same issue with FrankenPHP worker mode.

EasyAdmin 4.24.9 FrankenPHP 1.9 with PHP 8.4.10

I have this error too:

An exception has been thrown during the rendering of a template ("Call to a member function getI18n() on null") in @!EasyAdmin/layout.html.twig at line 2.

jbcr avatar Jul 18 '25 14:07 jbcr