public function analyticItemAction($item)
{
$analytic = $this->container->get('analytic.model')->getSlug($item);
if (empty($analytic)) {
throw new NotFoundHttpException();
}
$em = $this->getDoctrine()->getEntityManager();
$connection = $em->getConnection();
$statement =
$connection->prepare("select left(date,4) as date,
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = $controller(...$arguments);
// view
if (!$response instanceof Response) {
$event = new ViewEvent($this, $request, $type, $response);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
// When using the HttpCache, you need to call the method in your front controller instead of relying on the configuration parameter
//Request::enableHttpMethodParameterOverride();
$request = Request::createFromGlobals();
try {
$response = $kernel->handle($request, HttpKernelInterface::MASTER_REQUEST, true); //$dev
} catch (Exception $e) {
if ($dev) {
if (property_exists($e, 'xdebug_message')) {
$message = $e->xdebug_message;
} else {
Level | Channel | Message |
---|---|---|
ERROR 19:44:03 | request |
Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "" at /home/troikaestate/public_html/src/Troika/RealEstateBundle/Controller/DefaultController.php line 80
{ "exception": { "xdebug_message": "<tr><th align='left' bgcolor='#f57900' colspan=\"5\"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException: in /home/troikaestate/public_html/src/Troika/RealEstateBundle/Controller/DefaultController.php on line <i>80</i></th></tr>\n<tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr>\n<tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr>\n<tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>0.0001</td><td bgcolor='#eeeeec' align='right'>361488</td><td bgcolor='#eeeeec'>{main}( )</td><td title='/home/troikaestate/public_html/web/app.php' bgcolor='#eeeeec'>.../app.php<b>:</b>0</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>2</td><td bgcolor='#eeeeec' align='center'>0.0061</td><td bgcolor='#eeeeec' align='right'>407888</td><td bgcolor='#eeeeec'>Symfony\\Component\\HttpKernel\\Kernel->handle( <span>$request = </span><span>class Symfony\\Component\\HttpFoundation\\Request { public $attributes = class Symfony\\Component\\HttpFoundation\\ParameterBag { protected $parameters = [...] }; public $request = class Symfony\\Component\\HttpFoundation\\ParameterBag { protected $parameters = [...] }; public $query = class Symfony\\Component\\HttpFoundation\\ParameterBag { protected $parameters = [...] }; public $server = class Symfony\\Component\\HttpFoundation\\ServerBag { protected $parameters = [...] }; public $files = class Symfony\\Component\\HttpFoundation\\FileBag { protected $parameters = [...] }; public $cookies = class Symfony\\Component\\HttpFoundation\\ParameterBag { protected $parameters = [...] }; public $headers = class Symfony\\Component\\HttpFoundation\\HeaderBag { protected $headers = [...]; protected $cacheControl = [...] }; protected $content = NULL; protected $languages = NULL; protected $charsets = NULL; protected $encodings = NULL; protected $acceptableContentTypes = NULL; protected $pathInfo = '/analytic/samye_dorogie_doma_moskvy_vygodnee_stalo_pokupat_v_gotovyh_zhk_no_stroyaschiesya_udivlyayut_lokaciyami_i_formatami'; protected $requestUri = '/analytic/samye_dorogie_doma_moskvy_vygodnee_stalo_pokupat_v_gotovyh_zhk_no_stroyaschiesya_udivlyayut_lokaciyami_i_formatami'; protected $baseUrl = ''; protected $basePath = NULL; protected $method = 'GET'; protected $format = NULL; protected $session = class Closure { virtual $closure = "$this->Symfony\\Component\\HttpKernel\\EventListener\\{closure}" }; protected $locale = NULL; protected $defaultLocale = 'ru'; private $preferredFormat = NULL; private $isHostValid = TRUE; private $isForwardedValid = TRUE }</span>, <span>$type = </span><span>1</span>, <span>$catch = </span><span>TRUE</span> )</td><td title='/home/troikaestate/public_html/web/app.php' bgcolor='#eeeeec'>.../app.php<b>:</b>52</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>3</td><td bgcolor='#eeeeec' align='center'>0.0984</td><td bgcolor='#eeeeec' align='right'>1101288</td><td bgcolor='#eeeeec'>Symfony\\Component\\HttpKernel\\HttpKernel->handle( <span>$request = </span><span>class Symfony\\Component\\HttpFoundation\\Request { public $attributes = class Symfony\\Component\\HttpFoundation\\ParameterBag { protected $parameters = [...] }; public $request = class Symfony\\Component\\HttpFoundation\\ParameterBag { protected $parameters = [...] }; public $query = class Symfony\\Component\\HttpFoundation\\ParameterBag { protected $parameters = [...] }; public $server = class Symfony\\Component\\HttpFoundation\\ServerBag { protected $parameters = [...] }; public $files = class Symfony\\Component\\HttpFoundation\\FileBag { protected $parameters = [...] }; public $cookies = class Symfony\\Component\\HttpFoundation\\ParameterBag { protected $parameters = [...] }; public $headers = class Symfony\\Component\\HttpFoundation\\HeaderBag { protected $headers = [...]; protected $cacheControl = [...] }; protected $content = NULL; protected $languages = NULL; protected $charsets = NULL; protected $encodings = NULL; protected $acceptableContentTypes = NULL; protected $pathInfo = '/analytic/samye_dorogie_doma_moskvy_vygodnee_stalo_pokupat_v_gotovyh_zhk_no_stroyaschiesya_udivlyayut_lokaciyami_i_formatami'; protected $requestUri = '/analytic/samye_dorogie_doma_moskvy_vygodnee_stalo_pokupat_v_gotovyh_zhk_no_stroyaschiesya_udivlyayut_lokaciyami_i_formatami'; protected $baseUrl = ''; protected $basePath = NULL; protected $method = 'GET'; protected $format = NULL; protected $session = class Closure { virtual $closure = "$this->Symfony\\Component\\HttpKernel\\EventListener\\{closure}" }; protected $locale = NULL; protected $defaultLocale = 'ru'; private $preferredFormat = NULL; private $isHostValid = TRUE; private $isForwardedValid = TRUE }</span>, <span>$type = </span><span>1</span>, <span>$catch = </span><span>TRUE</span> )</td><td title='/home/troikaestate/public_html/vendor/symfony/http-kernel/Kernel.php' bgcolor='#eeeeec'>.../Kernel.php<b>:</b>201</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>4</td><td bgcolor='#eeeeec' align='center'>0.0985</td><td bgcolor='#eeeeec' align='right'>1102080</td><td bgcolor='#eeeeec'>Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw( <span>$request = </span><span>class Symfony\\Component\\HttpFoundation\\Request { public $attributes = class Symfony\\Component\\HttpFoundation\\ParameterBag { protected $parameters = [...] }; public $request = class Symfony\\Component\\HttpFoundation\\ParameterBag { protected $parameters = [...] }; public $query = class Symfony\\Component\\HttpFoundation\\ParameterBag { protected $parameters = [...] }; public $server = class Symfony\\Component\\HttpFoundation\\ServerBag { protected $parameters = [...] }; public $files = class Symfony\\Component\\HttpFoundation\\FileBag { protected $parameters = [...] }; public $cookies = class Symfony\\Component\\HttpFoundation\\ParameterBag { protected $parameters = [...] }; public $headers = class Symfony\\Component\\HttpFoundation\\HeaderBag { protected $headers = [...]; protected $cacheControl = [...] }; protected $content = NULL; protected $languages = NULL; protected $charsets = NULL; protected $encodings = NULL; protected $acceptableContentTypes = NULL; protected $pathInfo = '/analytic/samye_dorogie_doma_moskvy_vygodnee_stalo_pokupat_v_gotovyh_zhk_no_stroyaschiesya_udivlyayut_lokaciyami_i_formatami'; protected $requestUri = '/analytic/samye_dorogie_doma_moskvy_vygodnee_stalo_pokupat_v_gotovyh_zhk_no_stroyaschiesya_udivlyayut_lokaciyami_i_formatami'; protected $baseUrl = ''; protected $basePath = NULL; protected $method = 'GET'; protected $format = NULL; protected $session = class Closure { virtual $closure = "$this->Symfony\\Component\\HttpKernel\\EventListener\\{closure}" }; protected $locale = NULL; protected $defaultLocale = 'ru'; private $preferredFormat = NULL; private $isHostValid = TRUE; private $isForwardedValid = TRUE }</span>, <span>$type = </span><span>1</span> )</td><td title='/home/troikaestate/public_html/vendor/symfony/http-kernel/HttpKernel.php' bgcolor='#eeeeec'>.../HttpKernel.php<b>:</b>81</td></tr>\n<tr><td bgcolor='#eeeeec' align='center'>5</td><td bgcolor='#eeeeec' align='center'>0.1286</td><td bgcolor='#eeeeec' align='right'>1684768</td><td bgcolor='#eeeeec'>Troika\\RealEstateBundle\\Controller\\DefaultController->analyticItemAction( <span>$item = </span><span>'samye_dorogie_doma_moskvy_vygodnee_stalo_pokupat_v_gotovyh_zhk_no_stroyaschiesya_udivlyayut_lokaciyami_i_formatami'</span> )</td><td title='/home/troikaestate/public_html/vendor/symfony/http-kernel/HttpKernel.php' bgcolor='#eeeeec'>.../HttpKernel.php<b>:</b>169</td></tr>\n" } } |
NotFoundHttpException |
---|
Symfony\Component\HttpKernel\Exception\NotFoundHttpException: at src/Troika/RealEstateBundle/Controller/DefaultController.php:80 at Troika\RealEstateBundle\Controller\DefaultController->analyticItemAction() (vendor/symfony/http-kernel/HttpKernel.php:169) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:81) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:201) at Symfony\Component\HttpKernel\Kernel->handle() (web/app.php:52) |