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(Article), object(Article), object(Article), object(Article), object(Article), object(Article)), 'page' => '2', 'limit' => null))
    in src/PointWeb/AppBundle/Classe/MyFunction.php at line 93  +
  3. at MyFunction ::pager (array(object(Article), object(Article), object(Article), object(Article), object(Article), object(Article)), '2', null)
    in src/PointWeb/AppBundle/Controller/DefaultController.php at line 43  +
  4. at DefaultController ->newsAction (object(Request))
  5. at call_user_func_array (array(object(DefaultController), 'newsAction'), array(object(Request)))
    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)  +