FileNotFoundException

HTTP 500 Internal Server Error

The file "/var/www/gcs/html/dev/public/uploads/media/609d2a6b9fe2a/regulamin-zajec-zumba-dla-seniora.pdf" does not exist

Exception

Symfony\Component\HttpFoundation\File\Exception\ FileNotFoundException

  1.      * @throws FileNotFoundException If the given path is not a file
  2.      */
  3.     public function __construct(string $pathbool $checkPath true)
  4.     {
  5.         if ($checkPath && !is_file($path)) {
  6.             throw new FileNotFoundException($path);
  7.         }
  8.         parent::__construct($path);
  9.     }
  1.     public function __construct($path$checkPath true)
  2.     {
  3.         $this->compressedLength 0;
  4.         $this->uncompressedLength 0;
  5.         parent::__construct($path$checkPath);
  6.     }
  7.     /**
  8.      * Build and send local file header
  9.      *
  1.      */
  2.     public function __construct($path$inZipFilename$checkPath true)
  3.     {
  4.         $this->inZipFilename $inZipFilename;
  5.         parent::__construct($path$checkPath);
  6.     }
  7.     /**
  8.      * Calculate all values once
  9.      *
  1.      * @return void
  2.      */
  3.     public function add($file$inZipFilename)
  4.     {
  5.         if (is_string($file)) {
  6.             $file = new ZipStreamerFile($file$inZipFilename);
  7.         }
  8.         if (self::$autoSwitch) {
  9.             if ($file->getSize() > self::$switchAboveSize) {
  10.                 $file = new ZipStreamerBigFile($file$inZipFilename);
ZipStreamer->add('/var/www/gcs/html/dev/public/uploads/media/609d2a6b9fe2a/regulamin-zajec-zumba-dla-seniora.pdf', '07122025_vQBQUPoZOJ_regulamin-zajec-zumba-dla-seniora.pdf') in src/Controller/Api/MultiDownloadItemApiController.php (line 45)
  1.         $zipStreamer = new ZipStreamer($name.'.zip');
  2.         /** @var MultiDownloadItem $item */
  3.         foreach ($items as $item) {
  4.             $zipStreamer->add(
  5.                 $this->getParameter('kernel.project_dir').'/public'.$item->getMedia()->getUrl(),
  6.                 $name .'_'$item->getMedia()->getOriginalFilename()
  7.             );
  8.         }
  9.         return $zipStreamer;
  10.     }
MultiDownloadItemApiController->iterateItems(array(object(MultiDownloadItem), object(MultiDownloadItem))) in src/Controller/Api/MultiDownloadItemApiController.php (line 28)
  1.             return new Response('No id provided');
  2.         }
  3.         $items $this->getDoctrine()->getRepository(MultiDownloadItem::class)->findByIds($multiDownloadItems);
  4.         if ($items) {
  5.             /** @var ZipStreamer $zip */
  6.             $zip $this->iterateItems($items);
  7.             return new ZipStreamedResponse($zip);
  8.         }
  9.         return new Response('Wrong ids');
in vendor/symfony/http-kernel/HttpKernel.php -> getUrlAction (line 158)
  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);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     public function handle(Request $request$type HttpKernelInterface::MASTER_REQUEST$catch true)
  2.     {
  3.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  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 25)
  1.     Request::setTrustedHosts([$trustedHosts]);
  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
