Notice: Trying to access array offset on value of type bool
500Internal Server Error -ContextErrorException
Stack Trace
-
insrc/PN/Bundle/CruiseBundle/Repository/CruisePeriodRepository.php at line 53
$statement->bindValue("date", $date);
$statement->execute();
$queryResult = $statement->fetch();
if ($queryResult['id'] == NULL) {
return NULL;
}
return $this->getEntityManager()->getRepository('CruiseBundle:CruisePeriod')->find($queryResult['id']);
- at
ErrorHandler->handleError
('8', 'Trying to access array offset on value of type bool', '/home/oriental/public_html/n_demo/src/PN/Bundle/CruiseBundle/Repository/CruisePeriodRepository.php', '53', array('cruiseId' => '56', 'date' => '2024-03-29', 'connection' => object(Connection), 'sql' => 'SELECT cp.id FROM cruise_period cp LEFT OUTER JOIN cruise_price cpc ON cpc.cruise_period_id=cp.id WHERE cp.cruise_id=:cruiseId AND (( DATEDIFF( cp.start_date , :date) >= 0 ) OR ( DATEDIFF( cp.end_date , :date) >= 0)) AND cp.deleted=:deleted ORDER BY DATEDIFF( cp.start_date , :date) LIMIT 1', 'statement' => object(Statement), 'queryResult' => false))
insrc/PN/Bundle/CruiseBundle/Repository/CruisePeriodRepository.php at line 53 - at
CruisePeriodRepository->getPeriodPriceByDate
('56', '2024-03-29')
insrc/PN/Bundle/CruiseBundle/Controller/FrontEnd/CruiseController.php at line 121 - at
CruiseController->showCruiseAction
('ms-movenpick-royal-lotus-nile-cruise-luxor-aswan')
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