Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function getTranslation() on null in /elizabeth2018/src/AppBundle/Services/SwitchLanguage/SwitchLanguage.php:134 Stack trace: #0 /elizabeth2018/src/AppBundle/Services/SwitchLanguage/SwitchLanguage.php(86): AppBundle\Services\SwitchLanguage\SwitchLanguage->getAvailableLanguagesUrlsForCurrentPath() #1 /elizabeth2018/src/AppBundle/Services/SwitchLanguage/SwitchLanguage.php(66): AppBundle\Services\SwitchLanguage\SwitchLanguage->prepareAvailableLanguagesUrls() #2 /elizabeth2018/src/AppBundle/Twig/SwitchLanguage/SwitchLanguageExtension.php(67): AppBundle\Services\SwitchLanguage\SwitchLanguage->getAvailableLanguagesUrls() #3 /elizabeth2018/var/cache/prod/twig/52/5234524991d06355c6c5e8c9d7a899f5384d6c4c6ea3fdef5fed2a377251317b.php(152): AppBundle\Twig\SwitchLanguage\SwitchLanguageExtension->getSeoLangAlternates('pl') #4 /elizabeth2018/vendor/twig/twig/lib/Twig/Template.php(189): __TwigTemplate_3415a68389e57905d51d612c5805fbf94a5b1bbd3aef in /elizabeth2018/src/AppBundle/Services/SwitchLanguage/SwitchLanguage.php on line 134