Exceptions
Exception
Symfony\Component\HttpKernel\Exception\ NotFoundHttpException
in
src/WebBundle/Service/SearchService.php
(line 481)
$filterService->loadByUrlKey($keyNorm, $lc);
// из результата получаем новый key строки
$newKey = $filterService->getUrlKeyStr();
if (!$newKey) {// на каталог больше не перенаправляем
throw new NotFoundHttpException('Not Found');
}
if (
(strlen($newKey) != strlen($key)) or
(strlen($newKey) <= 0 and strlen($key)) or
if ($requestCatalogDTO->isAjax()) {
$this->loadByData($filterService);
$this->setSearchKey($filterService->getUrlKeyStr());
} else {
$this->loadByKeyFilters($filterService, $this->getSearchKey(), $this->getSearchSubKey());
}
if ($this->isRedirect()) {
return $this;
}
public function indexAction(Request $request, ?string $key = null, $subkey = null): Response
{
ini_set('memory_limit', '2048M');
$reqCatDTO = new RequestCatalogDTO($request, $key, $subkey);
$oSSearch = $this->searchService->setFilter($reqCatDTO);
// перенаправляем на верную страницу каталога
if ($oSSearch->isRedirect()) {
return $oSSearch->getRedirect();
}
in
vendor/symfony/http-kernel/HttpKernel.php
->
indexAction
(line 163)
$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);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 75)
{
$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) {
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 202)
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
}
Request::enableHttpMethodParameterOverride();
$request = Request::createFromGlobals();
define('BASE_URL', $request->getScheme() . '://tile.expert/');
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
<?php
require '../public/index.php';
Logs
Level | Channel | Message |
---|---|---|
INFO 15:49:23 | php |
User Deprecated: Since symfony/http-foundation 5.3: "Symfony\Component\HttpFoundation\RequestStack::getMasterRequest()" is deprecated, use "getMainRequest()" instead. { "exception": {} } |
INFO 15:49:23 | request |
Matched route "_profiler". { "route": "_profiler", "route_parameters": { "_route": "_profiler", "_controller": "web_profiler.controller.profiler::panelAction", "token": "999cfb" }, "request_uri": "https://dev5.tile.expert/_profiler/999cfb?panel=exception", "method": "GET" } |
INFO 15:49:23 | php |
User Deprecated: Since symfony/http-foundation 5.3: "Symfony\Component\HttpFoundation\RequestStack::getMasterRequest()" is deprecated, use "getMainRequest()" instead. { "exception": {} } |
INFO 15:49:23 | php |
User Deprecated: Since symfony/framework-bundle 5.2: Accessing the "security.csrf.token_manager" service directly from the container is deprecated, use dependency injection instead. { "exception": {} } |
INFO 15:49:23 | php |
User Deprecated: Since symfony/framework-bundle 5.3: The "session.storage.factory.service" service is deprecated, use "session.storage.factory.native", "session.storage.factory.php_bridge" or "session.storage.factory.mock_file" instead. { "exception": {} } |
INFO 15:49:23 | php |
User Deprecated: Since symfony/framework-bundle 5.3: The "session.storage.native" service is deprecated, use "session.storage.factory.native" instead. { "exception": {} } |
INFO 15:49:23 | php |
User Deprecated: Since symfony/framework-bundle 5.3: The "session.storage.metadata_bag" service is deprecated, create your own "session.storage.factory" instead. { "exception": {} } |
Stack Trace
NotFoundHttpException
|
---|
Symfony\Component\HttpKernel\Exception\NotFoundHttpException: Not Found at src/WebBundle/Service/SearchService.php:481 at WebBundle\Service\SearchService->loadByKeyFilters() (src/WebBundle/Service/SearchService.php:115) at WebBundle\Service\SearchService->setFilter() (src/WebBundle/Controller/CatalogController.php:51) at WebBundle\Controller\CatalogController->indexAction() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:75) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:202) at Symfony\Component\HttpKernel\Kernel->handle() (public/index.php:34) at require('/var/www/dev5.tile.expert/public/index.php') (web/index.php:3) |