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/CruiseBundle/Repository/CruiseRepository.php at line 95 -
    1.         }
    2.         if (isset($searchFiltered->cruiseCategory) and count($searchFiltered->cruiseCategory) > 0) {
    3.             $clause .= SQL::inCreate($searchFiltered->cruiseCategory'ccat.id'$where);
    4.         }
  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/CruiseBundle/Repository/CruiseRepository.php', '95', array('search' => object(stdClass), 'count' => true, 'sort' => null, 'startLimit' => null, 'endLimit' => null, 'connection' => object(Connection), 'where' => ' AND ', 'having' => false, 'havingClause' => '', 'clause' => ' WHERE (( DATEDIFF( cp.start_date , '2025-09-11') >= 0 ) OR ( DATEDIFF( cp.end_date , '2025-09-11') >= 0)) AND ( c.deleted = 0 ) AND ( c.publish = 1 )', 'searchFiltered' => object(stdClass), 'value' => '1', 'key' => 'sort'))
  3. at count ('3')
    insrc/PN/Bundle/CruiseBundle/Repository/CruiseRepository.php at line 95 +
  4. at CruiseRepository->filter (object(stdClass), true)
    insrc/PN/Bundle/CruiseBundle/Controller/FrontEnd/CruiseController.php at line 61 +
  5. at CruiseController->filterAction (object(Request), '1', 'luxury-cruises')
    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) +