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 (118) "/var/www/vhosts/projectivity.nl/blog.symbaloo.projectivity.nl/vendor/ps/imag...
    • File (1.85KB)
    • Contents
    • -rw-r--r-- 10028 1005 1.85KB Sep 30 2021 /var/www/vhosts/projectivity.nl/blog.symbaloo.projectivity.nl/vendor/ps/image-optimizer/src/ImageOptimizer/Command.php
      
    • /var/www/vhosts/projectivity.nl/blog.symbaloo.projectivity.nl/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
      {
    ⧉.../_app/Aristoteles/Controllers/Images.php:104 ImageOptimizer\SuppressErrorOptimizer->optimize(string $filepath)
    • Source
    • $image = new ImageResize($path);
      if ($masked) {
      $image->crop(500, 500);
      } else {
      $image->resizeToWidth(1200);
      }
      $image->save($resizedPath);
      $factory->get('compress_image')->optimize($resizedPath);
      if ($mime === 'image/png') {
      $img = imagecreatefrompng($resizedPath);
      } else {
      $img = imagecreatefromjpeg($resizedPath);
      }
      if (!$img) {
    ⧉.../_app/Aristoteles/Controllers/Images.php:218 Aristoteles\Controllers\Images->imgResize($path, $masked = false)
    • Source
    • $this->imgResize($this->cached_social_url, true);
      } else {
      if ($localImage !== null) {
      copy($localImage, $this->cachedurl);
      } else {
      $this->copyImg($url, $this->cachedurl);
      }
      $this->imgResize($this->cachedurl);
      }
      }
      }
      function copFakeImg($src)
      {
    ⧉.../_app/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']
RIFF¨ WEBPVP8 œ -�*‚‚>1‰C¢!¡ù�X ²¶Á3Áx�"ÛÏ8o¸ó¸å?#~%ךô&3>WÝ01Ÿ²?³4z7™�3ùó¹èþpx�ÇW£›þ±ôq!MeNoÅ‚)ò¯¡çdMÀ×ûN3ðµ2¸äðY“È�ûÕÀ×/5Ùì'ÃGÙ‘Ä=O�ûr˜ͺh5þù ‘åÖ±V<ÏH¥l»¢ˆnÄp!V¦J>'«ýi—@s¥ÉÓCÊØ¢Á(+a‘�?2CÚ5¦ªèÛˆôIäF§Tƒž@:CiÒ<èŠWÕ#tö´î»)”Šü_­Rñ�à²Ú&àTßWL‘]®Jž‚)çClý˜7æ/<Šþœå4Á¼t~˜;D⊎”U"Ó³Ó73—Ê´Ò> OϾêéð qžºš[—Ö¤þ¾š‰å™,Th0Ù§#Gr·]vØ�-çuäæîžåÐx¿Z—H€þø‡z £Hº”ÁÿÿÉ­¿ó-ïü€§üšpCxgÍkgñMƒðoŽ®^д÷:Ábç&Áá…ÿê¿B�¦‹ ;C¿ýì õ `šk>öo n+6AQ2zÛŒ�»ìrÛ\Ìœ¼Ú¸k‹×Ô¨¨[ÔÒTˆ5fZû¸ ;Á“œg™Ùj;ú¬ÍhoC6ü�6ÏȪ,ÁµÅeÒTBéÖáE@"´7ng Ì8ïOgik‰ªWÈ^Õ BÑ&ò°"£¦6—à¤-lB3ž§^©Æ0÷‹jnM¶jï�kBàg` Õñ‘�ê5£@°ŸâZL»Lá?ÛÈГßè–¥17ÕèMmX´·iP@4Ž$UëaX{[Ù‹;£zäp]Ã~�xZðHŸXe¢ÓÅ:ÐûQ; (QxþÊ«ŸY„n¿óëùÊl"»fFZÈ’Cd²rѨýáº#¤ÃDºõ(½8ýì4CWSu¯Òp¼ZýãÓ/ÁS÷U~B×½óQ¨ú|š�ëx‚Ox°Gì¡å°iÜ×¹k;‘Pú!…±IÜ()íeôBŠ¿· ï°»æ&8húÙo7 «D¥�ì—ˆ�á$…Zx´è`�4b}ùX½•ý¸·îœoÒ ¥–:„ >ã€Ü`,hJí[7Wäñtèëùʘ8v,[ÙŠˆ¼Ùa‰bõCŠÛ—í”z«pºœíšÓÓÏDÅû¥¦ìë¸Ì°ª:Š=q2OøðЗ�ÿuˆª~BÌü‰Õ*e.<4&6_(¯Jh3jÖFdŒU#z“´…Öx6°–cÑ÷:X.¿fxÊö~ÚÝ nAûjɼyyqÏ;û\£\ËDuLMaØÃ;)ìü†:VÍÿÏA("·�\3­ëÁËbE\ ÂUˆ°®ŸúVrŒƒ”ý2­ð»ªƒs“WƧ?9NõüáÊüÓ•qxYi‚­àºŸ0¹ö+†Ù>ÞµòiÜн›æÃlŠþx´°&|°¤ð�K‹–ˆ ‡‘‹ÍÀùÉì´ËÂPÕ:W�¨÷eLtgýŠ17äF,÷Ðß *WCЪyûæÖ£•¥žg–áw¾ðlÈaGElòû¸,åæ¿6ÐÄ—]Бo‘¬¬>—·è–ï¯[¡þ²N’¡2ƒ‚¯êÛ”æãõÖ¸ªñ‚uù«J™ìÓßîb¸à)Dæ¬OíµžÐQdG|ð2ìïyÖ4]sè ±&O8× tf1}¶ý§ö÷$=‡Ÿeƒ¥FI‹¸"`Ô–¡ÿƒ{´GX•rð+‰D·žºpü5æ6hm!ÖŠûl� ÓJœë²u”­‡IC‘#¥„òÔHèd™ÝÙ¼NzhM3"’$µ¡Fáã{~¹š�’wØ/G4ŸeKèh )8Ò-µ«¶:ÆKÖ®qú@¿Ô2˜OtGƒ2ÅÙ¼År2§¥W±í7Nó}´ˆ.nF;´T)¢[Jô AÕ¼¯�­"§-­ý=@ÛÄ-�D«%c+c.� µŸ ÐÍØv¡{ûíÒ'Ð µnä²otÜ¡´`â±9VœëDÿ†2�x+:äßhLÒØO=p>&ËÔ°@£‰)Ϥº–qyôÕ�¢ë^0çÙ)=ð,)íàÄváh¯ P—&EÞàùßÔta c¡zXöRÎý`¥û—O‹l¤ƒ.ªóš,¾-¹¦ƒx`I6�Ç÷Ñ_ ¶%ã¯[¡­@=ráçutÝžØ\â)&Ø�(ˆÓŒ3YÁ‹�ÜÊi•¨[ßž�ëײ“7™®'ƒ·˜¾¹âÒë