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¢!¡û4Ø ³·~=óå+œüõcö\Ðùï=_íìÐÛ€Ó¥Þ¾ö§ñg›,B;güoå§ÇÎÍþAjì_ò;å`ñŸêŸè¿&ýéþ—ÍO«¿på¿ê}sÿCãGÞ>ÀÉ?¦ÿ�û`ùHÿKü¢ß¥ßÿŒø þSý7ý÷?Éœ\ß®^Çÿ­c²Ê„äÅõqFI¬MtE Êžû®AVîvzMãÏÕôkÛ?‘`îX·Ñȹ %(›YÖØ=AÿK¤™Æ…shLíþlzï־Ą°�1§ÇR¨îSoy8'…ÏŸ¼ÉEçÜÁB €ã›ßfœoÝV¡ ]q,ŽeS_ÏÍ(©° Ýj *A³2ZöZ-ñÊs 鮉ž”5ýZ¤­¹ Š®(Ñ\²¡8öþþ¯ T~Ç}1š`¼5ø]WR}¿ölþhtÉæ¸‚!óLɟ׻kͬ©»cÈxGŧæÏþs÷{¢í6ºfÇÊêêùpŸÏaƒ4«øˆÆ,ïüÚªìF7” ‰˜ºq‘îYÉá:㤕ùô£0n®—(&_"al/v0±[j²ø±¥“T8Š€‚[×T^6úºWIÂý©íÓbô JÄá'²î%‰v—¡©`R÷`3U˜& ¼�¶GgÐÿfGI%NU ®.êOy6ãáÊó—Y''I;:i.n8¨¢U# ‹&ͱÕ5´š{9"¤L›}�é¹2þ\[Ó,v™!¯§t1ŒÚ‚UЏñw½Í�›ø£ª�žŸîYÊæ>¶2^JeO�Q¶O—­Ç„«ÚÊA7Pwì'¸9˲W‰ÚMuÆeH9EôÒüàžwø-åXcý ²E:ÍQq-GþSé}vþz÷ÿ€¥'f²Fö‘�‡y>9Þ¢óBb�u ï‘Ïÿå§Cÿ cÎm»å°°Nåÿ‘‡Ÿ””ɉfÀëIÀµ¨]UØ›Œ»™oÓ?hQ�wòPãÎjxiÐýÊ ˆ«ÿŸ¦L!©$¨ø%µ¥ æ ŠŠ˜IÁ£5û"sêŒûòéÝ®Ó`†ô-¼7ó©ïïs’¢3É'`�¹ˆŠoø{жÜÜ2[­Ëú-bC�Ä %GÆI²þÒ½\«9w•ÆÆ�óÃ’R]ã¼+b¾eÆ×š}-ê¼€„3}dzý³Ýç °œÀ]&¨™XŠ…²Lã‘¡·�Ç ÍŽ¿$ C¦gP?âœa;“YËQ|ßø“²¤âÞú,lH{äâÈ_¸×eåwug�´=ó©9õŽ>"3�CÚpYA3è' Z�CÂ3§ù¬ð]^– À*7¡‘'–pam#`ᜨ¿³W¥—¸W Fs�R>à”½Ê–h$kžùäIz­ãóõ ‡da!©?#™ù7š‹"¹<á>Ÿ¨ù³Šwç ¹cÚÔ ™£±§K5£`†ú˜G�Ëmó%Äþr r”óéZná1Ú}súd¡e„±QÌ(ì!ÇšÙ!<òDÕþC}Ì‹‚ÄŸýêfíÅÝüIìƒ@lË�dRB*WΧ&þ‘šˆg^±?¨™j¹(•¶xÑ×W8€¡š¬AO>Ô®¾àåÒfÉW¼•1ï‹âd 'ÅšjÆï$T®ˆFuÑ<_úÆT@{ôÄòõtbå§…eBéÿ,«¡y’ðôKXe¯9‹û­PưÌàÞ~V€©Pƒrí�7ß$2ž¢†nåîÄ굟‘sþ‘+ïtÂÝ'“�¨ƒc[ìÉ{»ÍXql;e€ù¯¿úŽRåÿ2g0‘š¯mJ‹?Ñ$ôFUøf8øK�ë¨�ÑÎ(”vÀol©)²F¢œe¼{SZ=šº‡åž.áb.1�ÿí™ÖV“Ša:‘Mbepuh-Åã?WˆŽ™È  Ó£Y Q€»•æËÇF–áŸ"x' ßú1!pãÆ¸Ú·§¤˜kPr®Cg m^Ɏ䣘EÖ˜3¬œ³†4$¬kPêÎ@ʃAÕó7@úñ­®´É«^Nd”X†éØ�SÁ‡ä^o× s'è1Aø!“(;Iß'þžª>�9R²â5‡{W&Ý𶦕$£<a„MÚ”úµ«¥¹®7¹g?Á€,º<ç¬_I_`9ŒÒceNÜj|û�£7&¿Á€ ‹ÒZ0ŠQÅ‚H ÌÕWLïþ?ë 9_Ac´W¾¢vã-Ô{OY[ãÛ�I¼ÁUøçǸtË£sºÎÀ%jä¦ê¦Á ‰ù·<:ž§¸©÷.{=Èq'ýêqú��aä~-�M’F6ML˜Çu4ý+Ci(sŽûî,‚#èÈjJkGw¢ò©2ÆóÒÊÞ_š“�pœ”�½qÆF�ä'Sýt�%°ÉìÓ™&åš Ô÷ÿ'©‰‚7¦M‚ÒÞ'/Ì¿G¸ ÝN¦ÇJdVó�U¦Q¢/¥çÑÔUÑ6LtS*Gú{{ìrÜå3Òø:aÒ4sáQ¦ R±&£ÑDùüˆJ§zKž/À€ŸM¡gü+kÐF‚;ù$y½W¼ôL˜°Ãh]· }ž\­›oX§`ÞËU˸V°+’:ê÷ða·Ïy­:µÁDNKå�ɪö­3·/‡·Ún× ­O^“�fT}`œÿICù3<¨l»”„ m®ße�CóO¯$PqÍn¡Añô›Ô—? §A£¸»Ã*8Kƒº¬Ú�Ú(‚úfä —ÓÞ�FíBì«)œ»ñHÿ¿þ�ã>îdzJEpB5¿nB�n½ x³9l­Ô„Ðáצ»€³â¦'õúÜwëØüŸ§ŸÓPA¸—ÔŽiÃ×,ú¤‰ q=ÐØ#n§þ(Ý;®Þ½ ^ ©�¼Ø0‘Ïtdiiñ5´&¥Û‹?äŸk ˜fc¤Öœz Y �´Twe9 P«+ÒL¨M…_dš–=¸Lè6ûcˆ²Û�ù-¡‚Üøh ;®~ósÀ…W›@Ø6p