Symfony Exception

ImagickException

HTTP 500 Internal Server Error

unable to open image `/home/topfloor.fr/vhosts/www/core/storage/properties//mainPhoto/2/f/3/7/original/2f37e28a5c2065c3182eea42324b34ef.jpg': No such file or directory @ error/blob.c/OpenBlob/2874

Exception

ImagickException

  1.                             $dstSize => $dstFile
  2.                             'title' => $srcFile['title'][$_SESSION['current']['locale']]
  3.                         ]);
  4.                     } else {
  5.                         if ($srcIm === False) {
  6.                             $srcIm = new \Imagick($srcFile['path']);
  7.                             $srcSizeTmp $srcIm->getImageGeometry();
  8.                             $srcSize $srcSizeTmp['width']."x".$srcSizeTmp['height'];
  9.                         }
  10.                         list($srcWidth$srcHeight) = explode('x'$srcSize);
  11.                         list($dstWidth$dstHeight) = explode('x'$dstSize);
Imagick->__construct() in src/Services/Visimo/bot_custom/mandates.inc.php (line 223)
  1.                             $dstSize => $dstFile
  2.                             'title' => $srcFile['title'][$_SESSION['current']['locale']]
  3.                         ]);
  4.                     } else {
  5.                         if ($srcIm === False) {
  6.                             $srcIm = new \Imagick($srcFile['path']);
  7.                             $srcSizeTmp $srcIm->getImageGeometry();
  8.                             $srcSize $srcSizeTmp['width']."x".$srcSizeTmp['height'];
  9.                         }
  10.                         list($srcWidth$srcHeight) = explode('x'$srcSize);
  11.                         list($dstWidth$dstHeight) = explode('x'$dstSize);
mandate->initFilesInMandate() in src/Services/Visimo/VisimoServiceSimplified.php (line 46)
  1.         $mapSizes = ['original''800x800''300x300'];
  2.         if ($_SERVER['SERVER_NAME'] == 'visimo.local')
  3.                 $photosSizes $mapSizes;
  4.         $mandate->initFilesInMandate('mainPhoto'$photosSizesFalse'position');
  5.         $mandate->initFilesInMandate('photo'$photosSizesFalse'position');
  6.         $mandate->initFilesInMandate('map'$mapSizesFalse'position');
VisimoServiceSimplified->getMandate() in src/Controller/RootController.php (line 123)
  1.     /**
  2.      * @Route("/{type}/{id}/{title}", name="mandate")
  3.      */
  4.     public function mandate($typeint $id$title): Response
  5.     {
  6.         $mandate $this->visimoService->simplified->getMandate($id);
  7.         $menus $this->visimoService->getMenus();
  8.         $texts $this->visimoService->translations->getCurrentPage();
  9.         $area $this->visimoService->areas->getCurrentArea();
  10.         return $this->render('mandate.html.twig', ['mandate' => $mandate'menus' => $menus'googlemaps_key' => 'AIzaSyDxCcXapo0pEsJ8s15Zh_gUIvdN5-xN8ow''area_class' => $area['ar_class'], 'texts'=>$texts]);
  11.     }
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     public function handle(Request $requestint $type HttpKernelInterface::MAIN_REQUESTbool $catch true)
  2.     {
  3.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request$response);
  9.         }
in vendor/autoload_runtime.php -> run (line 35)
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/home/visimo.fr/vhosts/www/visimo-website/vendor/autoload_runtime.php') in public/index.php (line 5)
  1. <?php
  2. use App\Kernel;
  3. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  4. return function (array $context) {
  5.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  6. };

Logs

No log messages

Stack Trace

ImagickException
ImagickException:
unable to open image `/home/topfloor.fr/vhosts/www/core/storage/properties//mainPhoto/2/f/3/7/original/2f37e28a5c2065c3182eea42324b34ef.jpg': No such file or directory @ error/blob.c/OpenBlob/2874

  at src/Services/Visimo/bot_custom/mandates.inc.php:223
  at Imagick->__construct()
     (src/Services/Visimo/bot_custom/mandates.inc.php:223)
  at App\Services\Visimo\mandate->initFilesInMandate()
     (src/Services/Visimo/VisimoServiceSimplified.php:46)
  at App\Services\Visimo\VisimoServiceSimplified->getMandate()
     (src/Controller/RootController.php:123)
  at App\Controller\RootController->mandate()
     (vendor/symfony/http-kernel/HttpKernel.php:156)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:78)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:199)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:37)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (vendor/autoload_runtime.php:35)
  at require_once('/home/visimo.fr/vhosts/www/visimo-website/vendor/autoload_runtime.php')
     (public/index.php:5)