Warning: Division by zero
500 Internal Server Error - ContextErrorException
Stack Trace
-
in src/PointWeb/AppBundle/Classe/MyFunction.php at line 93
public static function pager($entity, $page, $limit)
{
$limit = $limit;
$nb_page = ceil(count($entity) / $limit);
if (isset($page)) {
if ($page > $nb_page) {
$page = $nb_page;
-
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 -
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 - at DefaultController ->newsAction (object(Request))
-
at
call_user_func_array
(array(object(DefaultController), 'newsAction'), array(object(Request)))
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 28