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/http-kernel/HttpCache/SubRequestHandler.php
->
handle
(line 86)
if (!IpUtils::checkIp('127.0.0.1', $trustedProxies)) {Request::setTrustedProxies(array_merge($trustedProxies, ['127.0.0.1']), Request::getTrustedHeaderSet());}try {return $kernel->handle($request, $type, $catch);} finally {// restore global stateRequest::setTrustedProxies($trustedProxies, $trustedHeaderSet);}}
in
vendor/symfony/http-kernel/HttpCache/HttpCache.php
::
handle
(line 479)
if ($this->surrogate) {$this->surrogate->addSurrogateCapability($request);}// always a "master" request (as the real master request can be in cache)$response = SubRequestHandler::handle($this->kernel, $request, HttpKernelInterface::MAIN_REQUEST, $catch);/** Support stale-if-error given on Responses or as a config option.* RFC 7234 summarizes in Section 4.2.4 (but also mentions with the individual* Cache-Control directives) that
in
vendor/symfony/framework-bundle/HttpCache/HttpCache.php
->
forward
(line 73)
protected function forward(Request $request, bool $catch = false, Response $entry = null){$this->getKernel()->boot();$this->getKernel()->getContainer()->set('cache', $this);return parent::forward($request, $catch, $entry);}/*** Returns an array of options to customize the Cache configuration.*
in
vendor/symfony/http-kernel/HttpCache/HttpCache.php
->
forward
(line 452)
// avoid that the backend sends no content$subRequest->headers->remove('If-Modified-Since');$subRequest->headers->remove('If-None-Match');$response = $this->forward($subRequest, $catch);if ($response->isCacheable()) {$this->store($request, $response);}
in
vendor/symfony/http-kernel/HttpCache/HttpCache.php
->
fetch
(line 346)
}if (null === $entry) {$this->record($request, 'miss');return $this->fetch($request, $catch);}if (!$this->isFreshEnough($request, $entry)) {$this->record($request, 'stale');
in
vendor/symfony/http-kernel/HttpCache/HttpCache.php
->
lookup
(line 224)
reload the cache by fetching a fresh response and caching it (if possible).*/$this->record($request, 'reload');$response = $this->fetch($request, $catch);} else {$response = $this->lookup($request, $catch);}$this->restoreResponseBody($request, $response);if (HttpKernelInterface::MAIN_REQUEST === $type) {
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 193)
{if (!$this->booted) {$container = $this->container ?? $this->preBoot();if ($container->has('http_cache')) {return $container->get('http_cache')->handle($request, $type, $catch);}}$this->boot();++$this->requestStackSize;
Debug::enable();}$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);$request = Request::createFromGlobals();$response = $kernel->handle($request);$response->send();$kernel->terminate($request, $response);
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 74)
/*** {@inheritdoc}*/public function find($path){$path = $this->locator->locate($path);$mimeType = $this->mimeTypeGuesser instanceof DeprecatedMimeTypeGuesserInterface ? $this->mimeTypeGuesser->guess($path) : $this->mimeTypeGuesser->guessMimeType($path);$extension = $this->getExtension($mimeType);return new FileBinary($path, $mimeType, $extension);}
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 95)
return $this->createRedirectResponse(function () use ($path, $filter, $resolver, $request) {return $this->filterService->getUrlOfFilteredImage($path,$filter,$resolver,$this->isWebpSupported($request));}, $path, $filter);}/**
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/http-kernel/HttpCache/SubRequestHandler.php
->
handle
(line 86)
if (!IpUtils::checkIp('127.0.0.1', $trustedProxies)) {Request::setTrustedProxies(array_merge($trustedProxies, ['127.0.0.1']), Request::getTrustedHeaderSet());}try {return $kernel->handle($request, $type, $catch);} finally {// restore global stateRequest::setTrustedProxies($trustedProxies, $trustedHeaderSet);}}
in
vendor/symfony/http-kernel/HttpCache/HttpCache.php
::
handle
(line 479)
if ($this->surrogate) {$this->surrogate->addSurrogateCapability($request);}// always a "master" request (as the real master request can be in cache)$response = SubRequestHandler::handle($this->kernel, $request, HttpKernelInterface::MAIN_REQUEST, $catch);/** Support stale-if-error given on Responses or as a config option.* RFC 7234 summarizes in Section 4.2.4 (but also mentions with the individual* Cache-Control directives) that
in
vendor/symfony/framework-bundle/HttpCache/HttpCache.php
->
forward
(line 73)
protected function forward(Request $request, bool $catch = false, Response $entry = null){$this->getKernel()->boot();$this->getKernel()->getContainer()->set('cache', $this);return parent::forward($request, $catch, $entry);}/*** Returns an array of options to customize the Cache configuration.*
in
vendor/symfony/http-kernel/HttpCache/HttpCache.php
->
forward
(line 452)
// avoid that the backend sends no content$subRequest->headers->remove('If-Modified-Since');$subRequest->headers->remove('If-None-Match');$response = $this->forward($subRequest, $catch);if ($response->isCacheable()) {$this->store($request, $response);}
in
vendor/symfony/http-kernel/HttpCache/HttpCache.php
->
fetch
(line 346)
}if (null === $entry) {$this->record($request, 'miss');return $this->fetch($request, $catch);}if (!$this->isFreshEnough($request, $entry)) {$this->record($request, 'stale');
in
vendor/symfony/http-kernel/HttpCache/HttpCache.php
->
lookup
(line 224)
reload the cache by fetching a fresh response and caching it (if possible).*/$this->record($request, 'reload');$response = $this->fetch($request, $catch);} else {$response = $this->lookup($request, $catch);}$this->restoreResponseBody($request, $response);if (HttpKernelInterface::MAIN_REQUEST === $type) {
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 193)
{if (!$this->booted) {$container = $this->container ?? $this->preBoot();if ($container->has('http_cache')) {return $container->get('http_cache')->handle($request, $type, $catch);}}$this->boot();++$this->requestStackSize;
Debug::enable();}$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);$request = Request::createFromGlobals();$response = $kernel->handle($request);$response->send();$kernel->terminate($request, $response);
Logs
No log messages
Stack Traces 2
|
[2/2]
NotFoundHttpException
|
|---|
Symfony\Component\HttpKernel\Exception\NotFoundHttpException:
Source image for path "storage/logo/apprentis-d-auteuil-college-saint-jean-sannois-95110-GE075-31_2016_LF.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/http-kernel/HttpCache/SubRequestHandler.php:86)
at Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle()
(vendor/symfony/http-kernel/HttpCache/HttpCache.php:479)
at Symfony\Component\HttpKernel\HttpCache\HttpCache->forward()
(vendor/symfony/framework-bundle/HttpCache/HttpCache.php:73)
at Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache->forward()
(vendor/symfony/http-kernel/HttpCache/HttpCache.php:452)
at Symfony\Component\HttpKernel\HttpCache\HttpCache->fetch()
(vendor/symfony/http-kernel/HttpCache/HttpCache.php:346)
at Symfony\Component\HttpKernel\HttpCache\HttpCache->lookup()
(vendor/symfony/http-kernel/HttpCache/HttpCache.php:224)
at Symfony\Component\HttpKernel\HttpCache\HttpCache->handle()
(vendor/symfony/http-kernel/Kernel.php:193)
at Symfony\Component\HttpKernel\Kernel->handle()
(public/index.php:22)
|
|
[1/2]
NotLoadableException
|
|---|
Liip\ImagineBundle\Exception\Binary\Loader\NotLoadableException:
Source image not resolvable "storage/logo/apprentis-d-auteuil-college-saint-jean-sannois-95110-GE075-31_2016_LF.jpg" in root path(s) "/app/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: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: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:95)
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/http-kernel/HttpCache/SubRequestHandler.php:86)
at Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle()
(vendor/symfony/http-kernel/HttpCache/HttpCache.php:479)
at Symfony\Component\HttpKernel\HttpCache\HttpCache->forward()
(vendor/symfony/framework-bundle/HttpCache/HttpCache.php:73)
at Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache->forward()
(vendor/symfony/http-kernel/HttpCache/HttpCache.php:452)
at Symfony\Component\HttpKernel\HttpCache\HttpCache->fetch()
(vendor/symfony/http-kernel/HttpCache/HttpCache.php:346)
at Symfony\Component\HttpKernel\HttpCache\HttpCache->lookup()
(vendor/symfony/http-kernel/HttpCache/HttpCache.php:224)
at Symfony\Component\HttpKernel\HttpCache\HttpCache->handle()
(vendor/symfony/http-kernel/Kernel.php:193)
at Symfony\Component\HttpKernel\Kernel->handle()
(public/index.php:22)
|