Exception detected!

Warning: Division by zero

500 Internal Server Error - ContextErrorException

Stack Trace

  1. in src/PointWeb/AppBundle/Classe/MyFunction.php at line 93  -
    1.     public static function pager($entity$page$limit)
    2.     {
    3.         $limit $limit;
    4.         $nb_page ceil(count($entity) / $limit);
    5.         if (isset($page)) {
    6.             if ($page $nb_page) {
    7.                 $page $nb_page;
  2. at ErrorHandler ->handleError ('2', 'Division by zero', '/home/multiservices/home/http/src/PointWeb/AppBundle/Classe/MyFunction.php', '93', array('entity' => array(object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product)), 'page' => '1', 'limit' => null))
    in src/PointWeb/AppBundle/Classe/MyFunction.php at line 93  +
  3. at MyFunction ::pager (array(object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product), object(Product)), '1', null)
    in src/PointWeb/ProductBundle/Controller/DefaultController.php at line 46  +
  4. at DefaultController ->categoryProductListAction (object(Request), '2')
  5. at call_user_func_array (array(object(DefaultController), 'categoryProductListAction'), array(object(Request), '2'))
    in app/bootstrap.php.cache at line 3054  +
  6. at HttpKernel ->handleRaw (object(Request), '1')
    in app/bootstrap.php.cache at line 3016  +
  7. at HttpKernel ->handle (object(Request), '1', true)
    in app/bootstrap.php.cache at line 3165  +
  8. at ContainerAwareHttpKernel ->handle (object(Request), '1', true)
    in app/bootstrap.php.cache at line 2406  +
  9. at Kernel ->handle (object(Request))
    in web/app.php at line 28  +

Logs  -

Stack Trace (Plain Text)  +