Exceptions
Exception
Symfony\Component\HttpKernel\Exception\ NotFoundHttpException
*
* throw $this->createNotFoundException('Page not found!');
*/
protected function createNotFoundException(string $message = 'Not Found', ?\Throwable $previous = null): NotFoundHttpException
{
return new NotFoundHttpException($message, $previous);
}
/**
* Returns an AccessDeniedException.
*
AbstractController->createNotFoundException()
in
src/FlexApp/Controller/ChatBController.php
(line 204)
throw new NotFoundHttpException();
}
if (!($boolDBSettingRepository->findOneByName('old_chat') && $boolDBSettingRepository->findOneByName('old_chat')->getVal())
&& !$this->isInterview()
) {
throw $this->createNotFoundException('old chat page has been disabled in admin panel');
}
/** @var ChatB|null $chat */
$chat = $this->chatBRepository->findOneBy(['token' => UserHelper::getInstance()->getToken()]);
in
vendor/symfony/http-kernel/HttpKernel.php
->
chatBPage
(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 03:18:55 | php |
User Deprecated: Since symfony/http-foundation 5.3: "Symfony\Component\HttpFoundation\RequestStack::getMasterRequest()" is deprecated, use "getMainRequest()" instead. { "exception": {} } |
INFO 03:18:55 | request |
Matched route "_profiler". { "route": "_profiler", "route_parameters": { "_route": "_profiler", "_controller": "web_profiler.controller.profiler::panelAction", "token": "504f93" }, "request_uri": "https://dev5.tile.expert/_profiler/504f93?panel=exception", "method": "GET" } |
INFO 03:18:55 | php |
User Deprecated: Since symfony/http-foundation 5.3: "Symfony\Component\HttpFoundation\RequestStack::getMasterRequest()" is deprecated, use "getMainRequest()" instead. { "exception": {} } |
INFO 03:18:55 | 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 03:18:55 | 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 03:18:55 | php |
User Deprecated: Since symfony/framework-bundle 5.3: The "session.storage.native" service is deprecated, use "session.storage.factory.native" instead. { "exception": {} } |
INFO 03:18:55 | 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: old chat page has been disabled in admin panel at vendor/symfony/framework-bundle/Controller/AbstractController.php:340 at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->createNotFoundException() (src/FlexApp/Controller/ChatBController.php:204) at FlexApp\Controller\ChatBController->chatBPage() (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) |