Kint
$message string (64) "Error during image optimization. See exception for more details."
$level string (5) "error"
$context array (1)
exception => ImageOptimizer\Exception\CommandNotFound (7) "Command "/usr/bin/jpegoptim" not found."
$context['exception']
  • Source
  • Properties (7)
  • Available methods (10)
  • try {
    $exitCode = $process->run();
    $commandLine = $process->getCommandLine();
    $output = $process->getOutput().PHP_EOL.$process->getErrorOutput();
    if($exitCode == 127) {
    throw new CommandNotFound(sprintf('Command "%s" not found.', $this->cmd));
    }
    if($exitCode !== 0 || stripos($output, 'error') !== false || stripos($output, 'permission') !== false) {
    throw new Exception(sprintf('Command failed, return code: %d, command: %s, stderr: %s', $exitCode, $commandLine, trim($output)));
    }
    } catch(RuntimeException $e) {
    throw new Exception($e->getMessage(), $e->getCode(), $e);
  • protected message -> string (39) "Command "/usr/bin/jpegoptim" not found."
    private string -> string (0) ""
    protected code -> integer 0
    protected file -> string (108) "/var/www/vhosts/shoptillyoudrop.deals/httpdocs/_app/vendor/ps/image-optimize...
    • File (1.85KB)
    • Contents
    • -rw-r--r-- 10008 1005 1.85KB Sep 30 2021 /var/www/vhosts/shoptillyoudrop.deals/httpdocs/_app/vendor/ps/image-optimizer/src/ImageOptimizer/Command.php
      
    • /var/www/vhosts/shoptillyoudrop.deals/httpdocs/_app/vendor/ps/image-optimizer/src/ImageOptimizer/Command.php
      
    protected line -> integer 44
    private trace -> Debug Backtrace (7)
    .../ps/image-optimizer/src/ImageOptimizer/CommandOptimizer.php:29 ImageOptimizer\Command->execute(array $customArgs = array())
    • Source
    • if($this->extraArgs) {
      $customArgs = array_merge(
      is_callable($this->extraArgs) ? call_user_func($this->extraArgs, $filepath) : $this->extraArgs,
      $customArgs
      );
      }
      $this->command->execute($customArgs);
      }
      }
    .../ps/image-optimizer/src/ImageOptimizer/ChangedOutputOptimizer.php:34 ImageOptimizer\CommandOptimizer->optimize(string $filepath)
    • Source
    • if ($outputChanaged) {
      copy($filepath, $outputFilepath);
      $filepath = $outputFilepath;
      }
      try {
      $this->optimizer->optimize($filepath);
      } catch (\Throwable $exception) {
      if ($outputChanaged) {
      unlink($filepath);
      }
      throw $exception;
      }
    .../ps/image-optimizer/src/ImageOptimizer/SuppressErrorOptimizer.php:24 ImageOptimizer\ChangedOutputOptimizer->optimize(string $filepath)
    • Source
    • $this->optimizer = $optimizer;
      $this->logger = $logger;
      }
      public function optimize(string $filepath): void
      {
      try {
      $this->optimizer->optimize($filepath);
      } catch (Exception $e) {
      $this->logger->error('Error during image optimization. See exception for more details.', [ 'exception' => $e ]);
      }
      }
      public function unwrap(): Optimizer
      {
    .../Aristoteles/Controllers/Images.php:119 ImageOptimizer\SuppressErrorOptimizer->optimize(string $filepath)
    • Source
    • $image->save($this->cacheFolder . '/' . $this->cfName . '_social' . '.' . $ext);
      } else {
      $image = new ImageResize($path);
      $image->resizeToWidth(1200);
      $image->save($resizedPath);
      }
      $customOptimizer = $factory->get('compress_image')->optimize($resizedPath);
      if ($ext == 'png') {
      $img = imagecreatefrompng($resizedPath);
      } else {
      $img = imagecreatefromjpeg($resizedPath);
      }
    .../Aristoteles/Controllers/Images.php:181 Aristoteles\Controllers\Images->imgResize($path, $masked = false)
    • Source
    • }
      $optimizerChain = OptimizerChainFactory::create();
      if ($this->is_social) {
      $this->copyImg($url, $this->cached_social_url);
      $this->imgResize($this->cached_social_url, true);
      } else {
      $this->copyImg($url, $this->cachedurl);
      $this->imgResize($this->cachedurl);
      }
      }
      }
      function copFakeImg($src)
      {
    .../Aristoteles/Controllers/Images.php:31 Aristoteles\Controllers\Images->createImage()
    • Source
    • $this->theme = isset($params['theme']) ? $params['theme'] : '';
      $this->module = isset($params['module']) ? $params['module'] : '';
      $this->img = isset($params['image']) ? $params['image'] : '';
      $this->cfName = '';
      $this->cacheFolder = '';
      $this->utils = new Utilities();
      $this->conn = new ConnectionMngr();
      $this->createImage();
      $this->serve();
      die();
      }
      private function copyImg($url, $to)
      {
      $ch = curl_init($url);
    <ROOT>/image.php:5 Aristoteles\Controllers\Images->__construct($methods = array(), $params = array())
    • Source
    • <?php
      require_once('../_app/_constants.php');
      use Aristoteles\Controllers\Images;
      new Images([], $_REQUEST);
    private previous -> null
  • public __construct(string $message = '', int $code0, Throwable $previous = null)
    new \ImageOptimizer\Exception\CommandNotFound(string $message = '', int $code0, Throwable $previous = null)
    public __wakeup()
    final public getMessage(): string
    $context['exception']->getMessage()
    final public getCode()
    $context['exception']->getCode()
    final public getFile(): string
    $context['exception']->getFile()
    final public getLine(): int
    $context['exception']->getLine()
    final public getTrace(): array
    $context['exception']->getTrace()
    final public getPrevious(): Throwable
    $context['exception']->getPrevious()
    final public getTraceAsString(): string
    $context['exception']->getTraceAsString()
    public __toString(): string
    (string) $context['exception']
RIFFWEBPVP8 x*>1C# tfZ[c}{V^qY/zO~a}t|SϏ8T97r{3 ,` be zЏ?ʅ‡ 43~sKhygTv tԓ .#˂:&.gVٗm?n? A5(>͋:{jCٰ6O}bl,þp@OF5SҦǨ 06Ol+Q\ErНPtB͍Y#O`/s/zN| >`D@0!vP6Ev`$(;ےnyOp3ټ5d_ϝx[ \/E,O.06O@65`c" iXZPj;,n; ,`˚x9qHP+P&3[ٻZ,(ODV />.*Spw6X 8O ``{Dq[j'\iЧpƊXFR f6T+ĥ3",`dQ.eܦQh|ov@g$Ps (۽Cm/dsMP[NVɶ?$:{MϘC? ,cAcw Q՗=*40Q zx'v("a'e`&E2do\T.8;T0)P˨ (o \(p]]O/7PPbc69olhO`%_#qs()6? .3ti|HtprF=ֱ .% =c5yt܄f:naG6O|}2cpr?6`mϾt@{MGy>%0Q~_5nDWS"uCpJK>ڟx12hÕes@0:ìhSuXĄi*jzE/hc52 (/8NxwEȑ\SEY‡s[VFיh驀ٿYQt*ǣK$ W!W9D,o-kipV@[G "Wz1! $=$nYIW^ 9Dl2\8ɂ=2c[rc Es[KAB@7TŸ8S7F-El-fz0}쐇!Q *2=- zr)[54C&{:}i+=ՋյsICR) 체: ?L>6?#~ j%Uk^E!{nސ 6r9*l4uH6 2O!X:6r`ЧUx@61߷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