Warning: Division by zero
500 Internal Server Error - ContextErrorException
Stack Trace
-
in src/PointWeb/AppBundle/Service/Utile.php at line 24
} else {
$count = $entity;
}
$nb_page = ceil($count / $limit);
if (isset($page)) {
if ($page > $nb_page) {
-
at
ErrorHandler
->handleError
('2', 'Division by zero', '/home/technidiscount/home/http/src/PointWeb/AppBundle/Service/Utile.php', '24', array('entity' => '429', 'page' => '23', 'limit' => null, 'count' => '429'))
in src/PointWeb/AppBundle/Service/Utile.php at line 24 -
at
Utile
->pager
('429', '23', null)
in src/PointWeb/ProductBundle/Controller/DefaultController.php at line 60 -
at
DefaultController
->product_pager
('512', null, array('limit' => null, 'tri' => null, 'page' => '23'), object(ProductRepository), 'fr')
in src/PointWeb/ProductBundle/Controller/DefaultController.php at line 35 - at DefaultController ->indexAction (object(Request), '512')
-
at
call_user_func_array
(array(object(DefaultController), 'indexAction'), array(object(Request), '512'))
in app/bootstrap.php.cache at line 3054 -
at
HttpKernel
->handleRaw
(object(Request), '1')
in app/bootstrap.php.cache at line 3016 -
at
HttpKernel
->handle
(object(Request), '1', true)
in app/bootstrap.php.cache at line 3165 -
at
ContainerAwareHttpKernel
->handle
(object(Request), '1', true)
in app/bootstrap.php.cache at line 2406 -
at
Kernel
->handle
(object(Request))
in web/app.php at line 30