Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function getRootDocument() on null in /var/www/pimcore/src/AppBundle/Controller/FrontendController.php:30 Stack trace: #0 /var/www/pimcore/pimcore/lib/Pimcore/Bundle/CoreBundle/EventListener/EventedControllerListener.php(51): AppBundle\Controller\FrontendController->onKernelController(Object(Symfony\Component\HttpKernel\Event\FilterControllerEvent)) #1 /var/www/pimcore/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php(212): Pimcore\Bundle\CoreBundle\EventListener\EventedControllerListener->onKernelController(Object(Symfony\Component\HttpKernel\Event\FilterControllerEvent), 'kernel.controll...', Object(Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher)) #2 /var/www/pimcore/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php(44): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, 'kernel.controll...', Object(Symfony\Component\HttpKernel\Even in /var/www/pimcore/src/AppBundle/Controller/FrontendController.php on line 30