Exceptions
Exception
Symfony\Component\Filesystem\Exception\ IOException
Show exception properties
Symfony\Component\Filesystem\Exception\IOException {#2232 -path: "/home/clients/14b5397f746691c6b08ec948889ec1dd/var/www/storm-be-preprod/var/uploads/media/10/processor.avif" }
{$pathName = $this->getPath($storageOptions);$fp = @\fopen($pathName, 'r');if (false === $fp) {throw new IOException(\sprintf('Failed to open file "%s"', $pathName), path: $pathName);}return $fp;}
in
vendor/sulu/sulu/src/Sulu/Bundle/MediaBundle/Media/ImageConverter/ImagineImageConverter.php
->
load
(line 97)
}public function convert(FileVersion $fileVersion, $formatKey, $imageFormat){$imageResource = $this->mediaImageExtractor->extract($this->storage->load($fileVersion->getStorageOptions()),$fileVersion->getMimeType());$imagine = $this->imagine;if ('svg' === $imageFormat && $this->svgImagine) {
in
vendor/sulu/sulu/src/Sulu/Bundle/MediaBundle/Media/FormatManager/FormatManager.php
->
convert
(line 146)
\implode(', ', $supportedImageFormats)));}// Convert Media to format.$responseContent = $this->converter->convert($fileVersion, $formatKey, $imageFormat);// HTTP Headers$status = 200;$setExpireHeaders = true;
in
vendor/sulu/sulu/src/Sulu/Bundle/MediaBundle/Controller/MediaStreamController.php
->
returnImage
(line 71)
$version = (string) $request->query->get('v', '1-0');$version = (int) (\explode('-', $version)[0] ?? '1');$mediaProperties = $this->formatCache->analyzedMediaUrl($url);return $this->formatManager->returnImage($mediaProperties['id'],$mediaProperties['format'],$mediaProperties['fileName'],$version,);
in
vendor/symfony/http-kernel/HttpKernel.php
->
getImageAction
(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 182)
$this->boot();++$this->requestStackSize;$this->resetServices = true;try {return $this->getHttpKernel()->handle($request, $type, $catch);} finally {--$this->requestStackSize;}}
// When using the HttpCache, you need to call the method in your front controller// instead of relying on the configuration parameter// https://symfony.com/doc/6.4/reference/configuration/framework.html#http-method-overrideRequest::enableHttpMethodParameterOverride();$request = Request::createFromGlobals();$response = $kernel->handle($request);$response->send();$kernel->terminate($request, $response);
Logs
No log messages
Stack Trace
|
IOException
|
|---|
Symfony\Component\Filesystem\Exception\IOException:
Failed to open file "/home/clients/14b5397f746691c6b08ec948889ec1dd/var/www/storm-be-preprod/var/uploads/media/10/processor.avif"
at vendor/sulu/sulu/src/Sulu/Bundle/MediaBundle/Media/Storage/LocalStorage.php:66
at Sulu\Bundle\MediaBundle\Media\Storage\LocalStorage->load(array('segment' => '10', 'fileName' => 'processor.avif'))
(vendor/sulu/sulu/src/Sulu/Bundle/MediaBundle/Media/ImageConverter/ImagineImageConverter.php:97)
at Sulu\Bundle\MediaBundle\Media\ImageConverter\ImagineImageConverter->convert(object(FileVersion), '437x226', 'avif')
(vendor/sulu/sulu/src/Sulu/Bundle/MediaBundle/Media/FormatManager/FormatManager.php:146)
at Sulu\Bundle\MediaBundle\Media\FormatManager\FormatManager->returnImage(27101, '437x226', 'processor.avif', 1)
(vendor/sulu/sulu/src/Sulu/Bundle/MediaBundle/Controller/MediaStreamController.php:71)
at Sulu\Bundle\MediaBundle\Controller\MediaStreamController->getImageAction(object(Request))
(vendor/symfony/http-kernel/HttpKernel.php:183)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
(vendor/symfony/http-kernel/HttpKernel.php:76)
at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
(vendor/symfony/http-kernel/Kernel.php:182)
at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
(public/index.php:69)
|