schmittjoh / JMSTranslationBundle

Puts the Symfony2 Translation Component on steroids
http://jmsyst.com/bundles/JMSTranslationBundle
426 stars 292 forks source link

Call to a member function getNames() on null | TranslateController.php:64 #417

Closed AxelBriche closed 7 years ago

AxelBriche commented 7 years ago

Hello, I have follow this doc http://jmsyst.com/bundles/JMSTranslationBundle/master/webinterface. The routing file is ok, same for truncate filter, and I have this error when I call /app_dev.php/_trans/ :

Uncaught PHP Exception
Symfony\Component\Debug\Exception\FatalErrorException: "Error: Call to a member function getNames() on null" at /Users/axelbriche/Sites/prince/vendor/jms/translation-bundle/JMS/TranslationBundle/Controller/TranslateController.php line 64 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalErrorException(code: 0): Error: Call to a member function getNames() on null at /Users/axelbriche/Sites/prince/vendor/jms/translation-bundle/JMS/TranslationBundle/Controller/TranslateController.php:64)"} []

Can you help me on this error please? Thanks.

AxelBriche commented 7 years ago

Fixed, I have forget to load JMSDiExtraBundle inside the AppKernel.php file.