DEBUG 07:04:37 doctrine SELECT k0_.locale AS locale_0, k0_.domain AS domain_1 FROM kuma_translation k0_ GROUP BY k0_.locale, k0_.domain
DEBUG 07:04:37 app Writing translation resources to cache file.
INFO 07:04:37 php User Deprecated: The "Symfony\Component\Debug\DebugClassLoader" class is deprecated since Symfony 4.4, use "Symfony\Component\ErrorHandler\DebugClassLoader" instead.
{
    "exception": {}
}
INFO 07:04:37 php User Deprecated: The Symfony\Bundle\TwigBundle\Loader\FilesystemLoader class is deprecated since version 4.3 and will be removed in 5.0; use Twig notation for templates instead.
{
    "exception": {}
}
INFO 07:04:37 php User Deprecated: Using the WebserverBundle is deprecated since Symfony 4.4. The new Symfony local server has more features, you can use it instead.
{
    "exception": {}
}
INFO 07:04:37 php User Deprecated: Creating Doctrine\ORM\Mapping\UnderscoreNamingStrategy without making it number aware is deprecated and will be removed in Doctrine ORM 3.0.
{
    "exception": {}
}
INFO 07:04:37 request Matched route "_profiler_exception".
{
    "route": "_profiler_exception",
    "route_parameters": {
        "_route": "_profiler_exception",
        "_controller": "web_profiler.controller.exception_panel::body",
        "token": "b2c776"
    },
    "request_uri": "https://gcsdev.jamel.pl/_profiler/b2c776/exception",
    "method": "GET"
}
INFO 07:04:37 security Populated the TokenStorage with an anonymous Token.
DEBUG 07:04:37 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\DebugHandlersListener::configure"
}
DEBUG 07:04:37 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ValidateRequestListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\ValidateRequestListener::onKernelRequest"
}
DEBUG 07:04:37 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\SessionListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\SessionListener::onKernelRequest"
}
DEBUG 07:04:37 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::setDefaultLocale".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleListener::setDefaultLocale"
}
DEBUG 07:04:37 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\RouterListener::onKernelRequest"
}
DEBUG 07:04:37 event Notified event "kernel.request" to listener "Symfony\Bundle\FrameworkBundle\EventListener\ResolveControllerNameSubscriber::resolveControllerName".
{
    "event": "kernel.request",
    "listener": "Symfony\\Bundle\\FrameworkBundle\\EventListener\\ResolveControllerNameSubscriber::resolveControllerName"
}
DEBUG 07:04:37 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleListener::onKernelRequest"
}
DEBUG 07:04:37 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleAwareListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleAwareListener::onKernelRequest"
}
DEBUG 07:04:37 event Notified event "kernel.request" to listener "Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener::configureLogoutUrlGenerator".
{
    "event": "kernel.request",
    "listener": "Symfony\\Bundle\\SecurityBundle\\Debug\\TraceableFirewallListener::configureLogoutUrlGenerator"
}
DEBUG 07:04:37 event Notified event "kernel.request" to listener "Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Bundle\\SecurityBundle\\Debug\\TraceableFirewallListener::onKernelRequest"
}
DEBUG 07:04:37 event Notified event "kernel.request" to listener "Kunstmaan\AdminBundle\EventListener\PasswordCheckListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Kunstmaan\\AdminBundle\\EventListener\\PasswordCheckListener::onKernelRequest"
}
DEBUG 07:04:37 event Notified event "kernel.request" to listener "Kunstmaan\AdminBundle\EventListener\AdminLocaleListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Kunstmaan\\AdminBundle\\EventListener\\AdminLocaleListener::onKernelRequest"
}
DEBUG 07:04:37 event Notified event "kernel.request" to listener "Kunstmaan\AdminBundle\EventListener\SessionSecurityListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Kunstmaan\\AdminBundle\\EventListener\\SessionSecurityListener::onKernelRequest"
}
DEBUG 07:04:37 event Notified event "kernel.request" to listener "Stof\DoctrineExtensionsBundle\EventListener\LocaleListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Stof\\DoctrineExtensionsBundle\\EventListener\\LocaleListener::onKernelRequest"
}
INFO 07:04:37 php User Deprecated: The "templating.locator" service is deprecated since Symfony 4.3 and will be removed in 5.0.
{
    "exception": {}
}
INFO 07:04:37 php User Deprecated: The Symfony\Bundle\FrameworkBundle\Templating\Loader\TemplateLocator class is deprecated since version 4.3 and will be removed in 5.0; use Twig instead.
{
    "exception": {}
}
INFO 07:04:37 php User Deprecated: The "templating.name_parser" service is deprecated since Symfony 4.3 and will be removed in 5.0.
{
    "exception": {}
}
INFO 07:04:37 php User Deprecated: The Symfony\Bundle\FrameworkBundle\Templating\TemplateNameParser class is deprecated since version 4.3 and will be removed in 5.0; use Twig instead.
{
    "exception": {}
}
INFO 07:04:37 php User Deprecated: The "Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesser" class is deprecated since Symfony 4.3, use "Symfony\Component\Mime\MimeTypes" instead.
{
    "exception": {}
}
INFO 07:04:37 php User Deprecated: The "Symfony\Component\HttpFoundation\File\MimeType\FileBinaryMimeTypeGuesser" class is deprecated since Symfony 4.3, use "Symfony\Component\Mime\FileBinaryMimeTypeGuesser" instead.
{
    "exception": {}
}
INFO 07:04:37 php User Deprecated: The "Symfony\Component\HttpFoundation\File\MimeType\FileinfoMimeTypeGuesser" class is deprecated since Symfony 4.3, use "Symfony\Component\Mime\FileinfoMimeTypeGuesser" instead.
{
    "exception": {}
}
INFO 07:04:37 php User Deprecated: The "Kunstmaan\MediaBundle\Helper\File\SVGMimeTypeGuesser" class implements "Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesserInterface" that is deprecated since Symfony 4.3, use {@link MimeTypesInterface} instead.
{
    "exception": {}
}
INFO 07:04:37 php User Deprecated: The "Symfony\Component\HttpFoundation\File\MimeType\ExtensionGuesser" class is deprecated since Symfony 4.3, use "Symfony\Component\Mime\MimeTypes" instead.
{
    "exception": {}
}
INFO 07:04:37 php User Deprecated: The "Symfony\Component\HttpFoundation\File\MimeType\MimeTypeExtensionGuesser" class is deprecated since Symfony 4.3, use "Symfony\Component\Mime\MimeTypes" instead.
{
    "exception": {}
}
INFO 07:04:37 php User Deprecated: The "Kunstmaan\MediaBundle\Helper\File\SVGExtensionGuesser" class implements "Symfony\Component\HttpFoundation\File\MimeType\ExtensionGuesserInterface" that is deprecated since Symfony 4.3, use {@link MimeTypesInterface} instead.
{
    "exception": {}
}
DEBUG 07:04:37 event Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector::onKernelController".
{
    "event": "kernel.controller",
    "listener": "Symfony\\Bundle\\FrameworkBundle\\DataCollector\\RouterDataCollector::onKernelController"
}
DEBUG 07:04:37 event Notified event "kernel.controller" to listener "Kunstmaan\NodeBundle\EventListener\SlugListener::onKernelController".
{
    "event": "kernel.controller",
    "listener": "Kunstmaan\\NodeBundle\\EventListener\\SlugListener::onKernelController"
}
DEBUG 07:04:37 event Notified event "kernel.controller" to listener "Symfony\Component\HttpKernel\DataCollector\RequestDataCollector::onKernelController".
{
    "event": "kernel.controller",
    "listener": "Symfony\\Component\\HttpKernel\\DataCollector\\RequestDataCollector::onKernelController"
}
DEBUG 07:04:37 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ControllerListener::onKernelController".
{
    "event": "kernel.controller",
    "listener": "Sensio\\Bundle\\FrameworkExtraBundle\\EventListener\\ControllerListener::onKernelController"
}
DEBUG 07:04:37 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ParamConverterListener::onKernelController".
{
    "event": "kernel.controller",
    "listener": "Sensio\\Bundle\\FrameworkExtraBundle\\EventListener\\ParamConverterListener::onKernelController"
}
DEBUG 07:04:37 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\HttpCacheListener::onKernelController".
{
    "event": "kernel.controller",
    "listener": "Sensio\\Bundle\\FrameworkExtraBundle\\EventListener\\HttpCacheListener::onKernelController"
}
DEBUG 07:04:37 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\TemplateListener::onKernelController".
{
    "event": "kernel.controller",
    "listener": "Sensio\\Bundle\\FrameworkExtraBundle\\EventListener\\TemplateListener::onKernelController"
}
DEBUG 07:04:37 event Notified event "kernel.controller_arguments" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::onKernelControllerArguments".
{
    "event": "kernel.controller_arguments",
    "listener": "Sensio\\Bundle\\FrameworkExtraBundle\\EventListener\\SecurityListener::onKernelControllerArguments"
}
DEBUG 07:04:37 event Notified event "kernel.controller_arguments" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\IsGrantedListener::onKernelControllerArguments".
{
    "event": "kernel.controller_arguments",
    "listener": "Sensio\\Bundle\\FrameworkExtraBundle\\EventListener\\IsGrantedListener::onKernelControllerArguments"
}

