Exception detected!

Call to a member function format() on boolean

500 Internal Server Error - FatalThrowableError

Stack Trace

  1. in src/Home/HomeBundle/Controller/DescargaController.php at line 152  -
    1.         }else if($medio == 'PRENSA'){
    2.             $this->prensaService->setContainer($this->container);
    3.             $this->prensaService->updateEmCrud();
    4.             $this->prensaService->setDate($fecha->format('Ym'));
    5.             $noticias $this->prensaService->getNoticiasById($id,$idcliente);
    6.         }else if($medio == 'INTERNET'){
    7.             $this->internetService->setContainer($this->container);
  2. at DescargaController ->getNoticiaByID ('PRENSA', '57326', false)
    in src/Home/HomeBundle/Controller/DescargaController.php at line 1286  +
  3. at DescargaController ->descargarPdfAction ('Prensa', '57326', false)
  4. at call_user_func_array (array(object(DescargaController), 'descargarPdfAction'), array('Prensa', '57326', '2020-04-20de'))
    in app/bootstrap.php.cache at line 3148  +
  5. at HttpKernel ->handleRaw (object(Request), '1')
    in app/bootstrap.php.cache at line 3107  +
  6. at HttpKernel ->handle (object(Request), '1', true)
    in app/bootstrap.php.cache at line 3261  +
  7. at ContainerAwareHttpKernel ->handle (object(Request), '1', true)
    in app/bootstrap.php.cache at line 2490  +
  8. at Kernel ->handle (object(Request))
    in web/app.php at line 28  +

Logs  -

Stack Trace (Plain Text)  +