Exceptions
Exception
Symfony\Component\HttpKernel\Exception\ NotFoundHttpException
in
src/WebBundle/Service/CollectionService.php
(line 722)
&& $collection['status'] != BiConst::STATE_WORK_CONTINUED
&& $collection['status'] != BiConst::STATE_CHECKING
&& $collection['publishDate'] == null //на основании https://te.remote.team/#/discus/7B2C1D62-1AFC-B81F-1E11-0DABFD79046D/
) {
// сказали не разделять 404 теперь
throw new NotFoundHttpException('collection not found');
}
//на основании https://te.remote.team/#/discus/7B2C1D62-1AFC-B81F-1E11-0DABFD79046D/
if ($collection['status'] > 3) {
$collection['status'] = 3;
$iNeedRedirect->getArrayForRedirect()
)
);
}
$collection = $this->collectionService->findCollectionInDb($factoryUrl, $collectionUrl);
if ($collection['return'] ?? null) {
return $collection['return'];
}
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 11:50:25 | php |
User Deprecated: Since symfony/http-foundation 5.3: "Symfony\Component\HttpFoundation\RequestStack::getMasterRequest()" is deprecated, use "getMainRequest()" instead. { "exception": {} } |
INFO 11:50:25 | request |
Matched route "_profiler". { "route": "_profiler", "route_parameters": { "_route": "_profiler", "_controller": "web_profiler.controller.profiler::panelAction", "token": "c18f80" }, "request_uri": "https://dev5.tile.expert/_profiler/c18f80", "method": "GET" } |
INFO 11:50:25 | php |
User Deprecated: Since symfony/http-foundation 5.3: "Symfony\Component\HttpFoundation\RequestStack::getMasterRequest()" is deprecated, use "getMainRequest()" instead. { "exception": {} } |
INFO 11:50:25 | 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 11:50:25 | 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 11:50:25 | php |
User Deprecated: Since symfony/framework-bundle 5.3: The "session.storage.native" service is deprecated, use "session.storage.factory.native" instead. { "exception": {} } |
INFO 11:50:25 | 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: collection not found at src/WebBundle/Service/CollectionService.php:722 at WebBundle\Service\CollectionService->findCollectionInDb() (src/WebBundle/Controller/TileController.php:110) at WebBundle\Controller\TileController->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) |