Exceptions
Exception
Symfony\Component\Filesystem\Exception\ IOException
Show exception properties
Symfony\Component\Filesystem\Exception\IOException {#2502 -path: "/var/www/html/dod/dod_docker/var/uploads/media/04/visuel-1100x1100.png" }
{
$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);
// view
if (!$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-override
Request::enableHttpMethodParameterOverride();
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
Logs
Level | Channel | Message |
---|---|---|
INFO 20:29:19 | deprecation |
User Deprecated: Since sulu/sulu 2.3: The "Sulu\Component\Localization\Localization::setXDefault" method is deprecated on "Sulu\Component\Localization\Localization" use "setDefault" instead. { "exception": {} } |
INFO 20:29:19 | deprecation |
User Deprecated: Since sulu/sulu 2.3: The "Sulu\Component\Localization\Localization::setXDefault" method is deprecated on "Sulu\Component\Localization\Localization" use "setDefault" instead. { "exception": {} } |
INFO 20:29:19 | deprecation |
User Deprecated: Since sulu/sulu 2.3: The "Sulu\Component\Webspace\Portal::getXDefaultLocalization" method is deprecated on "Sulu\Component\Webspace\Portal" use "getDefaultLocalization" instead. { "exception": {} } |
INFO 20:29:19 | deprecation |
User Deprecated: Since sulu/sulu 2.3: The "Sulu\Component\Webspace\Portal::setXDefaultLocalization" method is deprecated on "Sulu\Component\Webspace\Portal" use "setDefaultLocalization" instead. { "exception": {} } |
INFO 20:29:19 | request |
Matched route "_profiler". { "route": "_profiler", "route_parameters": { "_route": "_profiler", "_controller": "web_profiler.controller.profiler::panelAction", "token": "ed9efe" }, "request_uri": "https://dod.oj-consulting.fr/_profiler/ed9efe", "method": "GET" } |
Stack Trace
IOException
|
---|
Symfony\Component\Filesystem\Exception\IOException: Failed to open file "/var/www/html/dod/dod_docker/var/uploads/media/04/visuel-1100x1100.png" at vendor/sulu/sulu/src/Sulu/Bundle/MediaBundle/Media/Storage/LocalStorage.php:66 at Sulu\Bundle\MediaBundle\Media\Storage\LocalStorage->load() (vendor/sulu/sulu/src/Sulu/Bundle/MediaBundle/Media/ImageConverter/ImagineImageConverter.php:97) at Sulu\Bundle\MediaBundle\Media\ImageConverter\ImagineImageConverter->convert() (vendor/sulu/sulu/src/Sulu/Bundle/MediaBundle/Media/FormatManager/FormatManager.php:146) at Sulu\Bundle\MediaBundle\Media\FormatManager\FormatManager->returnImage() (vendor/sulu/sulu/src/Sulu/Bundle/MediaBundle/Controller/MediaStreamController.php:71) at Sulu\Bundle\MediaBundle\Controller\MediaStreamController->getImageAction() (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:182) at Symfony\Component\HttpKernel\Kernel->handle() (public/index.php:69) |