Error 404 Not Found

GET https://app.fishingstatistics.com/fishing-race/catch/serve-photo/3697

Exceptions

File 6707fc26963884.40941721.jpeg exists in DB, but was not found on path /data/d/8/d82a07f7-fdb9-4c2a-8294-6e09136b022d/fishingstatistics.com/sub/app/uploads/filemanagerbundle_files/race_catch_photos//6707fc26963884.40941721.jpeg.

Exception

Symfony\Component\HttpKernel\Exception\ NotFoundHttpException

Show exception properties
Symfony\Component\HttpKernel\Exception\NotFoundHttpException {#933
  -statusCode: 404
  -headers: []
}
  1.         }
  2.         $filePath $fileHandler->getPath('race_catch_photos') . '/' $catch->getPhoto();
  3.         if (!file_exists($filePath)) {
  4.             throw new NotFoundHttpException(sprintf('File %s exists in DB, but was not found on path %s.'$catch->getPhoto(), $filePath));
  5.         }
  6.         $response = new BinaryFileResponse($filePath);
  7.         $response->setContentDisposition(ResponseHeaderBag::DISPOSITION_INLINE$catch->getPhoto());
  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.     }
Kernel->handle(object(Request)) in public/index.php (line 20)
  1.     Debug::enable();
  2. }
  3. $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

Logs

Level Channel Message
INFO 18:37:58 deprecation 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 18:37:58 php Warning: Zend OPcache API is restricted by "restrict_api" configuration directive
{
    "exception": {
        "severity": 2,
        "file": "/data/d/8/d82a07f7-fdb9-4c2a-8294-6e09136b022d/fishingstatistics.com/sub/app/vendor/symfony/error-handler/DebugClassLoader.php",
        "line": 292,
        "trace": [
            {
                "file": "/data/d/8/d82a07f7-fdb9-4c2a-8294-6e09136b022d/fishingstatistics.com/sub/app/vendor/symfony/debug-bundle/DebugBundle.php",
                "line": 38,
                "function": "loadClass",
                "class": "Symfony\\Component\\ErrorHandler\\DebugClassLoader",
                "type": "->"
            }
        ],
        "count": 187
    }
}
INFO 18:37:58 request Matched route "_profiler".
{
    "route": "_profiler",
    "route_parameters": {
        "_route": "_profiler",
        "_controller": "web_profiler.controller.profiler::panelAction",
        "token": "982149"
    },
    "request_uri": "https://app.fishingstatistics.com/_profiler/982149",
    "method": "GET"
}
INFO 18:37:58 deprecation 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 today, set the "reportFieldsWhereDeclared" constructor parameter to true. (AttributeDriver.php:78 called by App_KernelDevDebugContainer.php:1511, https://github.com/doctrine/orm/pull/10455, package doctrine/orm)
{
    "exception": {}
}
DEBUG 18:37:58 php Warning: Zend OPcache API is restricted by "restrict_api" configuration directive
{
    "exception": {
        "severity": 2,
        "file": "/data/d/8/d82a07f7-fdb9-4c2a-8294-6e09136b022d/fishingstatistics.com/sub/app/vendor/symfony/error-handler/DebugClassLoader.php",
        "line": 292,
        "trace": [
            {
                "file": "/data/d/8/d82a07f7-fdb9-4c2a-8294-6e09136b022d/fishingstatistics.com/sub/app/vendor/symfony/debug-bundle/DebugBundle.php",
                "line": 38,
                "function": "loadClass",
                "class": "Symfony\\Component\\ErrorHandler\\DebugClassLoader",
                "type": "->"
            }
        ],
        "count": 187
    }
}
INFO 18:37:58 deprecation User Deprecated: Method "Doctrine\DBAL\Types\Type::getSQLDeclaration()" might add "string" as a native return type declaration in the future. Do the same in child class "App\Core\Doctrine\Type\SerializedType" now to avoid errors or add an explicit @return annotation to suppress this message.
{
    "exception": {}
}
INFO 18:37:58 deprecation User Deprecated: Method "Doctrine\DBAL\Types\Type::convertToDatabaseValue()" might add "mixed" as a native return type declaration in the future. Do the same in child class "App\Core\Doctrine\Type\SerializedType" now to avoid errors or add an explicit @return annotation to suppress this message.
{
    "exception": {}
}
INFO 18:37:58 deprecation User Deprecated: Method "Doctrine\DBAL\Types\Type::convertToPHPValue()" might add "mixed" as a native return type declaration in the future. Do the same in child class "App\Core\Doctrine\Type\SerializedType" now to avoid errors or add an explicit @return annotation to suppress this message.
{
    "exception": {}
}
INFO 18:37:58 deprecation User Deprecated: Method "Doctrine\DBAL\Types\Type::getName()" might add "string" as a native return type declaration in the future. Do the same in child class "App\Core\Doctrine\Type\SerializedType" now to avoid errors or add an explicit @return annotation to suppress this message.
{
    "exception": {}
}
INFO 18:37:58 doctrine Connecting with parameters {params}
{
    "params": {
        "driver": "pdo_mysql",
        "charset": "utf8mb4",
        "host": "mysql80.r3.websupport.cz",
        "port": 3306,
        "user": "ltoy3elx",
        "password": "<redacted>",
        "driverOptions": [],
        "defaultTableOptions": {
            "charset": "utf8mb4",
            "collate": "utf8mb4_general_ci"
        },
        "dbname": "ltoy3elx"
    }
}
INFO 18:37:58 deprecation User Deprecated: Since symfony/doctrine-bridge 6.3: Registering "Gedmo\Tree\TreeListener" as a Doctrine subscriber is deprecated. Register it as a listener instead, using e.g. the #[AsDoctrineListener] attribute.
{
    "exception": {}
}
INFO 18:37:58 deprecation User Deprecated: Since symfony/doctrine-bridge 6.3: Registering "Gedmo\Translatable\TranslatableListener" as a Doctrine subscriber is deprecated. Register it as a listener instead, using e.g. the #[AsDoctrineListener] attribute.
{
    "exception": {}
}

Stack Trace

NotFoundHttpException
Symfony\Component\HttpKernel\Exception\NotFoundHttpException:
File 6707fc26963884.40941721.jpeg exists in DB, but was not found on path /data/d/8/d82a07f7-fdb9-4c2a-8294-6e09136b022d/fishingstatistics.com/sub/app/uploads/filemanagerbundle_files/race_catch_photos//6707fc26963884.40941721.jpeg.

  at src/FishingRace/Controller/CatchController.php:238
  at App\FishingRace\Controller\CatchController->photo(object(Request), object(FileHandler), object(DataCollectorTranslator), 3697)
     (vendor/symfony/http-kernel/HttpKernel.php:182)
  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))
     (public/index.php:20)