Exceptions

Source image for path "public/upload/member/daniel-pan-63be738b08273216201995.png" 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 152)
  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 $requestint $type HttpKernelInterface::MAIN_REQUESTbool $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.         $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 35)
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/home/hlcdisb/www/viewpoint_dev/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. return function (array $context) {
  5.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  6. };

Liip\ImagineBundle\Exception\Binary\Loader\ NotLoadableException

Source image not resolvable "public/upload/member/daniel-pan-63be738b08273216201995.png" in root path(s) "/home/hlcdisb/www/viewpoint_dev/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.     /**
  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 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 152)
  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 $requestint $type HttpKernelInterface::MAIN_REQUESTbool $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.         $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 35)
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/home/hlcdisb/www/viewpoint_dev/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. return function (array $context) {
  5.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  6. };