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ŠD"!¡jLø ³ƒ| ü‚]ªóÑæ?ŸÃHâö«?}Äô‡ê3GøQìlSz€nòÅ”ûϘ÷ôrÑwÔ�þˆpÌß®C‹~/b3é`r7êô<,B/¤àN\(Ç£ÏḌ@yBñ˜�~?ðqz<¼ÌoˆÙ6kq:È <äº?YÚlß™›4þ@È Å:–…pêv3¸˜!Ó‘C/2À¹«,4S6†ÖŒ-Úf�>ßð¨‘Ý8V…°ÅâŽR=¿,å,&(–sVE–‡#Õ¤ Ü_M M®tÇÕé•9ðµÎké ¨ÓC+…±`�J7Y¯¬€@$Ü£Ó²=ð²Hä6ÿj;i’g l8£î žÖUˆRƒ:¦X¬ç[×Ȧ*mÓBŸûþû~8­×ú=­Ü~Wÿ‘çõSøéÒŽNgxX͉{bÅ-µÏqÍd¼[œÿW“Еy™B¾"öv€ .d½DZèèâ™7ïC®æñ ³ ƒûòâþ9ÄR%XmvúÔ”ywX§[ÐÛ¸|·‘üùi`U‡{$Ëj”ålm�}+².vG«ãâò3[á÷i5›‘Mâ|DþX¹¹wúÀ¶ïmÂ_×U$%µ8m>ÄÑ<뇢z-w¡2 ¾lFüß®ü�«2¯U÷mÃÚWºås±\ è÷Õe¨Å“|iT 8ÜÓÄ;9&V–Ù_16\¥ð…¥óSÐña($öÄ�Ìÿ;'/y�Ë!µõ)”G|Õôç�hº+/eG·÷Å‹›,¾RRÏÛ €x^�lk(:A‘ƒ4¸-狼ã¥(x^".*éØð]3‹>6ÇÖ�´_Ù=¬�8FÜ’Â'ù„NTÉŒ´oÂnm8*Sž�×zà?H¢Ï_|»¨$áÔºz‹?òf.kØÚ⊰ƒÈ“bwT¾%Ê(,Ø�qP¦KX‘¹Î˜¿Â‹§’ÆÁ¶ÐÚMè,Ôâ¼�Ê3î„"ëÌéŠ 1äÐÿÌÊZr7+\À‹/µ×^5ö¤ åøö”Y¥™+ka! 1¬ˆxø„÷@³¶^l_®bìQ³(½Ë³ €Ó;–ÓªŽ£¼ÂX‡ì¸ç2¸x嵪Åhu÷-Òƒÿê/†ùî'ª‘K�tYA?¥«×À'�÷g Z—¶£*E‘�7 ÷è�ýÿûvN˜«2¹¤ê Ï“#YxÆAÎ;�°P ÈÔ�ˆÂ;ÕþþX³CëôšV½cäRA�HŽB_Éžé]F‡³ÐŸ4÷¯ý��»yß•ýH d«° sÈ>­¨º¢‘7ªw;×(Th�ò‡é[ ùÎÒ †MÜ‘ÂídT�¢Ùß=ÇlGqKA„õd‘gƒè�ë`…TIS}ß¹áæí‚ÈÏßÝÉ ù "¢§»šö6šÖ`Æ3ä¯õºXv¦^H^ÀfÏ—Ç«¿ËÖʬ£Ž�›) ¡ÌO‘"ß.ƒu'˜TnÚ¢Pè�QQ¨I™KEì$Oâ ‘À´csØ*�9¥h%éËSw•ð=2Ĥjw!xXÁ’k’fò‰Â0/µ ðfª¢ÁÄ€yX¨‚ÄÑÏl«l š­±õ…€T›uÄÊÀÑaS@›=/†È À p?¥ÅŒ-Ú°Ké)Ý�½þ3„x�ºš¸êÉ+TÀ]Ü'üM令òû]b\r?÷VmÔâVêQ¬¼¯#ðÃ} W°WJh¸oâ}”jïzðjuàp¿˜ãÒ}[”H'«fùfuŒªÅ²vÌ|ÅJñí(6Ívˆs4érú> ^ÓȦµóçþ²V=,Ü~°Õ|¦Ý"Sƒ·2oÏàÑhN±¥¶Á_ÊG;‡�¥€JIM>þ£ò+áå!Ù¹ö?V-(ö6£\µÎ°®™“#ºÏ~÷î++R;©>4k•Õ�Ú­‚1Ó«×]©B OÕÙ}ÐqöPúTYžBžÑýG8ªG£GUp¨$q‡ú—“f¹bm Ó=Ž ˆ$üÃIœ€#¬P ¯Õ©#Œ K*¿™J#IXµ¨ b V}ìሀpÔª‘Y<éÙ¶d†[ü›´WÔ<�"FNn Þ|[ «tYúD<©Ó=WSl· $£ûöÌ?»@ÚâŽoÒÌþ �`Ìâ, ¿¦`í©wF;O+/"³Âi)ÆŠ¿å¢,ž%XSüØþC«üŠ€x~Àñõàƒr%¨K�Áö®ó4.¹•Q—ÞËÚÕO)ÔˆýÏ{ âÍßôøüPQEê”ûf^ò DÃï¦Q”ë=c›õZBZ©Í¶Ù�:ñyvˆé¸}Ì6‡€fƒK¨œ…‡¸ ^ëOÅIÖ�™f@¶ñóD5½«ZÉ«]H&½Ç‘/Ø º|ÓP ¼ÑñË£=ÐioX¹¬E‘;^ªå Ûóý~éZYŽry‘UÒÓ½8{„å›Q`ïβ_”WT5Ä&e6‚r"_Õ%=LI*b5 YOƒy"‘ƒàà<¤-ñÌÑë+ÊS0«C³ƒô’�yÉ#"ÍÑ_ §€pÄ}Þü¢Xm¦/»¹`ÌÄßï@ApÊ%?¯ßy0So@Ê+oW—÷¦ïÀ~¢fnƒ�¾-¦ø­rß|õøXjQŒÐ©r=n£’ä<›šäù�Ío“ÃÔ:Dù_QSú§¯ž\:(v9·ëâ®ÁíNîaíœ÷O°¹ÿ÷›Ç›:›2Ï•T¾ÓD÷Î<ôLÅFß•z‡×ƒ¹CÂu ü°÷G9qŠ¡ö?0:Ÿ¿>Í{Ò|¿,]ñ6ž‡�KmD”)Vü—߆=––\b0r#eŒ­}¾ÜØiÔŽs8­``À$¨ —ÆD�̶)ýV¢,ÎO½\DÝ£¯…­Ø