Exceptions
Exception
ErrorException
return $storageOptions;
}
public function load(array $storageOptions)
{
return \fopen($this->getPath($storageOptions), 'r');
}
public function getPath(array $storageOptions): string
{
$directory = $this->getStorageOption($storageOptions, 'directory');
in
vendor/sulu/sulu/src/Sulu/Bundle/MediaBundle/Media/ImageConverter/ImagineImageConverter.php
->
load
(line 153)
}
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 145)
\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 117)
$mediaProperties = $this->formatCache->analyzedMediaUrl($url);
return $this->formatManager->returnImage(
$mediaProperties['id'],
$mediaProperties['format'],
$mediaProperties['fileName']
);
} catch (ImageProxyException $e) {
throw new NotFoundHttpException('Image create error. Code: ' . $e->getCode());
}
}
in
vendor/symfony/http-kernel/HttpKernel.php
->
getImageAction
(line 163)
$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);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 75)
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 202)
$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/3.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 13:11:30 | deprecation |
User Deprecated: Since symfony/security-core 5.4: Not setting the 5th argument of "Symfony\Component\Security\Core\Authorization\AuthorizationChecker::__construct" to "false" is deprecated. { "exception": {} } |
INFO 13:11:30 | deprecation |
User Deprecated: Since symfony/security-bundle 5.3: The "sulu_security.encoder_factory" service is deprecated, use "security.password_hasher_factory" instead. { "exception": {} } |
INFO 13:11:30 | deprecation |
User Deprecated: Since symfony/security-core 5.3: The "Symfony\Component\Security\Core\Encoder\EncoderFactory" class is deprecated, use "Symfony\Component\PasswordHasher\Hasher\PasswordHasherFactory" instead. { "exception": {} } |
INFO 13:11:30 | deprecation |
User Deprecated: Since symfony/security-core 5.3: The "Symfony\Component\Security\Core\Encoder\EncoderFactoryInterface" class is deprecated, use "Symfony\Component\PasswordHasher\Hasher\PasswordHasherFactoryInterface" instead. { "exception": {} } |
INFO 13:11:30 | 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 13:11:30 | 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 13:11:30 | 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 13:11:30 | 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 13:11:30 | 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 13:11:30 | 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 13:11:30 | request |
Matched route "_profiler". { "route": "_profiler", "route_parameters": { "_route": "_profiler", "_controller": "web_profiler.controller.profiler::panelAction", "token": "b00470" }, "request_uri": "http://oakas-lane.ewm.dev/_profiler/b00470?panel=exception", "method": "GET" } |
INFO 13:11:30 | deprecation |
User Deprecated: Since symfony/security-bundle 5.4: Setting the $authenticatorManagerEnabled argument of "Symfony\Bundle\SecurityBundle\DataCollector\SecurityDataCollector::__construct" to "false" is deprecated, use the new authenticator system instead. { "exception": {} } |
INFO 13:11:30 | deprecation |
User Deprecated: Class "Nyholm\Psr7\Factory\HttplugFactory" is deprecated since version 1.8, use "Nyholm\Psr7\Factory\Psr17Factory" instead. { "exception": {} } |
INFO 13:11:30 | deprecation |
User Deprecated: Since symfony/http-kernel 5.3: "Symfony\Component\HttpKernel\Event\KernelEvent::isMasterRequest()" is deprecated, use "isMainRequest()" instead. { "exception": {} } |
INFO 13:11:30 | deprecation |
User Deprecated: Since symfony/http-kernel 5.3: "Symfony\Component\HttpKernel\Event\KernelEvent::isMasterRequest()" is deprecated, use "isMainRequest()" instead. { "exception": {} } |
Stack Trace
ErrorException
|
---|
ErrorException: Warning: fopen(/home/clients/27e4eb6afe64c67f100a17cbd6809e7c/var/www/oakas-lane/var/uploads/media/08/2.webp): Failed to open stream: No such file or directory at vendor/sulu/sulu/src/Sulu/Bundle/MediaBundle/Media/Storage/LocalStorage.php:80 at Sulu\Bundle\MediaBundle\Media\Storage\LocalStorage->load(array('segment' => '08', 'fileName' => '2.webp')) (vendor/sulu/sulu/src/Sulu/Bundle/MediaBundle/Media/ImageConverter/ImagineImageConverter.php:153) at Sulu\Bundle\MediaBundle\Media\ImageConverter\ImagineImageConverter->convert(object(FileVersion), '570x300-inset', 'webp') (vendor/sulu/sulu/src/Sulu/Bundle/MediaBundle/Media/FormatManager/FormatManager.php:145) at Sulu\Bundle\MediaBundle\Media\FormatManager\FormatManager->returnImage('11', '570x300-inset', '11-2.webp') (vendor/sulu/sulu/src/Sulu/Bundle/MediaBundle/Controller/MediaStreamController.php:117) at Sulu\Bundle\MediaBundle\Controller\MediaStreamController->getImageAction(object(Request)) (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1) (vendor/symfony/http-kernel/HttpKernel.php:75) at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true) (vendor/symfony/http-kernel/Kernel.php:202) at Symfony\Component\HttpKernel\Kernel->handle(object(Request)) (public/index.php:66) |