Exceptions
Exceptions 2
Symfony\Component\HttpKernel\Exception\ NotFoundHttpException
} catch (NotLoadableException $exception) {if (null !== $this->dataManager->getDefaultImageUrl($filter)) {return new RedirectResponse($this->dataManager->getDefaultImageUrl($filter));}throw new NotFoundHttpException(\sprintf('Source image for path "%s" could not be found', $path), $exception);} catch (NonExistingFilterException $exception) {throw new NotFoundHttpException(\sprintf('Requested non-existing filter "%s"', $filter), $exception);} catch (RuntimeException $exception) {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);}
in
vendor/liip/imagine-bundle/Controller/ImagineController.php
->
createRedirectResponse
(line 90)
public function filterAction(Request $request, $path, $filter){$path = PathHelper::urlPathToFilePath($path);$resolver = $request->get('resolver');return $this->createRedirectResponse(function () use ($path, $filter, $resolver, $request) {return $this->filterService->getUrlOfFilteredImage($path,$filter,$resolver,$this->isWebpSupported($request)
in
vendor/symfony/http-kernel/HttpKernel.php
->
filterAction
(line 163)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);$controller = $event->getController();$arguments = $event->getArguments();// call controller$response = $controller(...$arguments);// viewif (!$response instanceof Response) {$event = new ViewEvent($this, $request, $type, $response);$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 75)
{$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());$this->requestStack->push($request);try {return $this->handleRaw($request, $type);} catch (\Exception $e) {if ($e instanceof RequestExceptionInterface) {$e = new BadRequestHttpException($e->getMessage(), $e);}if (false === $catch) {
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 202)
$this->boot();++$this->requestStackSize;$this->resetServices = true;try {return $this->getHttpKernel()->handle($request, $type, $catch);} finally {--$this->requestStackSize;}}
in
vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php
->
handle
(line 35)
$this->request = $request;}public function run(): int{$response = $this->kernel->handle($this->request);$response->send();if ($this->kernel instanceof TerminableInterface) {$this->kernel->terminate($this->request, $response);}
in
vendor/autoload_runtime.php
->
run
(line 35)
$app = $app(...$args);exit($runtime->getRunner($app)->run());
<?phpuse App\Kernel;require_once dirname(__DIR__).'/vendor/autoload_runtime.php';return function (array $context) {return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);};
Liip\ImagineBundle\Exception\Binary\Loader\ NotLoadableException
if (null !== $absolute = $this->locateUsingRootPathsSearch($path)) {return $this->sanitizeAbsolutePath($absolute);}throw new NotLoadableException(\sprintf('Source image not resolvable "%s" in root path(s) "%s"', $path, implode(':', $this->roots)));}protected function generateAbsolutePath(string $root, string $path): ?string{if (false !== $absolute = realpath($root.DIRECTORY_SEPARATOR.$path)) {
in
vendor/liip/imagine-bundle/Binary/Loader/FileSystemLoader.php
->
locate
(line 72)
$this->locator = $locator;}public function find($path){$path = $this->locator->locate($path);if (false === is_file($path)) {throw new NotLoadableException(\sprintf('Source image: "%s" is no file.', $path));}
in
vendor/liip/imagine-bundle/Imagine/Data/DataManager.php
->
find
(line 129)
*/public function find($filter, $path){$loader = $this->getLoader($filter);$binary = $loader->find($path);if (!$binary instanceof BinaryInterface) {$mimeType = $this->mimeTypeGuesser->guess($binary);$extension = $this->getExtension($mimeType);$binary = new Binary(
in
vendor/liip/imagine-bundle/Service/FilterService.php
->
find
(line 222)
/*** @throws NonExistingFilterException*/private function createFilteredBinary(FilterPathContainer $filterPathContainer, string $filter): BinaryInterface{$binary = $this->dataManager->find($filter, $filterPathContainer->getSource());try {return $this->filterManager->applyFilter($binary, $filter, $filterPathContainer->getOptions());} catch (NonExistingFilterException $e) {$this->logger->debug(\sprintf(
in
vendor/liip/imagine-bundle/Service/FilterService.php
->
createFilteredBinary
(line 205)
?string $resolver = null,bool $forced = false): bool {if ($forced || !$this->cacheManager->isStored($filterPathContainer->getTarget(), $filter, $resolver)) {$this->cacheManager->store($this->createFilteredBinary($filterPathContainer, $filter),$filterPathContainer->getTarget(),$filter,$resolver);
in
vendor/liip/imagine-bundle/Service/FilterService.php
->
warmUpCacheFilterPathContainer
(line 123)
* @return string*/public function getUrlOfFilteredImage($path, $filter, $resolver = null, bool $webpSupported = false){foreach ($this->buildFilterPathContainers($path) as $filterPathContainer) {$this->warmUpCacheFilterPathContainer($filterPathContainer, $filter, $resolver);}return $this->resolveFilterPathContainer(new FilterPathContainer($path), $filter, $resolver, $webpSupported);}
in
vendor/liip/imagine-bundle/Controller/ImagineController.php
->
getUrlOfFilteredImage
(line 91)
{$path = PathHelper::urlPathToFilePath($path);$resolver = $request->get('resolver');return $this->createRedirectResponse(function () use ($path, $filter, $resolver, $request) {return $this->filterService->getUrlOfFilteredImage($path,$filter,$resolver,$this->isWebpSupported($request));
in
vendor/liip/imagine-bundle/Controller/ImagineController.php
->
Liip\ImagineBundle\Controller\{closure}
(line 162)
}private function createRedirectResponse(\Closure $url, string $path, string $filter, ?string $hash = null): RedirectResponse{try {return new RedirectResponse($url(), $this->controllerConfig->getRedirectResponseCode());} catch (NotLoadableException $exception) {if (null !== $this->dataManager->getDefaultImageUrl($filter)) {return new RedirectResponse($this->dataManager->getDefaultImageUrl($filter));}
in
vendor/liip/imagine-bundle/Controller/ImagineController.php
->
createRedirectResponse
(line 90)
public function filterAction(Request $request, $path, $filter){$path = PathHelper::urlPathToFilePath($path);$resolver = $request->get('resolver');return $this->createRedirectResponse(function () use ($path, $filter, $resolver, $request) {return $this->filterService->getUrlOfFilteredImage($path,$filter,$resolver,$this->isWebpSupported($request)
in
vendor/symfony/http-kernel/HttpKernel.php
->
filterAction
(line 163)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);$controller = $event->getController();$arguments = $event->getArguments();// call controller$response = $controller(...$arguments);// viewif (!$response instanceof Response) {$event = new ViewEvent($this, $request, $type, $response);$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 75)
{$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());$this->requestStack->push($request);try {return $this->handleRaw($request, $type);} catch (\Exception $e) {if ($e instanceof RequestExceptionInterface) {$e = new BadRequestHttpException($e->getMessage(), $e);}if (false === $catch) {
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 202)
$this->boot();++$this->requestStackSize;$this->resetServices = true;try {return $this->getHttpKernel()->handle($request, $type, $catch);} finally {--$this->requestStackSize;}}
in
vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php
->
handle
(line 35)
$this->request = $request;}public function run(): int{$response = $this->kernel->handle($this->request);$response->send();if ($this->kernel instanceof TerminableInterface) {$this->kernel->terminate($this->request, $response);}
in
vendor/autoload_runtime.php
->
run
(line 35)
$app = $app(...$args);exit($runtime->getRunner($app)->run());
<?phpuse App\Kernel;require_once dirname(__DIR__).'/vendor/autoload_runtime.php';return function (array $context) {return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);};
Logs
| Level | Channel | Message |
|---|---|---|
| INFO 08:01:11 | request |
Matched route "_profiler". {
"route": "_profiler",
"route_parameters": {
"_route": "_profiler",
"_controller": "web_profiler.controller.profiler::panelAction",
"token": "568dbe"
},
"request_uri": "https://nordinfo.spontaneit.fr/_profiler/568dbe?panel=exception",
"method": "GET"
}
|
Stack Traces 2
|
[2/2]
NotFoundHttpException
|
|---|
Symfony\Component\HttpKernel\Exception\NotFoundHttpException:
Source image for path "upload/images/5ea93914c1a04_ca-recette-11.jpg" could not be found
at vendor/liip/imagine-bundle/Controller/ImagineController.php:168
at Liip\ImagineBundle\Controller\ImagineController->createRedirectResponse()
(vendor/liip/imagine-bundle/Controller/ImagineController.php:90)
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()
(vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
(vendor/autoload_runtime.php:35)
at require_once('/home/www/nordinfo/vendor/autoload_runtime.php')
(public/index.php:5)
|
|
[1/2]
NotLoadableException
|
|---|
Liip\ImagineBundle\Exception\Binary\Loader\NotLoadableException:
Source image not resolvable "upload/images/5ea93914c1a04_ca-recette-11.jpg" in root path(s) "/home/www/nordinfo/public"
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:72)
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:222)
at Liip\ImagineBundle\Service\FilterService->createFilteredBinary()
(vendor/liip/imagine-bundle/Service/FilterService.php:205)
at Liip\ImagineBundle\Service\FilterService->warmUpCacheFilterPathContainer()
(vendor/liip/imagine-bundle/Service/FilterService.php:123)
at Liip\ImagineBundle\Service\FilterService->getUrlOfFilteredImage()
(vendor/liip/imagine-bundle/Controller/ImagineController.php:91)
at Liip\ImagineBundle\Controller\ImagineController->Liip\ImagineBundle\Controller\{closure}()
(vendor/liip/imagine-bundle/Controller/ImagineController.php:162)
at Liip\ImagineBundle\Controller\ImagineController->createRedirectResponse()
(vendor/liip/imagine-bundle/Controller/ImagineController.php:90)
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()
(vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
(vendor/autoload_runtime.php:35)
at require_once('/home/www/nordinfo/vendor/autoload_runtime.php')
(public/index.php:5)
|