Exception detected!

Neither the property "category" nor one of the methods "category()", "getcategory()"/"iscategory()" or "__call()" exist and have public access in class "PointWeb\ProductBundle\Entity\Product" in PointWebProductBundle:Default:index.html.twig at line 4.

500 Internal Server Error - Twig_Error_Runtime

Stack Trace

  1. in app/cache/prod/classes.php at line 5517  -
    1. if ($ignoreStrictCheck || !$this->env->isStrictVariables()) {
    2. return;
    3. }
    4. throw new Twig_Error_Runtime(sprintf('Neither the property "%1$s" nor one of the methods "%1$s()", "get%1$s()"/"is%1$s()" or "__call()" exist and have public access in class "%2$s".'$itemget_class($object)), -1$this->getTemplateName());
    5. }
    6. if ($isDefinedTest) {
    7. return true;
  2. at Twig_Template ->getAttribute (object(Product), 'category', array())
    in app/cache/prod/twig/47/473339eec03eb379985d4179570aa6908ec467823e18eda35a53d4fa774016e1.php at line 32  +
  3. at __TwigTemplate_a7f05b0ae446b357c99606388a7b9183db9a08fc59497c3fdf8a40279b5e42e3 ->doDisplay (array('product' => array(object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product)), 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => false), 'app' => object(GlobalVariables), 'base' => 'http://explorair.com/'), array())
    in app/cache/prod/classes.php at line 5391  +
  4. at Twig_Template ->displayWithErrorHandling (array('product' => array(object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product)), 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => false), 'app' => object(GlobalVariables), 'base' => 'http://explorair.com/'), array())
    in app/cache/prod/classes.php at line 5367  +
  5. at Twig_Template ->display (array('product' => array(object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product))))
    in app/cache/prod/classes.php at line 5374  +
  6. at Twig_Template ->render (array('product' => array(object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product))))
    in vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php at line 50  +
  7. at TwigEngine ->render ('PointWebProductBundle:Default:index.html.twig', array('product' => array(object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product))))
    in vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php at line 67  +
  8. at TwigEngine ->render ('PointWebProductBundle:Default:index.html.twig', array('product' => array(object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product))))
    in vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/Debug/TimedTwigEngine.php at line 50  +
  9. at TimedTwigEngine ->render ('PointWebProductBundle:Default:index.html.twig', array('product' => array(object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product))))
    in vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php at line 92  +
  10. at TwigEngine ->renderResponse ('PointWebProductBundle:Default:index.html.twig', array('product' => array(object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product))), null)
    in vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php at line 176  +
  11. at Controller ->render ('PointWebProductBundle:Default:index.html.twig', array('product' => array(object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product))))
    in src/PointWeb/ProductBundle/Controller/DefaultController.php at line 12  +
  12. at DefaultController ->indexAction ()
  13. at call_user_func_array (array(object(DefaultController), 'indexAction'), array())
    in app/bootstrap.php.cache at line 3054  +
  14. at HttpKernel ->handleRaw (object(Request), '1')
    in app/bootstrap.php.cache at line 3016  +
  15. at HttpKernel ->handle (object(Request), '1', true)
    in app/bootstrap.php.cache at line 3165  +
  16. at ContainerAwareHttpKernel ->handle (object(Request), '1', true)
    in app/bootstrap.php.cache at line 2406  +
  17. at Kernel ->handle (object(Request))
    in web/app.php at line 28  +

Logs  -

Stack Trace (Plain Text)  +