Exceptions
Exception
Symfony\Component\Filesystem\Exception\ IOException
Show exception properties
Symfony\Component\Filesystem\Exception\IOException {#630 -path: "/application/public/media/cache/product_square/product/824/824-09-b-w1920-69b81eb926093.jpg" }
in
vendor/symfony/filesystem/Filesystem.php
(line 304)
$this->mirror($origin, $target, null, ['override' => $overwrite, 'delete' => $overwrite]);$this->remove($origin);return;}throw new IOException(\sprintf('Cannot rename "%s" to "%s": ', $origin, $target).self::$lastError, 0, null, $target);}}/*** Tells whether a file exists and is readable.
in
vendor/symfony/filesystem/Filesystem.php
->
rename
(line 676)
throw new IOException(\sprintf('Failed to write file "%s": ', $filename).self::$lastError, 0, null, $filename);}self::box('chmod', $tmpFile, self::box('fileperms', $filename) ?: 0o666 & ~umask());$this->rename($tmpFile, $filename, true);} finally {if (file_exists($tmpFile)) {if ('\\' === \DIRECTORY_SEPARATOR && !is_writable($tmpFile)) {self::box('chmod', $tmpFile, self::box('fileperms', $tmpFile) | 0o200);}
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 00:54:05 | request |
Matched route "_profiler". {
"route": "_profiler",
"route_parameters": {
"_route": "_profiler",
"_controller": "web_profiler.controller.profiler::panelAction",
"token": "7b957c"
},
"request_uri": "https://moonprint-kuba.cod3lab.eu/_profiler/7b957c",
"method": "GET"
}
|
Stack Trace
|
IOException
|
|---|
Symfony\Component\Filesystem\Exception\IOException:
Cannot rename "/tmp/824-09-b-w1920-69b81eb926093.jpg5j4p2s3kbcphfscB36U" to "/application/public/media/cache/product_square/product/824/824-09-b-w1920-69b81eb926093.jpg": rename(/tmp/824-09-b-w1920-69b81eb926093.jpg5j4p2s3kbcphfscB36U,/application/public/media/cache/product_square/product/824/824-09-b-w1920-69b81eb926093.jpg): Permission denied
at vendor/symfony/filesystem/Filesystem.php:304
at Symfony\Component\Filesystem\Filesystem->rename()
(vendor/symfony/filesystem/Filesystem.php:676)
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)
|