Exceptions
Exception
Symfony\Component\Filesystem\Exception\ IOException
Show exception properties
Symfony\Component\Filesystem\Exception\IOException {#630 -path: "/application/public/media/cache/product_square/product/819" }
in
vendor/symfony/filesystem/Filesystem.php
(line 98)
if (is_dir($dir)) {continue;}if (!self::box('mkdir', $dir, $mode, true) && !is_dir($dir)) {throw new IOException(\sprintf('Failed to create "%s": ', $dir).self::$lastError, 0, null, $dir);}}}/**
in
vendor/symfony/filesystem/Filesystem.php
->
mkdir
(line 662)
return;}if (!is_dir($dir)) {$this->mkdir($dir);}// Will create a temp file with 0600 access rights// when the filesystem supports chmod.$tmpFile = $this->tempnam($dir, basename($filename));
in
vendor/liip/imagine-bundle/Imagine/Cache/Resolver/WebPathResolver.php
->
dumpFile
(line 79)
return is_file($this->getFilePath($path, $filter));}public function store(BinaryInterface $binary, $path, $filter){$this->filesystem->dumpFile($this->getFilePath($path, $filter),$binary->getContent());}
in
vendor/liip/imagine-bundle/Imagine/Cache/CacheManager.php
->
store
(line 222)
* @param string $filter* @param string $resolver*/public function store(BinaryInterface $binary, $path, $filter, $resolver = null){$this->getResolver($filter, $resolver)->store($binary, $path, $filter);}/*** @param string|string[]|null $paths* @param string|string[]|null $filters
in
vendor/liip/imagine-bundle/Service/FilterService.php
->
store
(line 204)
string $filter,?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);// 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():90}
(line 152)
}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)
{$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 191)
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 32)
$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 23:07:06 | request |
Matched route "_profiler". {
"route": "_profiler",
"route_parameters": {
"_route": "_profiler",
"_controller": "web_profiler.controller.profiler::panelAction",
"token": "latest"
},
"request_uri": "https://moonprint-kuba.cod3lab.eu/_profiler/latest?panel=exception&type=request",
"method": "GET"
}
|
Stack Trace
|
IOException
|
|---|
Symfony\Component\Filesystem\Exception\IOException:
Failed to create "/application/public/media/cache/product_square/product/819": mkdir(): Permission denied
at vendor/symfony/filesystem/Filesystem.php:98
at Symfony\Component\Filesystem\Filesystem->mkdir()
(vendor/symfony/filesystem/Filesystem.php:662)
at Symfony\Component\Filesystem\Filesystem->dumpFile()
(vendor/liip/imagine-bundle/Imagine/Cache/Resolver/WebPathResolver.php:79)
at Liip\ImagineBundle\Imagine\Cache\Resolver\WebPathResolver->store()
(vendor/liip/imagine-bundle/Imagine/Cache/CacheManager.php:222)
at Liip\ImagineBundle\Imagine\Cache\CacheManager->store()
(vendor/liip/imagine-bundle/Service/FilterService.php:204)
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->{closure:Liip\ImagineBundle\Controller\ImagineController::filterAction():90}()
(vendor/liip/imagine-bundle/Controller/ImagineController.php:152)
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: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:191)
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:32)
at require_once('/application/vendor/autoload_runtime.php')
(public/index.php:5)
|