Exception detected!

Call to a member function getLevel() on null

500 Internal Server Error - FatalThrowableError

Stack Trace

  1. in src/WebBundle/Controller/BaseController.phphtml at line 83  -
    1.     public function addSecondLevelModule($moduleId)
    2.     {
    3.         $module $this->getModuleDoctrine()->moduleRep->find($moduleId);
    4.         $level $module->getLevel();
    5.         if ($level == 2) {
    6.             $this->addModuleNum($moduleId);
    7.         }
  2. at BaseController ->addSecondLevelModule ('' id '')
    in src/WebBundle/Controller/GetRouterController.phphtml at line 31  +
  3. at GetRouterController ->getlistAction (object(Request))
  4. at call_user_func_array (array(object(GetRouterController), 'getlistAction'), array(object(Request)))
    in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.phphtml at line 153  +
  5. at HttpKernel ->handleRaw (object(Request), '1')
    in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.phphtml at line 68  +
  6. at HttpKernel ->handle (object(Request), '1', true)
    in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.phphtml at line 169  +
  7. at Kernel ->handle (object(Request))
    in web/app.phphtml at line 14  +

Logs  -

Stack Trace (Plain Text)  +