https://ckdev.centrumkrzesel.pl/media/cache/resolve/textileBig4/images/product/lampa-dunca-4

Exceptions

Source image for path "images/product/lampa-dunca-4" could not be found

  • Exceptions 2
  • Logs
  • Stack Traces 2

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);
  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 (\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 47)
  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);
  8. //} else {
  9. //    echo 'Przerwa techniczna. Zapraszamy za okoÅ‚o 20 minut.';

Liip\ImagineBundle\Exception\Binary\Loader\ NotLoadableException

Source image not resolvable "images/product/lampa-dunca-4" in root path(s) "/home/users/ck_new/public"

  1.         if (null !== $absolute $this->locateUsingRootPathsSearch($path)) {
  2.             return $this->sanitizeAbsolutePath($absolute);
  3.         }
  4.         throw new NotLoadableException(\sprintf('Source image not resolvable "%s" in root path(s) "%s"'$pathimplode(':'$this->roots)));
  5.     }
  6.     protected function generateAbsolutePath(string $rootstring $path): ?string
  7.     {
  8.         if (false !== $absolute realpath($root.DIRECTORY_SEPARATOR.$path)) {
  1.         $this->locator $locator;
  2.     }
  3.     public function find($path)
  4.     {
  5.         $path $this->locator->locate($path);
  6.         if (false === is_file($path)) {
  7.             throw new NotLoadableException(\sprintf('Source image: "%s" is no file.'$path));
  8.         }
  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);
  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 (\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 47)
  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);
  8. //} else {
  9. //    echo 'Przerwa techniczna. Zapraszamy za okoÅ‚o 20 minut.';