Error 404 Not Found

GET https://olymp-test.k-m-v.su/media/cache/resolve/full/63/49/63490cd7b79ad664627775.jpg

Forwarded to ErrorController (aa85e5)

Exceptions

Source image for path "63/49/63490cd7b79ad664627775.jpg" could not be found

  • Exceptions 3
  • Logs
  • Stack Traces 3

Symfony\Component\HttpKernel\Exception\ NotFoundHttpException

  1.         } catch (NotLoadableException $exception) {
  2.             if (null !== $this->dataManager->getDefaultImageUrl($filter)) {
  3.                 return new RedirectResponse($this->dataManager->getDefaultImageUrl($filter));
  4.             }
  5.             throw new NotFoundHttpException(sprintf('Source image for path "%s" could not be found'$path), $exception);
  6.         } catch (NonExistingFilterException $exception) {
  7.             throw new NotFoundHttpException(sprintf('Requested non-existing filter "%s"'$filter), $exception);
  8.         } catch (RuntimeException $exception) {
  9.             throw new \RuntimeException(vsprintf('Unable to create image for path "%s" and filter "%s". Message was "%s"', [$hash sprintf('%s/%s'$hash$path) : $path$filter$exception->getMessage()]), 0$exception);
  10.         }
  1.     public function filterAction(Request $request$path$filter)
  2.     {
  3.         $path PathHelper::urlPathToFilePath($path);
  4.         $resolver $request->get('resolver');
  5.         return $this->createRedirectResponse(function () use ($path$filter$resolver$request) {
  6.             return $this->filterService->getUrlOfFilteredImage(
  7.                 $path,
  8.                 $filter,
  9.                 $resolver,
  10.                 $this->isWebpSupported($request)
in vendor/symfony/http-kernel/HttpKernel.php -> filterAction (line 163)
  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.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $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.         $this->request $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request$response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/var/www/vendor/autoload_runtime.php') in public/index.php (line 5)
  1. <?php
  2. use App\Kernel;
  3. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  4. umask(0000);
  5. return function (array $context) {
  6.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  7. };

Liip\ImagineBundle\Exception\Binary\Loader\ NotLoadableException

Source image "63/49/63490cd7b79ad664627775.jpg" not found.

  1.                 $this->filesystem->read($path),
  2.                 $mimeType,
  3.                 $extension
  4.             );
  5.         } catch (FilesystemException $exception) {
  6.             throw new NotLoadableException(sprintf('Source image "%s" not found.'$path), 0$exception);
  7.         }
  8.     }
  9.     private function getExtension(?string $mimeType): ?string
  10.     {
  1.      */
  2.     public function find($filter$path)
  3.     {
  4.         $loader $this->getLoader($filter);
  5.         $binary $loader->find($path);
  6.         if (!$binary instanceof BinaryInterface) {
  7.             $mimeType $this->mimeTypeGuesser->guess($binary);
  8.             $extension $this->getExtension($mimeType);
  9.             $binary = new Binary(
  1.     /**
  2.      * @throws NonExistingFilterException
  3.      */
  4.     private function createFilteredBinary(FilterPathContainer $filterPathContainerstring $filter): BinaryInterface
  5.     {
  6.         $binary $this->dataManager->find($filter$filterPathContainer->getSource());
  7.         try {
  8.             return $this->filterManager->applyFilter($binary$filter$filterPathContainer->getOptions());
  9.         } catch (NonExistingFilterException $e) {
  10.             $this->logger->debug(sprintf(
in vendor/liip/imagine-bundle/Service/FilterService.php -> createFilteredBinary (line 205)
  1.         ?string $resolver null,
  2.         bool $forced false
  3.     ): bool {
  4.         if ($forced || !$this->cacheManager->isStored($filterPathContainer->getTarget(), $filter$resolver)) {
  5.             $this->cacheManager->store(
  6.                 $this->createFilteredBinary($filterPathContainer$filter),
  7.                 $filterPathContainer->getTarget(),
  8.                 $filter,
  9.                 $resolver
  10.             );
in vendor/liip/imagine-bundle/Service/FilterService.php -> warmUpCacheFilterPathContainer (line 123)
  1.      * @return string
  2.      */
  3.     public function getUrlOfFilteredImage($path$filter$resolver nullbool $webpSupported false)
  4.     {
  5.         foreach ($this->buildFilterPathContainers($path) as $filterPathContainer) {
  6.             $this->warmUpCacheFilterPathContainer($filterPathContainer$filter$resolver);
  7.         }
  8.         return $this->resolveFilterPathContainer(new FilterPathContainer($path), $filter$resolver$webpSupported);
  9.     }
  1.         return $this->createRedirectResponse(function () use ($path$filter$resolver$request) {
  2.             return $this->filterService->getUrlOfFilteredImage(
  3.                 $path,
  4.                 $filter,
  5.                 $resolver,
  6.                 $this->isWebpSupported($request)
  7.             );
  8.         }, $path$filter);
  9.     }
  10.     /**
in vendor/liip/imagine-bundle/Controller/ImagineController.php -> Liip\ImagineBundle\Controller\{closure} (line 162)
  1.     }
  2.     private function createRedirectResponse(\Closure $urlstring $pathstring $filter, ?string $hash null): RedirectResponse
  3.     {
  4.         try {
  5.             return new RedirectResponse($url(), $this->controllerConfig->getRedirectResponseCode());
  6.         } catch (NotLoadableException $exception) {
  7.             if (null !== $this->dataManager->getDefaultImageUrl($filter)) {
  8.                 return new RedirectResponse($this->dataManager->getDefaultImageUrl($filter));
  9.             }
  1.     public function filterAction(Request $request$path$filter)
  2.     {
  3.         $path PathHelper::urlPathToFilePath($path);
  4.         $resolver $request->get('resolver');
  5.         return $this->createRedirectResponse(function () use ($path$filter$resolver$request) {
  6.             return $this->filterService->getUrlOfFilteredImage(
  7.                 $path,
  8.                 $filter,
  9.                 $resolver,
  10.                 $this->isWebpSupported($request)
in vendor/symfony/http-kernel/HttpKernel.php -> filterAction (line 163)
  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.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $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.         $this->request $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request$response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/var/www/vendor/autoload_runtime.php') in public/index.php (line 5)
  1. <?php
  2. use App\Kernel;
  3. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  4. umask(0000);
  5. return function (array $context) {
  6.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  7. };

League\Flysystem\ UnableToRetrieveMetadata

Unable to retrieve the mime_type for file at location: /var/www/storage/files/63/49/63490cd7b79ad664627775.jpg. No such file exists.

  1.         return static::create($locationFileAttributes::ATTRIBUTE_MIME_TYPE$reason$previous);
  2.     }
  3.     public static function create(string $locationstring $typestring $reason ''Throwable $previous null): self
  4.     {
  5.         $e = new static("Unable to retrieve the $type for file at location: $location{$reason}"0$previous);
  6.         $e->reason $reason;
  7.         $e->location $location;
  8.         $e->metadataType $type;
  9.         return $e;
  1.         return static::create($locationFileAttributes::ATTRIBUTE_FILE_SIZE$reason$previous);
  2.     }
  3.     public static function mimeType(string $locationstring $reason ''Throwable $previous null): self
  4.     {
  5.         return static::create($locationFileAttributes::ATTRIBUTE_MIME_TYPE$reason$previous);
  6.     }
  7.     public static function create(string $locationstring $typestring $reason ''Throwable $previous null): self
  8.     {
  9.         $e = new static("Unable to retrieve the $type for file at location: $location{$reason}"0$previous);
  1.     {
  2.         $location $this->prefixer->prefixPath($path);
  3.         error_clear_last();
  4.         if ( ! is_file($location)) {
  5.             throw UnableToRetrieveMetadata::mimeType($location'No such file exists.');
  6.         }
  7.         $mimeType $this->mimeTypeDetector->detectMimeTypeFromFile($location);
  8.         if ($mimeType === null) {
  1.         return $this->adapter->fileSize($this->pathNormalizer->normalizePath($path))->fileSize();
  2.     }
  3.     public function mimeType(string $path): string
  4.     {
  5.         return $this->adapter->mimeType($this->pathNormalizer->normalizePath($path))->mimeType();
  6.     }
  7.     public function setVisibility(string $pathstring $visibility): void
  8.     {
  9.         $this->adapter->setVisibility($this->pathNormalizer->normalizePath($path), $visibility);
  1.      * {@inheritdoc}
  2.      */
  3.     public function find($path)
  4.     {
  5.         try {
  6.             $mimeType $this->filesystem->mimeType($path);
  7.             $extension $this->getExtension($mimeType);
  8.             return new Binary(
  9.                 $this->filesystem->read($path),
  1.      */
  2.     public function find($filter$path)
  3.     {
  4.         $loader $this->getLoader($filter);
  5.         $binary $loader->find($path);
  6.         if (!$binary instanceof BinaryInterface) {
  7.             $mimeType $this->mimeTypeGuesser->guess($binary);
  8.             $extension $this->getExtension($mimeType);
  9.             $binary = new Binary(
  1.     /**
  2.      * @throws NonExistingFilterException
  3.      */
  4.     private function createFilteredBinary(FilterPathContainer $filterPathContainerstring $filter): BinaryInterface
  5.     {
  6.         $binary $this->dataManager->find($filter$filterPathContainer->getSource());
  7.         try {
  8.             return $this->filterManager->applyFilter($binary$filter$filterPathContainer->getOptions());
  9.         } catch (NonExistingFilterException $e) {
  10.             $this->logger->debug(sprintf(
in vendor/liip/imagine-bundle/Service/FilterService.php -> createFilteredBinary (line 205)
  1.         ?string $resolver null,
  2.         bool $forced false
  3.     ): bool {
  4.         if ($forced || !$this->cacheManager->isStored($filterPathContainer->getTarget(), $filter$resolver)) {
  5.             $this->cacheManager->store(
  6.                 $this->createFilteredBinary($filterPathContainer$filter),
  7.                 $filterPathContainer->getTarget(),
  8.                 $filter,
  9.                 $resolver
  10.             );
in vendor/liip/imagine-bundle/Service/FilterService.php -> warmUpCacheFilterPathContainer (line 123)
  1.      * @return string
  2.      */
  3.     public function getUrlOfFilteredImage($path$filter$resolver nullbool $webpSupported false)
  4.     {
  5.         foreach ($this->buildFilterPathContainers($path) as $filterPathContainer) {
  6.             $this->warmUpCacheFilterPathContainer($filterPathContainer$filter$resolver);
  7.         }
  8.         return $this->resolveFilterPathContainer(new FilterPathContainer($path), $filter$resolver$webpSupported);
  9.     }
  1.         return $this->createRedirectResponse(function () use ($path$filter$resolver$request) {
  2.             return $this->filterService->getUrlOfFilteredImage(
  3.                 $path,
  4.                 $filter,
  5.                 $resolver,
  6.                 $this->isWebpSupported($request)
  7.             );
  8.         }, $path$filter);
  9.     }
  10.     /**
in vendor/liip/imagine-bundle/Controller/ImagineController.php -> Liip\ImagineBundle\Controller\{closure} (line 162)
  1.     }
  2.     private function createRedirectResponse(\Closure $urlstring $pathstring $filter, ?string $hash null): RedirectResponse
  3.     {
  4.         try {
  5.             return new RedirectResponse($url(), $this->controllerConfig->getRedirectResponseCode());
  6.         } catch (NotLoadableException $exception) {
  7.             if (null !== $this->dataManager->getDefaultImageUrl($filter)) {
  8.                 return new RedirectResponse($this->dataManager->getDefaultImageUrl($filter));
  9.             }
  1.     public function filterAction(Request $request$path$filter)
  2.     {
  3.         $path PathHelper::urlPathToFilePath($path);
  4.         $resolver $request->get('resolver');
  5.         return $this->createRedirectResponse(function () use ($path$filter$resolver$request) {
  6.             return $this->filterService->getUrlOfFilteredImage(
  7.                 $path,
  8.                 $filter,
  9.                 $resolver,
  10.                 $this->isWebpSupported($request)
in vendor/symfony/http-kernel/HttpKernel.php -> filterAction (line 163)
  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.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $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.         $this->request $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request$response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/var/www/vendor/autoload_runtime.php') in public/index.php (line 5)
  1. <?php
  2. use App\Kernel;
  3. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  4. umask(0000);
  5. return function (array $context) {
  6.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  7. };