Symfony Exception

Source image for path "9e/1e/a75c19ca549b85d8af36db6f27db.jpeg" could not be found

Exceptions 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"', [
  10.                 $hash sprintf('%s/%s'$hash$path) : $path,
  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) {
  6.             return $this->filterService->getUrlOfFilteredImage($path$filter$resolver);
  7.         }, $path$filter);
  8.     }
  9.     /**
in vendor/symfony/http-kernel/HttpKernel.php->filterAction (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.     }
  1.         if (!IpUtils::checkIp('127.0.0.1'$trustedProxies)) {
  2.             Request::setTrustedProxies(array_merge($trustedProxies, ['127.0.0.1']), Request::getTrustedHeaderSet());
  3.         }
  4.         try {
  5.             return $kernel->handle($request$type$catch);
  6.         } finally {
  7.             // restore global state
  8.             Request::setTrustedProxies($trustedProxies$trustedHeaderSet);
  9.         }
  10.     }
  1.         if ($this->surrogate) {
  2.             $this->surrogate->addSurrogateCapability($request);
  3.         }
  4.         // always a "master" request (as the real master request can be in cache)
  5.         $response SubRequestHandler::handle($this->kernel$requestHttpKernelInterface::MASTER_REQUEST$catch);
  6.         /*
  7.          * Support stale-if-error given on Responses or as a config option.
  8.          * RFC 7234 summarizes in Section 4.2.4 (but also mentions with the individual
  9.          * Cache-Control directives) that
  1.     protected function forward(Request $request$raw falseResponse $entry null)
  2.     {
  3.         $this->getKernel()->boot();
  4.         $this->getKernel()->getContainer()->set('cache'$this);
  5.         return parent::forward($request$raw$entry);
  6.     }
  7.     /**
  8.      * Returns an array of options to customize the Cache configuration.
  9.      *
  1.         // avoid that the backend sends no content
  2.         $subRequest->headers->remove('if_modified_since');
  3.         $subRequest->headers->remove('if_none_match');
  4.         $response $this->forward($subRequest$catch);
  5.         if ($response->isCacheable()) {
  6.             $this->store($request$response);
  7.         }
  1.         }
  2.         if (null === $entry) {
  3.             $this->record($request'miss');
  4.             return $this->fetch($request$catch);
  5.         }
  6.         if (!$this->isFreshEnough($request$entry)) {
  7.             $this->record($request'stale');
  1.                 reload the cache by fetching a fresh response and caching it (if possible).
  2.             */
  3.             $this->record($request'reload');
  4.             $response $this->fetch($request$catch);
  5.         } else {
  6.             $response $this->lookup($request$catch);
  7.         }
  8.         $this->restoreResponseBody($request$response);
  9.         if (HttpKernelInterface::MASTER_REQUEST === $type) {
HttpCache->handle(object(Request)) in web/app.php (line 28)
  1. $kernel = new AppCache($kernel);
  2. Request::enableHttpMethodParameterOverride();
  3. $request Request::createFromGlobals();
  4. $response $kernel->handle($request);
  5. $response->send();
  6. $kernel->terminate($request$response);

Liip\ImagineBundle\Exception\Binary\Loader\ NotLoadableException

Source image not resolvable "9e/1e/a75c19ca549b85d8af36db6f27db.jpeg" in root path(s) "/chroot/home/a324711f/ae27f2d71d.nxcli.io/production/web/media/image"

  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"',
  5.             $pathimplode(':'$this->roots)));
  6.     }
  7.     /**
  8.      * @param string $root
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function find($path)
  5.     {
  6.         $path $this->locator->locate($path);
  7.         $mimeType $this->mimeTypeGuesser instanceof DeprecatedMimeTypeGuesserInterface $this->mimeTypeGuesser->guess($path) : $this->mimeTypeGuesser->guessMimeType($path);
  8.         $extension $this->getExtension($mimeType);
  9.         return new FileBinary($path$mimeType$extension);
  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.      * @return BinaryInterface
  3.      */
  4.     private function createFilteredBinary($path$filter, array $runtimeFilters = [])
  5.     {
  6.         $binary $this->dataManager->find($filter$path);
  7.         try {
  8.             return $this->filterManager->applyFilter($binary$filter, [
  9.                 'filters' => $runtimeFilters,
  10.             ]);
in vendor/liip/imagine-bundle/Service/FilterService.php->createFilteredBinary (line 89)
  1.         if ($this->cacheManager->isStored($path$filter$resolver)) {
  2.             return $this->cacheManager->resolve($path$filter$resolver);
  3.         }
  4.         $filteredBinary $this->createFilteredBinary(
  5.             $path,
  6.             $filter
  7.         );
  8.         $this->cacheManager->store(
  9.             $filteredBinary,
  1.     {
  2.         $path PathHelper::urlPathToFilePath($path);
  3.         $resolver $request->get('resolver');
  4.         return $this->createRedirectResponse(function () use ($path$filter$resolver) {
  5.             return $this->filterService->getUrlOfFilteredImage($path$filter$resolver);
  6.         }, $path$filter);
  7.     }
  8.     /**
  9.      * This action applies a given filter -merged with additional runtime filters- to a given image, saves the image and
in vendor/liip/imagine-bundle/Controller/ImagineController.php->Liip\ImagineBundle\Controller\{closure} (line 141)
  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) {
  6.             return $this->filterService->getUrlOfFilteredImage($path$filter$resolver);
  7.         }, $path$filter);
  8.     }
  9.     /**
in vendor/symfony/http-kernel/HttpKernel.php->filterAction (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.     }
  1.         if (!IpUtils::checkIp('127.0.0.1'$trustedProxies)) {
  2.             Request::setTrustedProxies(array_merge($trustedProxies, ['127.0.0.1']), Request::getTrustedHeaderSet());
  3.         }
  4.         try {
  5.             return $kernel->handle($request$type$catch);
  6.         } finally {
  7.             // restore global state
  8.             Request::setTrustedProxies($trustedProxies$trustedHeaderSet);
  9.         }
  10.     }
  1.         if ($this->surrogate) {
  2.             $this->surrogate->addSurrogateCapability($request);
  3.         }
  4.         // always a "master" request (as the real master request can be in cache)
  5.         $response SubRequestHandler::handle($this->kernel$requestHttpKernelInterface::MASTER_REQUEST$catch);
  6.         /*
  7.          * Support stale-if-error given on Responses or as a config option.
  8.          * RFC 7234 summarizes in Section 4.2.4 (but also mentions with the individual
  9.          * Cache-Control directives) that
  1.     protected function forward(Request $request$raw falseResponse $entry null)
  2.     {
  3.         $this->getKernel()->boot();
  4.         $this->getKernel()->getContainer()->set('cache'$this);
  5.         return parent::forward($request$raw$entry);
  6.     }
  7.     /**
  8.      * Returns an array of options to customize the Cache configuration.
  9.      *
  1.         // avoid that the backend sends no content
  2.         $subRequest->headers->remove('if_modified_since');
  3.         $subRequest->headers->remove('if_none_match');
  4.         $response $this->forward($subRequest$catch);
  5.         if ($response->isCacheable()) {
  6.             $this->store($request$response);
  7.         }
  1.         }
  2.         if (null === $entry) {
  3.             $this->record($request'miss');
  4.             return $this->fetch($request$catch);
  5.         }
  6.         if (!$this->isFreshEnough($request$entry)) {
  7.             $this->record($request'stale');
  1.                 reload the cache by fetching a fresh response and caching it (if possible).
  2.             */
  3.             $this->record($request'reload');
  4.             $response $this->fetch($request$catch);
  5.         } else {
  6.             $response $this->lookup($request$catch);
  7.         }
  8.         $this->restoreResponseBody($request$response);
  9.         if (HttpKernelInterface::MASTER_REQUEST === $type) {
HttpCache->handle(object(Request)) in web/app.php (line 28)
  1. $kernel = new AppCache($kernel);
  2. Request::enableHttpMethodParameterOverride();
  3. $request Request::createFromGlobals();
  4. $response $kernel->handle($request);
  5. $response->send();
  6. $kernel->terminate($request$response);

Logs

No log messages

Stack Traces 2

[2/2] NotFoundHttpException

Symfony\Component\HttpKernel\Exception\NotFoundHttpException:
Source image for path "9e/1e/a75c19ca549b85d8af36db6f27db.jpeg" could not be found

  at vendor/liip/imagine-bundle/Controller/ImagineController.php:147
  at Liip\ImagineBundle\Controller\ImagineController->createRedirectResponse(object(Closure), '9e/1e/a75c19ca549b85d8af36db6f27db.jpeg', 'sylius_shop_product_original')
     (vendor/liip/imagine-bundle/Controller/ImagineController.php:91)
  at Liip\ImagineBundle\Controller\ImagineController->filterAction(object(Request), '9e/1e/a75c19ca549b85d8af36db6f27db.jpeg', 'sylius_shop_product_original')
     (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), 1, true)
     (vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php:85)
  at Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle(object(AppKernel), object(Request), 1, true)
     (vendor/symfony/http-kernel/HttpCache/HttpCache.php:477)
  at Symfony\Component\HttpKernel\HttpCache\HttpCache->forward(object(Request), true, null)
     (vendor/symfony/framework-bundle/HttpCache/HttpCache.php:62)
  at Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache->forward(object(Request), true)
     (vendor/symfony/http-kernel/HttpCache/HttpCache.php:450)
  at Symfony\Component\HttpKernel\HttpCache\HttpCache->fetch(object(Request), true)
     (vendor/symfony/http-kernel/HttpCache/HttpCache.php:344)
  at Symfony\Component\HttpKernel\HttpCache\HttpCache->lookup(object(Request), true)
     (vendor/symfony/http-kernel/HttpCache/HttpCache.php:222)
  at Symfony\Component\HttpKernel\HttpCache\HttpCache->handle(object(Request))
     (web/app.php:28)

[1/2] NotLoadableException

Liip\ImagineBundle\Exception\Binary\Loader\NotLoadableException:
Source image not resolvable "9e/1e/a75c19ca549b85d8af36db6f27db.jpeg" in root path(s) "/chroot/home/a324711f/ae27f2d71d.nxcli.io/production/web/media/image"

  at vendor/liip/imagine-bundle/Binary/Locator/FileSystemLocator.php:52
  at Liip\ImagineBundle\Binary\Locator\FileSystemLocator->locate('9e/1e/a75c19ca549b85d8af36db6f27db.jpeg')
     (vendor/liip/imagine-bundle/Binary/Loader/FileSystemLoader.php:75)
  at Liip\ImagineBundle\Binary\Loader\FileSystemLoader->find('9e/1e/a75c19ca549b85d8af36db6f27db.jpeg')
     (vendor/liip/imagine-bundle/Imagine/Data/DataManager.php:136)
  at Liip\ImagineBundle\Imagine\Data\DataManager->find('sylius_shop_product_original', '9e/1e/a75c19ca549b85d8af36db6f27db.jpeg')
     (vendor/liip/imagine-bundle/Service/FilterService.php:145)
  at Liip\ImagineBundle\Service\FilterService->createFilteredBinary('9e/1e/a75c19ca549b85d8af36db6f27db.jpeg', 'sylius_shop_product_original')
     (vendor/liip/imagine-bundle/Service/FilterService.php:89)
  at Liip\ImagineBundle\Service\FilterService->getUrlOfFilteredImage('9e/1e/a75c19ca549b85d8af36db6f27db.jpeg', 'sylius_shop_product_original', null)
     (vendor/liip/imagine-bundle/Controller/ImagineController.php:92)
  at Liip\ImagineBundle\Controller\ImagineController->Liip\ImagineBundle\Controller\{closure}()
     (vendor/liip/imagine-bundle/Controller/ImagineController.php:141)
  at Liip\ImagineBundle\Controller\ImagineController->createRedirectResponse(object(Closure), '9e/1e/a75c19ca549b85d8af36db6f27db.jpeg', 'sylius_shop_product_original')
     (vendor/liip/imagine-bundle/Controller/ImagineController.php:91)
  at Liip\ImagineBundle\Controller\ImagineController->filterAction(object(Request), '9e/1e/a75c19ca549b85d8af36db6f27db.jpeg', 'sylius_shop_product_original')
     (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), 1, true)
     (vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php:85)
  at Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle(object(AppKernel), object(Request), 1, true)
     (vendor/symfony/http-kernel/HttpCache/HttpCache.php:477)
  at Symfony\Component\HttpKernel\HttpCache\HttpCache->forward(object(Request), true, null)
     (vendor/symfony/framework-bundle/HttpCache/HttpCache.php:62)
  at Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache->forward(object(Request), true)
     (vendor/symfony/http-kernel/HttpCache/HttpCache.php:450)
  at Symfony\Component\HttpKernel\HttpCache\HttpCache->fetch(object(Request), true)
     (vendor/symfony/http-kernel/HttpCache/HttpCache.php:344)
  at Symfony\Component\HttpKernel\HttpCache\HttpCache->lookup(object(Request), true)
     (vendor/symfony/http-kernel/HttpCache/HttpCache.php:222)
  at Symfony\Component\HttpKernel\HttpCache\HttpCache->handle(object(Request))
     (web/app.php:28)