Symfony Exception

NotFoundHttpException

HTTP 404 Not Found

Sorry, we couldn't find what you asked for (404).

Exception

Symfony\Component\HttpKernel\Exception\ NotFoundHttpException

Show exception properties
Symfony\Component\HttpKernel\Exception\NotFoundHttpException {#706
  -statusCode: 404
  -headers: []
}
  1.      *
  2.      *     throw $this->createNotFoundException('Page not found!');
  3.      */
  4.     protected function createNotFoundException(string $message 'Not Found', ?\Throwable $previous null): NotFoundHttpException
  5.     {
  6.         return new NotFoundHttpException($message$previous);
  7.     }
  8.     /**
  9.      * Returns an AccessDeniedException.
  10.      *
AbstractController->createNotFoundException('Sorry, we couldn\'t find what you asked for (404).') in src/Controller/Front/UserController.php (line 63)
  1.     {
  2.         /** @var User|null $user */
  3.         $user $em->getRepository(User::class)->findOneBy(['slug' => $slug]);
  4.         if ($user === null || empty($user->getRoles()) || ! is_array($user->getRoles()) || ! in_array('ROLE_TOURNAMENT_MANAGER'$user->getRoles(), true)) {
  5.             throw $this->createNotFoundException($translator->trans('front.globals.notfound.message'));
  6.         }
  7.         $tournaments = [];
  8.         if (class_exists('App\Model\Events\TournamentLicenses')) {
in vendor/symfony/http-kernel/HttpKernel.php -> tournaments (line 181)
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response$event);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  2.         $this->requestStack->push($request);
  3.         $response null;
  4.         try {
  5.             return $response $this->handleRaw($request$type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.     ) {
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response $this->kernel->handle($this->request);
  6.         if (Kernel::VERSION_ID >= 60400) {
  7.             $response->send(false);
  8.             if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in vendor/autoload_runtime.php -> run (line 29)
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/home/innerson/www/tcg.events/vendor/autoload_runtime.php') in public/index.php (line 7)
  1. declare(strict_types 1);
  2. use App\Kernel;
  3. require_once dirname(__DIR__) . '/vendor/autoload_runtime.php';
  4. return static function (array $context) {
  5.     return new Kernel($context['APP_ENV'], (bool)$context['APP_DEBUG']);
  6. };

Logs 1

Level Message
info 05:41:39 User Deprecated: Method "Symfony\Component\HttpKernel\Bundle\Bundle::build()" might add "void" as a native return type declaration in the future. Do the same in child class "Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle" now to avoid errors or add an explicit @return annotation to suppress this message.
{
    "exception": {}
}
debug 05:41:39 Warning: Zend OPcache API is restricted by "restrict_api" configuration directive
{
    "exception": {
        "severity": 2,
        "file": "/home/innerson/www/tcg.events/vendor/symfony/error-handler/DebugClassLoader.php",
        "line": 292,
        "trace": [
            {
                "file": "/home/innerson/www/tcg.events/vendor/doctrine/doctrine-bundle/DoctrineBundle.php",
                "line": 130,
                "function": "loadClass",
                "class": "Symfony\\Component\\ErrorHandler\\DebugClassLoader",
                "type": "->"
            }
        ],
        "count": 236
    }
}
info 05:41:39 Matched route "users_tournaments".
{
    "route": "users_tournaments",
    "route_parameters": {
        "_route": "users_tournaments",
        "_controller": "App\\Controller\\Front\\UserController::tournaments",
        "_locale": "en",
        "slug": "new-user-19"
    },
    "request_uri": "https://tcg.events/en/users/new-user-19/tournaments",
    "method": "GET"
}
debug 05:41:39 Warning: Zend OPcache API is restricted by "restrict_api" configuration directive
{
    "exception": {
        "severity": 2,
        "file": "/home/innerson/www/tcg.events/vendor/symfony/security-core/Authorization/AccessDecisionManager.php",
        "line": 30,
        "trace": [
            {
                "function": "handleError",
                "class": "Symfony\\Component\\ErrorHandler\\ErrorHandler",
                "type": "->"
            }
        ],
        "count": 1
    }
}
debug 05:41:39 Checking for authenticator support.
{
    "firewall_name": "main",
    "authenticators": 1
}
debug 05:41:39 Checking support on authenticator.
{
    "firewall_name": "main",
    "authenticator": "App\\Security\\TCGEventsAuthenticator"
}
debug 05:41:39 Authenticator does not support the request.
{
    "firewall_name": "main",
    "authenticator": "App\\Security\\TCGEventsAuthenticator"
}
info 05:41:39 User Deprecated: Since symfony/framework-bundle 6.4: The "annotations.cached_reader" service is deprecated without replacement.
{
    "exception": {}
}
info 05:41:39 User Deprecated: Since symfony/framework-bundle 6.4: The "annotations.reader" service is deprecated without replacement.
{
    "exception": {}
}
debug 05:41:39 Warning: Zend OPcache API is restricted by "restrict_api" configuration directive
{
    "exception": {
        "severity": 2,
        "file": "/home/innerson/www/tcg.events/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationReader.php",
        "line": 38,
        "trace": [
            {
                "function": "handleError",
                "class": "Symfony\\Component\\ErrorHandler\\ErrorHandler",
                "type": "->"
            }
        ],
        "count": 1
    }
}
debug 05:41:39 Warning: Zend OPcache API is restricted by "restrict_api" configuration directive
{
    "exception": {
        "severity": 2,
        "file": "/home/innerson/www/tcg.events/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php",
        "line": 61,
        "trace": [
            {
                "function": "handleError",
                "class": "Symfony\\Component\\ErrorHandler\\ErrorHandler",
                "type": "->"
            }
        ],
        "count": 2
    }
}
debug 05:41:39 Warning: Zend OPcache API is restricted by "restrict_api" configuration directive
{
    "exception": {
        "severity": 2,
        "file": "/home/innerson/www/tcg.events/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php",
        "line": 157,
        "trace": [
            {
                "function": "handleError",
                "class": "Symfony\\Component\\ErrorHandler\\ErrorHandler",
                "type": "->"
            }
        ],
        "count": 1
    }
}
info 05:41:39 User Deprecated: Since symfony/framework-bundle 6.4: The "annotations.cache_adapter" service is deprecated without replacement.
{
    "exception": {}
}
info 05:41:39 User Deprecated: The annotation mapping driver is deprecated and will be removed in Doctrine ORM 3.0, please migrate to the attribute or XML driver. (AnnotationDriver.php:68 called by getDoctrine_Orm_DefaultEntityManagerService.php:56, https://github.com/doctrine/orm/issues/10098, package doctrine/orm)
{
    "exception": {}
}
info 05:41:39 User Deprecated: In ORM 3.0, the AttributeDriver will report fields for the classes where they are declared. This may uncover invalid mapping configurations. To opt into the new mode also with the AnnotationDriver today, set the "reportFieldsWhereDeclared" constructor parameter to true. (AnnotationDriver.php:78 called by getDoctrine_Orm_DefaultEntityManagerService.php:56, https://github.com/doctrine/orm/pull/10455, package doctrine/orm)
{
    "exception": {}
}
debug 05:41:39 Warning: Zend OPcache API is restricted by "restrict_api" configuration directive
{
    "exception": {
        "severity": 2,
        "file": "/home/innerson/www/tcg.events/vendor/doctrine/dbal/src/Connection.php",
        "line": 60,
        "trace": [
            {
                "function": "handleError",
                "class": "Symfony\\Component\\ErrorHandler\\ErrorHandler",
                "type": "->"
            }
        ],
        "count": 1
    }
}
debug 05:41:39 Warning: Zend OPcache API is restricted by "restrict_api" configuration directive
{
    "exception": {
        "severity": 2,
        "file": "/home/innerson/www/tcg.events/vendor/doctrine/dbal/src/ArrayParameterType.php",
        "line": 10,
        "trace": [
            {
                "function": "handleError",
                "class": "Symfony\\Component\\ErrorHandler\\ErrorHandler",
                "type": "->"
            }
        ],
        "count": 1
    }
}
debug 05:41:39 Warning: Zend OPcache API is restricted by "restrict_api" configuration directive
{
    "exception": {
        "severity": 2,
        "file": "/home/innerson/www/tcg.events/vendor/symfony/error-handler/DebugClassLoader.php",
        "line": 292,
        "trace": [
            {
                "file": "/home/innerson/www/tcg.events/vendor/doctrine/doctrine-bundle/DoctrineBundle.php",
                "line": 130,
                "function": "loadClass",
                "class": "Symfony\\Component\\ErrorHandler\\DebugClassLoader",
                "type": "->"
            }
        ],
        "count": 236
    }
}
info 05:41:39 User Deprecated: Not enabling lazy ghost objects is deprecated and will not be supported in Doctrine ORM 3.0. Ensure Doctrine\ORM\Configuration::setLazyGhostObjectEnabled(true) is called to enable them. (ProxyFactory.php:166 called by EntityManager.php:178, https://github.com/doctrine/orm/pull/10837/, package doctrine/orm)
{
    "exception": {}
}
debug 05:41:39 Warning: Zend OPcache API is restricted by "restrict_api" configuration directive
{
    "exception": {
        "severity": 2,
        "file": "/home/innerson/www/tcg.events/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/DefaultTypedFieldMapper.php",
        "line": 29,
        "trace": [
            {
                "function": "handleError",
                "class": "Symfony\\Component\\ErrorHandler\\ErrorHandler",
                "type": "->"
            }
        ],
        "count": 1
    }
}
info 05:41:39 User Deprecated: MySQL 5.6 support is deprecated and will be removed in DBAL 4. Consider upgrading to MySQL 5.7 or later. (AbstractMySQLDriver.php:93 called by AbstractDriverMiddleware.php:68, https://github.com/doctrine/dbal/pull/5072, package doctrine/dbal)
{
    "exception": {}
}
debug 05:41:39 Warning: Zend OPcache API is restricted by "restrict_api" configuration directive
{
    "exception": {
        "severity": 2,
        "file": "/home/innerson/www/tcg.events/vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php",
        "line": 97,
        "trace": [
            {
                "function": "handleError",
                "class": "Symfony\\Component\\ErrorHandler\\ErrorHandler",
                "type": "->"
            }
        ],
        "count": 2
    }
}
debug 05:41:39 Warning: Zend OPcache API is restricted by "restrict_api" configuration directive
{
    "exception": {
        "severity": 2,
        "file": "/home/innerson/www/tcg.events/vendor/symfony/error-handler/DebugClassLoader.php",
        "line": 292,
        "trace": [
            {
                "file": "/home/innerson/www/tcg.events/vendor/doctrine/doctrine-bundle/DoctrineBundle.php",
                "line": 130,
                "function": "loadClass",
                "class": "Symfony\\Component\\ErrorHandler\\DebugClassLoader",
                "type": "->"
            }
        ],
        "count": 236
    }
}
error 05:41:39 Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "Sorry, we couldn't find what you asked for (404)." at AbstractController.php line 314
{
    "exception": {}
}
debug 05:41:39 Warning: Zend OPcache API is restricted by "restrict_api" configuration directive
{
    "exception": {
        "severity": 2,
        "file": "/home/innerson/www/tcg.events/vendor/symfony/property-info/Extractor/ReflectionExtractor.php",
        "line": 64,
        "trace": [
            {
                "function": "handleError",
                "class": "Symfony\\Component\\ErrorHandler\\ErrorHandler",
                "type": "->"
            }
        ],
        "count": 1
    }
}

Stack Trace

NotFoundHttpException
Symfony\Component\HttpKernel\Exception\NotFoundHttpException:
Sorry, we couldn't find what you asked for (404).

  at vendor/symfony/framework-bundle/Controller/AbstractController.php:314
  at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->createNotFoundException('Sorry, we couldn\'t find what you asked for (404).')
     (src/Controller/Front/UserController.php:63)
  at App\Controller\Front\UserController->tournaments('new-user-19', object(Translator), object(PaginatorProxyF841c82), object(Request), object(EntityManagerGhostD86156e))
     (vendor/symfony/http-kernel/HttpKernel.php:181)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/http-kernel/HttpKernel.php:76)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/http-kernel/Kernel.php:197)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (vendor/autoload_runtime.php:29)
  at require_once('/home/innerson/www/tcg.events/vendor/autoload_runtime.php')
     (public/index.php:7)