Warning: count(): Parameter must be an array or an object that implements Countable
500Internal Server Error -ContextErrorException
Stack Trace
-
insrc/PN/Bundle/TravelBundle/Repository/PackageRepository.php at line 312
$clause .= SQL:: inCreate($searchFiltered->country, 'c.country_id', $where);
}
if (isset($searchFiltered->packageTypeCategory) and count($searchFiltered->packageTypeCategory) > 0) {
$clause .= SQL::inCreate($searchFiltered->packageTypeCategory, 'ptc.id', $where);
}
- 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/TravelBundle/Repository/PackageRepository.php', '312', array('search' => object(stdClass), 'count' => true, 'sort' => null, 'startLimit' => null, 'endLimit' => null, 'connection' => object(Connection), 'where' => ' AND ', 'clause' => ' WHERE (( DATEDIFF( pp.start_date , '2025-06-13') >= 0 ) OR ( DATEDIFF( pp.end_date , '2025-06-13') >= 0)) AND ( p.deleted = 0 ) AND ( p.publish = 1 )', 'sortSQL' => array(' RAND() '), 'searchFiltered' => object(stdClass), 'value' => '1', 'key' => 'sort'))
- at
count
('8')
insrc/PN/Bundle/TravelBundle/Repository/PackageRepository.php at line 312 - at
PackageRepository->filter
(object(stdClass), true)
insrc/PN/Bundle/TravelBundle/Controller/FrontEnd/PackageController.php at line 39 - at
PackageController->filterAction
(object(Request), '1', object(stdClass))
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