Symfony Exception

ErrorException

HTTP 500 Internal Server Error

Warning: readfile(/www/htdocs/w01ca228/staging-hepa-gastro/public/usr/file/LWnfad7fnSkD4gPK.pdf): Failed to open stream: No such file or directory

Exception

ErrorException

Show exception properties
ErrorException {#82
  #severity: E_WARNING
}
  1.             return $this->error('Diese Datei existiert nicht.');
  2.         }
  3.         $filePath PUBLIC_PATH '/' $file->getURL();
  4.         $response = new StreamedResponse(fn() => readfile($filePath));
  5.         $fallbackFilename Strings::slug($file->targetName);
  6.         $response->headers->set('Content-Type'MimeTypes::guessMimeType($filePath));
  7.         $response->headers->set(
in /www/htdocs/w01ca228/staging-hepa-gastro/vendor/symfony/http-foundation/StreamedResponse.php -> {closure:ch42\Component\FileManager\Controller\DownloadController::getFile():137} (line 106)
  1.         if (!isset($this->callback)) {
  2.             throw new \LogicException('The Response callback must be set.');
  3.         }
  4.         ($this->callback)();
  5.         return $this;
  6.     }
  7.     /**
  1.      * @return $this
  2.      */
  3.     public function send(bool $flush true): static
  4.     {
  5.         $this->sendHeaders();
  6.         $this->sendContent();
  7.         if (!$flush) {
  8.             return $this;
  9.         }
  1. // Set up system
  2. $kernel = new Kernel($_SERVER['APP_ENV'], (bool)$_SERVER['APP_DEBUG']);
  3. $request Request::createFromGlobals();
  4. $response $kernel->handle($request);
  5. $response->send();
  6. $kernel->terminate($request$response);

Stack Trace

ErrorException
ErrorException:
Warning: readfile(/www/htdocs/w01ca228/staging-hepa-gastro/public/usr/file/LWnfad7fnSkD4gPK.pdf): Failed to open stream: No such file or directory

  at /www/htdocs/w01ca228/staging-hepa-gastro/src/Component/FileManager/Controller/DownloadController.php:137
  at ch42\Component\FileManager\Controller\DownloadController->{closure:ch42\Component\FileManager\Controller\DownloadController::getFile():137}()
     (/www/htdocs/w01ca228/staging-hepa-gastro/vendor/symfony/http-foundation/StreamedResponse.php:106)
  at Symfony\Component\HttpFoundation\StreamedResponse->sendContent()
     (/www/htdocs/w01ca228/staging-hepa-gastro/vendor/symfony/http-foundation/Response.php:398)
  at Symfony\Component\HttpFoundation\Response->send()
     (/www/htdocs/w01ca228/staging-hepa-gastro/public/index.php:32)