Error 500 Internal Server Error

GET https://pprd-anselmi.openstudio-lab.com/legacy-image-library/product_image_6902/full/^!260,260/0/default.webp

Forwarded to ErrorController (3d3a04)

Exceptions

File HTTP/1.0 404 Not Found
Cache-Control: no-cache, private
Date: Sat, 13 Dec 2025 00:00:52 GMT

does not exist.

Exception

Imagine\Exception\ InvalidArgumentException

  1. * @throws \Imagine\Exception\InvalidArgumentException
  2. */
  3. protected function checkLocalFile()
  4. {
  5. if (!is_file($this->path)) {
  6. throw new InvalidArgumentException(sprintf('File %s does not exist.', $this->path));
  7. }
  8. if (!is_readable($this->path)) {
  9. throw new InvalidArgumentException(sprintf('File %s is not readable.', $this->path));
  10. }
  11. }
in vendor/imagine/imagine/src/File/Loader.php -> checkLocalFile (line 73)
  1. if ($this->path === '') {
  2. throw new InvalidArgumentException('$path is empty');
  3. }
  4. $this->isUrl = filter_var($this->path, FILTER_VALIDATE_URL) !== false;
  5. if (!$this->isUrl) {
  6. $this->checkLocalFile();
  7. }
  8. }
  9. /**
  10. * {@inheritdoc}
  1. *
  2. * @see \Imagine\Factory\ClassFactoryInterface::createFileLoader()
  3. */
  4. public function createFileLoader($path)
  5. {
  6. return $this->finalize(new Loader($path));
  7. }
  8. /**
  9. * {@inheritdoc}
  10. *
in vendor/imagine/imagine/src/Gd/Imagine.php -> createFileLoader (line 87)
  1. *
  2. * @see \Imagine\Image\ImagineInterface::open()
  3. */
  4. public function open($path)
  5. {
  6. $loader = $path instanceof LoaderInterface ? $path : $this->getClassFactory()->createFileLoader($path);
  7. $path = $loader->getPath();
  8. $data = $loader->getData();
  9. $resource = $this->createImageFromString($data);
  1. if (file_exists($formattedImagePath)) {
  2. return new BinaryFileResponse($formattedImagePath);
  3. }
  4. $image = $imageService->getImagineInstance()->open($sourceFilePath);
  5. $image = $imageService->applyRegion($image, $region);
  6. $image = $imageService->applySize($image, $size);
  7. $image = $imageService->applyRotation($image, $rotation, $format);
  8. $image = $imageService->applyQuality($image, $quality);
  9. $image->save($formattedImagePath);
  1. $this->dispatcher->dispatch($event, KernelEvents::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, $event);
  9. $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1. $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  2. $this->requestStack->push($request);
  3. $response = null;
  4. try {
  5. return $response = $this->handleRaw($request, $type);
  6. } catch (\Throwable $e) {
  7. if ($e instanceof \Error && !$this->handleAllThrowables) {
  8. throw $e;
  9. }
  1. */
  2. public function handle(Request $request, $type = HttpKernelInterface::MAIN_REQUEST, $catch = true): \Symfony\Component\HttpFoundation\Response
  3. {
  4. $this->container->get('request.context')->fromRequest($request);
  5. $response = parent::handle($request, $type, $catch);
  6. return $response;
  7. }
  8. }
  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. }
  2. }
  3. $this->boot();
  4. return parent::handle($request, $type, $catch);
  5. }
  6. /**
  7. * Load some configuration
  8. * Initialize all plugins.
Thelia->handle(object(Request)) in web/index.php (line 33)
  1. Debug::enable();
  2. }
  3. $thelia = new App\Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  4. $request = Request::createFromGlobals();
  5. $response = $thelia->handle($request);
  6. $response->send();
  7. $thelia->terminate($request, $response);

Logs

No log messages

Stack Trace

InvalidArgumentException
Imagine\Exception\InvalidArgumentException:
File HTTP/1.0 404 Not Found
Cache-Control: no-cache, private
Date:          Sat, 13 Dec 2025 00:00:52 GMT

 does not exist.

  at vendor/imagine/imagine/src/File/Loader.php:164
  at Imagine\File\Loader->checkLocalFile()
     (vendor/imagine/imagine/src/File/Loader.php:73)
  at Imagine\File\Loader->__construct(object(Response))
     (vendor/imagine/imagine/src/Factory/ClassFactory.php:53)
  at Imagine\Factory\ClassFactory->createFileLoader(object(Response))
     (vendor/imagine/imagine/src/Gd/Imagine.php:87)
  at Imagine\Gd\Imagine->open(object(Response))
     (local/modules/TheliaLibrary/Controller/Front/LegacyImageController.php:64)
  at TheliaLibrary\Controller\Front\LegacyImageController->getImage('product', '6902', 'full', '^!260,260', '0', 'default', 'webp', object(ImageService))
     (vendor/symfony/http-kernel/HttpKernel.php:181)
  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/thelia/core/lib/Thelia/Core/TheliaHttpKernel.php:72)
  at Thelia\Core\TheliaHttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/http-kernel/Kernel.php:197)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request), 1, true)
     (vendor/thelia/core/lib/Thelia/Core/Thelia.php:455)
  at Thelia\Core\Thelia->handle(object(Request))
     (web/index.php:33)