Stack Trace

FileNotFoundException

Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException:
The file "/var/www/gcs/html/dev/public/uploads/media/609d2a6b9fe2a/regulamin-zajec-zumba-dla-seniora.pdf" does not exist

  at vendor/symfony/http-foundation/File/File.php:36
  at Symfony\Component\HttpFoundation\File\File->__construct('/var/www/gcs/html/dev/public/uploads/media/609d2a6b9fe2a/regulamin-zajec-zumba-dla-seniora.pdf', true)
     (vendor/wamania/zip-streamed-response-bundle/Wamania/ZipStreamedResponseBundle/Response/ZipStreamer/ZipStreamerBaseFile.php:71)
  at Wamania\ZipStreamedResponseBundle\Response\ZipStreamer\ZipStreamerBaseFile->__construct('/var/www/gcs/html/dev/public/uploads/media/609d2a6b9fe2a/regulamin-zajec-zumba-dla-seniora.pdf', true)
     (vendor/wamania/zip-streamed-response-bundle/Wamania/ZipStreamedResponseBundle/Response/ZipStreamer/ZipStreamerFile.php:34)
  at Wamania\ZipStreamedResponseBundle\Response\ZipStreamer\ZipStreamerFile->__construct('/var/www/gcs/html/dev/public/uploads/media/609d2a6b9fe2a/regulamin-zajec-zumba-dla-seniora.pdf', '07122025_vQBQUPoZOJ_regulamin-zajec-zumba-dla-seniora.pdf')
     (vendor/wamania/zip-streamed-response-bundle/Wamania/ZipStreamedResponseBundle/Response/ZipStreamer/ZipStreamer.php:86)
  at Wamania\ZipStreamedResponseBundle\Response\ZipStreamer\ZipStreamer->add('/var/www/gcs/html/dev/public/uploads/media/609d2a6b9fe2a/regulamin-zajec-zumba-dla-seniora.pdf', '07122025_vQBQUPoZOJ_regulamin-zajec-zumba-dla-seniora.pdf')
     (src/Controller/Api/MultiDownloadItemApiController.php:45)
  at App\Controller\Api\MultiDownloadItemApiController->iterateItems(array(object(MultiDownloadItem), object(MultiDownloadItem)))
     (src/Controller/Api/MultiDownloadItemApiController.php:28)
  at App\Controller\Api\MultiDownloadItemApiController->getUrlAction(object(Request))
     (vendor/symfony/http-kernel/HttpKernel.php:158)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/http-kernel/HttpKernel.php:80)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/http-kernel/Kernel.php:201)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (public/index.php:25)