Exceptions

Source image for path "de/fa/0879419124db08d5191bb3dae58e.jpg&amp&amp" 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"', [$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() in public/index.php (line 31)
  1. $_SERVER['HTTPS'] = 'on';
  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);

Liip\ImagineBundle\Exception\Binary\Loader\ NotLoadableException

Source image not resolvable "de/fa/0879419124db08d5191bb3dae58e.jpg&amp&amp" in root path(s) "/home/ppmcdev/public/media/image:/home/ppmcdev/public:/home/ppmcdev/public/media/image:/home/ppmcdev/public/taxon-ctas:/home/ppmcdev/public/articles"

  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.     /**
  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.      * @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 142)
  1.         }
  2.         foreach ($filterPathContainers as $filterPathContainer) {
  3.             if (!$this->cacheManager->isStored($filterPathContainer->getTarget(), $filter$resolver)) {
  4.                 $this->cacheManager->store(
  5.                     $this->createFilteredBinary($filterPathContainer$filter),
  6.                     $filterPathContainer->getTarget(),
  7.                     $filter,
  8.                     $resolver
  9.                 );
  10.             }
in vendor/liip/imagine-bundle/Service/FilterService.php -> getUrlOfFilteredImageByContainer (line 101)
  1.      */
  2.     public function getUrlOfFilteredImage($path$filter$resolver nullbool $webpSupported false)
  3.     {
  4.         $basePathContainer = new FilterPathContainer($path);
  5.         return $this->getUrlOfFilteredImageByContainer($basePathContainer$filter$resolver$webpSupported);
  6.     }
  7.     /**
  8.      * @param string      $path
  9.      * @param string      $filter
  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 143)
  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() in public/index.php (line 31)
  1. $_SERVER['HTTPS'] = 'on';
  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);

Logs

No log messages

Stack Traces 2

[2/2] NotFoundHttpException
Symfony\Component\HttpKernel\Exception\NotFoundHttpException:
Source image for path "de/fa/0879419124db08d5191bb3dae58e.jpg&amp&amp" could not be found

  at vendor/liip/imagine-bundle/Controller/ImagineController.php:149
  at Liip\ImagineBundle\Controller\ImagineController->createRedirectResponse()
     (vendor/liip/imagine-bundle/Controller/ImagineController.php:88)
  at Liip\ImagineBundle\Controller\ImagineController->filterAction()
     (vendor/symfony/http-kernel/HttpKernel.php:163)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:75)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:202)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (public/index.php:31)                
[1/2] NotLoadableException
Liip\ImagineBundle\Exception\Binary\Loader\NotLoadableException:
Source image not resolvable "de/fa/0879419124db08d5191bb3dae58e.jpg&amp&amp" in root path(s) "/home/ppmcdev/public/media/image:/home/ppmcdev/public:/home/ppmcdev/public/media/image:/home/ppmcdev/public/taxon-ctas:/home/ppmcdev/public/articles"

  at vendor/liip/imagine-bundle/Binary/Locator/FileSystemLocator.php:47
  at Liip\ImagineBundle\Binary\Locator\FileSystemLocator->locate()
     (vendor/liip/imagine-bundle/Binary/Loader/FileSystemLoader.php:74)
  at Liip\ImagineBundle\Binary\Loader\FileSystemLoader->find()
     (vendor/liip/imagine-bundle/Imagine/Data/DataManager.php:129)
  at Liip\ImagineBundle\Imagine\Data\DataManager->find()
     (vendor/liip/imagine-bundle/Service/FilterService.php:162)
  at Liip\ImagineBundle\Service\FilterService->createFilteredBinary()
     (vendor/liip/imagine-bundle/Service/FilterService.php:142)
  at Liip\ImagineBundle\Service\FilterService->getUrlOfFilteredImageByContainer()
     (vendor/liip/imagine-bundle/Service/FilterService.php:101)
  at Liip\ImagineBundle\Service\FilterService->getUrlOfFilteredImage()
     (vendor/liip/imagine-bundle/Controller/ImagineController.php:93)
  at Liip\ImagineBundle\Controller\ImagineController->Liip\ImagineBundle\Controller\{closure}()
     (vendor/liip/imagine-bundle/Controller/ImagineController.php:143)
  at Liip\ImagineBundle\Controller\ImagineController->createRedirectResponse()
     (vendor/liip/imagine-bundle/Controller/ImagineController.php:88)
  at Liip\ImagineBundle\Controller\ImagineController->filterAction()
     (vendor/symfony/http-kernel/HttpKernel.php:163)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:75)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:202)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (public/index.php:31)