Exception detected!

Fatal error: Call to a member function getProductAttributes() on null

500 Internal Server Error - FatalThrowableError

Stack Trace

  1. in src/PointWeb/ProductBundle/Controller/DefaultController.php at line 209  -
    1.     {
    2.         /** @var Product $product */
    3.         $product $entity;
    4.         $productAttributes $product->getProductAttributes();
    5.         $attributes = array();
    6.         $items = array();
  2. at DefaultController ->getAttributes (null)
    in src/PointWeb/ProductBundle/Controller/DefaultController.php at line 190  +
  3. at DefaultController ->showAction ('181', object(Request))
  4. at call_user_func_array (array(object(DefaultController), 'showAction'), array('181', object(Request)))
    in app/bootstrap.php.cache at line 3053  +
  5. at HttpKernel ->handleRaw (object(Request), '1')
    in app/bootstrap.php.cache at line 3015  +
  6. at HttpKernel ->handle (object(Request), '1', true)
    in app/bootstrap.php.cache at line 3164  +
  7. at ContainerAwareHttpKernel ->handle (object(Request), '1', true)
    in app/bootstrap.php.cache at line 2405  +
  8. at Kernel ->handle (object(Request))
    in web/app.php at line 28  +

Logs  -

Stack Trace (Plain Text)  +