Warning: count(): Parameter must be an array or an object that implements Countable
500Internal Server Error -ContextErrorException
Stack Trace
-
insrc/PN/Bundle/CMSBundle/Repository/BloggerRepository.php at line 120
$clause .= SQL::inCreate($search->city, 'c.id', $where);
}
if (isset($search->country) AND count($search->country) > 0) {
$clause .= SQL::inCreate($search->country, 'c.country_id', $where);
}
$sql = "SELECT b.id FROM blogger b "
- at ErrorHandler->handleError ('2', 'count(): Parameter must be an array or an object that implements Countable', '/home/oriental/public_html/n_demo/src/PN/Bundle/CMSBundle/Repository/BloggerRepository.php', '120', array('search' => object(stdClass), 'limit' => '1', 'connection' => object(Connection), 'where' => ' WHERE ', 'clause' => ' WHERE ( b.publish = 1 )'))
- at
count
('1')
insrc/PN/Bundle/CMSBundle/Repository/BloggerRepository.php at line 120 - at
BloggerRepository->getRandByCityOrCountry
(object(stdClass))
insrc/PN/Bundle/TravelBundle/Controller/FrontEnd/HotelController.php at line 40 - at
HotelController->hotelAction
('mövenpick-resort-aswan-5-stars-hotels-in-egypt')
inapp/bootstrap.php.cache at line 3272 - at
HttpKernel->handleRaw
(object(Request), '1')
inapp/bootstrap.php.cache at line 3231 - at
HttpKernel->handle
(object(Request), '1', true)
inapp/bootstrap.php.cache at line 3385 - at
ContainerAwareHttpKernel->handle
(object(Request), '1', true)
inapp/bootstrap.php.cache at line 2585 - at
Kernel->handle
(object(Request))
inweb/app.php at line 15