Exception detected!

Warning: Division by zero

500 Internal Server Error - ContextErrorException

Stack Trace

  1. in src/PointWeb/AppBundle/Service/Utile.php at line 24  -
    1.         } else {
    2.             $count $entity;
    3.         }
    4.         $nb_page ceil($count $limit);
    5.         if (isset($page)) {
    6.             if ($page $nb_page) {
  2. at ErrorHandler ->handleError ('2', 'Division by zero', '/home/technidiscount/home/http/src/PointWeb/AppBundle/Service/Utile.php', '24', array('entity' => '126', 'page' => '9', 'limit' => null, 'count' => '126'))
    in src/PointWeb/AppBundle/Service/Utile.php at line 24  +
  3. at Utile ->pager ('126', '9', null)
    in src/PointWeb/ProductBundle/Controller/DefaultController.php at line 60  +
  4. at DefaultController ->product_pager ('602', null, array('limit' => null, 'tri' => null, 'page' => '9'), object(ProductRepository), 'fr')
    in src/PointWeb/ProductBundle/Controller/DefaultController.php at line 35  +
  5. at DefaultController ->indexAction (object(Request), '602')
  6. at call_user_func_array (array(object(DefaultController), 'indexAction'), array(object(Request), '602'))
    in app/bootstrap.php.cache at line 3054  +
  7. at HttpKernel ->handleRaw (object(Request), '1')
    in app/bootstrap.php.cache at line 3016  +
  8. at HttpKernel ->handle (object(Request), '1', true)
    in app/bootstrap.php.cache at line 3165  +
  9. at ContainerAwareHttpKernel ->handle (object(Request), '1', true)
    in app/bootstrap.php.cache at line 2406  +
  10. at Kernel ->handle (object(Request))
    in web/app.php at line 30  +

Logs  -

Stack Trace (Plain Text)  +