Exception detected!

Warning: count(): Parameter must be an array or an object that implements Countable

500Internal Server Error -ContextErrorException

Stack Trace

  1. insrc/PN/Bundle/CMSBundle/Repository/BloggerRepository.php at line 120 -
    1.             $clause .= SQL::inCreate($search->city'c.id'$where);
    2.         }
    3.         if (isset($search->country) AND count($search->country) > 0) {
    4.             $clause .= SQL::inCreate($search->country'c.country_id'$where);
    5.         }
    6.         $sql "SELECT b.id FROM blogger b "
  2. 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 )'))
  3. at count ('1')
    insrc/PN/Bundle/CMSBundle/Repository/BloggerRepository.php at line 120 +
  4. at BloggerRepository->getRandByCityOrCountry (object(stdClass))
    insrc/PN/Bundle/TravelBundle/Controller/FrontEnd/HotelController.php at line 40 +
  5. at HotelController->hotelAction ('pavillon-winter-luxor-hotel')
    inapp/bootstrap.php.cache at line 3272 +
  6. at HttpKernel->handleRaw (object(Request), '1')
    inapp/bootstrap.php.cache at line 3231 +
  7. at HttpKernel->handle (object(Request), '1', true)
    inapp/bootstrap.php.cache at line 3385 +
  8. at ContainerAwareHttpKernel->handle (object(Request), '1', true)
    inapp/bootstrap.php.cache at line 2585 +
  9. at Kernel->handle (object(Request))
    inweb/app.php at line 15 +

Logs  -

    Stack Trace (Plain Text) +