Exception detected!

Call to a member function setPresentacion() on null

500 Internal Server Error - FatalThrowableError

Stack Trace

  1. in src/Sitio/ProductoBundle/Controller/DefaultController.php at line 47  -
    1.         ->findOneBy( array('Id' => $id));
    2.         if($this->getRequest()->getLocale() == 'en') {
    3.             $product->setPresentacion(str_replace('Piezas''Pieces'$product->getPresentacion()));
    4.         }
    5.         $products $this->getDoctrine()
  2. at DefaultController ->detallesAction ('Nuevos', '51')
    in app/bootstrap.php.cache at line 3276  +
  3. at HttpKernel ->handleRaw (object(Request), '1')
    in app/bootstrap.php.cache at line 3235  +
  4. at HttpKernel ->handle (object(Request), '1', true)
    in app/bootstrap.php.cache at line 3389  +
  5. at ContainerAwareHttpKernel ->handle (object(Request), '1', true)
    in app/bootstrap.php.cache at line 2594  +
  6. at Kernel ->handle (object(Request))
    in public_html/app.php at line 53  +

Logs  -

Stack Trace (Plain Text)  +