Exceptions
Exception
Liip\ImagineBundle\Exception\ LogicException
in
vendor/liip/imagine-bundle/Imagine/Data/DataManager.php
(line 146)
if (null === $binary->getMimeType()) {throw new LogicException(\sprintf('The mime type of image %s was not guessed.', $path));}if (0 !== mb_strpos($binary->getMimeType(), 'image/') && 'application/pdf' !== $binary->getMimeType()) {throw new LogicException(\sprintf('The mime type of file %s must be image/xxx or application/pdf, got %s.', $path, $binary->getMimeType()));}return $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 92)
$path = PathHelper::urlPathToFilePath($path);// TODO once we limit `symfony/http-foundation` to 6.4 or newer, use `$request->query->getString()`$resolver = $request->query->has('resolver') ? (string) $request->query->get('resolver') : null;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
->
{closure:Liip\ImagineBundle\Controller\ImagineController::filterAction():91}
(line 163)
}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 91)
{$path = PathHelper::urlPathToFilePath($path);// TODO once we limit `symfony/http-foundation` to 6.4 or newer, use `$request->query->getString()`$resolver = $request->query->has('resolver') ? (string) $request->query->get('resolver') : null;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 183)
$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, $event);$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 76)
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());$this->requestStack->push($request);$response = null;try {return $response = $this->handleRaw($request, $type);} catch (\Throwable $e) {if ($e instanceof \Error && !$this->handleAllThrowables) {throw $e;}
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 193)
if (!$this->handlingHttpCache) {$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)
) {}public function run(): int{$response = $this->kernel->handle($this->request);if (Kernel::VERSION_ID >= 60400) {$response->send(false);if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in
vendor/autoload_runtime.php
->
run
(line 29)
$app = $app(...$args);exit($runtime->getRunner($app)->run());
require_once('/var/www/vhosts/dev.thelliervoyages.com/httpdocs/vendor/autoload_runtime.php')
in
public/index.php
(line 5)
<?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 05:32:47 | deprecation |
User Deprecated: The Liip\ImagineBundle\Templating\FilterTrait trait is deprecated since version 2.7 and will be removed in 3.0; use Twig instead. {
"exception": {}
}
|
| INFO 05:32:47 | deprecation |
User Deprecated: The Liip\ImagineBundle\Templating\FilterExtension class is deprecated since version 2.7 and will be removed in 3.0; configure "liip_imagine.twig.mode" to "lazy" instead. {
"exception": {}
}
|
| INFO 05:32:47 | deprecation |
User Deprecated: Class "Doctrine\ORM\Proxy\Autoloader" is deprecated. Use native lazy objects instead. (Autoloader.php:74 called by DoctrineBundle.php:136, https://github.com/doctrine/orm/pull/12005, package doctrine/orm) {
"exception": {}
}
|
| INFO 05:32:47 | deprecation |
User Deprecated: Version detection logic for MySQL will change in DBAL 4. Please specify the version as the server reports it, e.g. "10.9.3-MariaDB" instead of "mariadb-10.9". (AbstractMySQLDriver.php:176 called by AbstractMySQLDriver.php:45, https://github.com/doctrine/dbal/pull/5779, package doctrine/orm) {
"exception": {}
}
|
| INFO 05:32:47 | doctrine |
Connecting with parameters {params} {
"params": {
"use_savepoints": true,
"driver": "pdo_mysql",
"idle_connection_ttl": 600,
"host": "localhost",
"port": 3306,
"user": "thellier",
"password": "<redacted>",
"driverOptions": [],
"defaultTableOptions": [],
"dbname": "dev_thellier",
"serverVersion": "mariadb-11.8.3",
"charset": "utf8mb4"
}
}
|
| DEBUG 05:32:47 | doctrine |
Executing query: SELECT t0.id AS id_1, t0.is_activate AS is_activate_2, t0.ips AS ips_3, t0.message AS message_4 FROM maintenance t0 LIMIT 1 {
"sql": "SELECT t0.id AS id_1, t0.is_activate AS is_activate_2, t0.ips AS ips_3, t0.message AS message_4 FROM maintenance t0 LIMIT 1"
}
|
| INFO 05:32:47 | request |
Matched route "_profiler". {
"route": "_profiler",
"route_parameters": {
"_route": "_profiler",
"_controller": "web_profiler.controller.profiler::panelAction",
"token": "a23071"
},
"request_uri": "https://dev.thelliervoyages.com/_profiler/a23071?panel=exception&type=request",
"method": "GET"
}
|
Stack Trace
|
LogicException
|
|---|
Liip\ImagineBundle\Exception\LogicException:
The mime type of file fb/e6/8ec71fe617de5e5f1a762f54720f. must be image/xxx or application/pdf, got application/x-empty.
at vendor/liip/imagine-bundle/Imagine/Data/DataManager.php:146
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:92)
at Liip\ImagineBundle\Controller\ImagineController->{closure:Liip\ImagineBundle\Controller\ImagineController::filterAction():91}()
(vendor/liip/imagine-bundle/Controller/ImagineController.php:163)
at Liip\ImagineBundle\Controller\ImagineController->createRedirectResponse()
(vendor/liip/imagine-bundle/Controller/ImagineController.php:91)
at Liip\ImagineBundle\Controller\ImagineController->filterAction()
(vendor/symfony/http-kernel/HttpKernel.php:183)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
(vendor/symfony/http-kernel/HttpKernel.php:76)
at Symfony\Component\HttpKernel\HttpKernel->handle()
(vendor/symfony/http-kernel/Kernel.php:193)
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:29)
at require_once('/var/www/vhosts/dev.thelliervoyages.com/httpdocs/vendor/autoload_runtime.php')
(public/index.php:5)
|