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/pngquant" 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 (38) "Command "/usr/bin/pngquant" 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 " p2�*‚‚>1ŠC¢!¡›´ð ¦î>œõŸÇ�Ç/—+öŸº¼€eC«ÿ©þU€ø+ê'ì—ÜôÃúÿä¿j¯0Æ¡|þµîÅéCñƒÜô“¬»ÐõWÒ§öá'õãýÏùÿ€_ç_Òþþ¶^¼ý?ðw¾oêÿ��lžsö?�÷2Œôø�Õ?¹Mý”ü‘øƒ¿þ_Œÿ%þéùSùUís²d~!üçü�æ·–î¢øþ™þoò«Ö+ú¯‹ƒ{7þ»þ»üå‡Ò—ò_îÿÀsýÇö‰ù¿öÿúàþ¿’Kÿeýç÷·ü‡Í¿°¿ÛOcïÙ: Ã#$H¿\… §ÐkÕƒ¾@RûÂ+Ÿ6a X}ù�üãD“2F‚RÑÊ– UÏÏþ}½ª¢~;ä%Œ ¶XÜL‘؆Àø‡¦�%:»|Ķñ³I·"Q°Ûõ¸WN”ô£xR͇r6b5eyÆG°dŸ+)å" $ŽÑï!›‚°¸*.%»@æ ªF�w’鉚¼Ýï%Ð�€ˆþÿÙœ´›½ÐÁèý7Çÿçc3±yÐK‘l²Ø±Øl¨` Œ?ѰºÏ§A¿Zi+5Ê 2òVî>÷ZoÒ0€bæ…¢ä­#ÓEÜå�_ ØR"@ll+Á GV¦@ð<þ•ë˰ “¡Ô¢ÚhY´æaa ò­D;n 9: (©ÜS‘},a@·¦m–Qv*‡¦þ΄ñ^kvÿà^ ÌuQôÌÿÿ�Ð'€ØµBqÿ­'ª¸‡zrZ·'òˆ ž^œ‘°‘µÌÌ"¨‰&ÊR¾|œÓ@Vô˜ÿM¡â" $®,�Ò«ËþToã$qåôê�¸‘§onÁÄËVƒVsl›«ás0VþdZ=Ñ;ìzU³´{¡ß÷·õ¬G!šn–Qnãµ#ˆý‰xÊ?ÔÖÑ[ s›YÊE|fÛõb�èÓü=ÆÐ§»wCÃëÃ+»ôÄ36Ã�, î·˜Ř�$Y­ ñ¯7Ç•à€å‹{vÌ‚œ8!øAóLÂÆÏÑ5ãö+L(¿S³î=xY™JùÒiÁÉ'ð¬ò"YëÖ|õËKõ‡èˆ2µ®Þç´¶=ºÅÔO#YOy¹Žü"Í΀œ�¬n†xsªÃÖƒÒGm¸/'M6'iÔ¼§uB½Æ€h¹#ʪv´–£h¿ ’¼£n_õš 2‰ßpG“ /å@·K$Ö>„?û'ýÉ ™äJþ�=ÕóÒlþ†)Š#¸ë/*{ºÃFl¯üg{‚xÁeÚéµ�tû«c•ŽâMºC#ï¥äFˆ¤</Î(›� ŒÝm@Q? ÿééÐaÊ„98)¸uÓ�Ô;e, m‡çiüÌÏL££×•z¹ö%�P1i¼öíA«Û«©T™¹ñÁ\ N}1™-¤«…ZÄ)„ ž–KÛ !�„Óp3$| u�ŒLÙðЩTáM2�ÓƒwÖn|Ö3¾gj–µñ~?`K u!ﲞq—jPS—�m%}ƒ+†r¤ûâ^d/÷^[Æ�íûšèß8T>C{ÄtïÌÊ4| m™Ì¶p‡\B(^èÏ@y ¬–k¤¨PØB û÷mZÛžü Ά¥ßO®« âíd›É£wwÅ2 Sæ,ÎyÊed/zBø+ Ÿ1íµÁ݈Á’O Ú-ðÐͺÀvöfϯ;~ç}eê·²—ɲJOË~‚‰]žÜÃåþø°�µpµ;ÚÑ—hÓÈÌœbÌNØš7tü-hYX´dY'ª¸c dרÓÿ×O•&[ª&ãÑUÖ¨�³ (Í„?‰nÓ�B¹eÜt3à­È6ìXCg;ë]ØŒ’ìÄÑRbQbϯ´u÷múA%Ç�Þ�þ=«ñ§¬‘v³Ö™O>„Dú £MKøæÔU5ÑírÎñ2jŠŽsšHÇô/¢ã‰h„ýWÑb%ëÁÀƒþ$|æé¹Î'�Öw>+r„b÷A!�_rÞ¦þ¡NMw‹9+9¨çæËä¦ö^]8‡¤© ™kÌÖ,bl²Ä—QÇ•ÀuÕþqwºìúçíÉÚø‹Ä äQ´AFhÜhÑÈØ0×B'3œ>n¾1ÞÌ�>c ~?f>»™ÚôKpõXhÝ32x ª�‡l+éˆGö>îqO)O º�ò\ûޜѯ'áÄ[‡#‡ ºÅÿ<3Ø+%$n�É\` ÈéRÜF„˜ÓíòÐ6É# Î~K”§w¾-`†O™Ë™d{YšË/Af_' uÏqÔÉ>W&tìÁ‘c‘û:rd¬[?ÿÆÁõÿñ@Âû%K4‚‚ŠÎ:5Ù@µcááMg³š3ËPÆ�‰ƒèz ª~ãÚ¾ òIé^N‹iô|MAIc1®yÿx‰H Qhê�$mðkÓì¼ź3ÿ ¢Oì ¸Þ^å]<4~œ•»óÎ ­{Hh¡ñ€¬b¬ôk–AéÌ­Ýÿ!J¥�EXhJ6”nY¯«¼´D·gÑӀϷ¿é©¾âžO�„é´âãEX0#ÀÆiûkõV:�J(ô ‰t÷ÅJ—hJMÓÈi,ù­ŠYécõµ¦Åû#ëÙƒ"Ž18n{Îç®R+ý±¢kÜŠ:KÙ�r}s)—îÖuw ¸¹ïSd\î€W-TÚC1U¨]ª ôD7Íc)#ýL©bó¼ñææà)é›Ú"I¿«r ˆCß‹ÿË÷…ÖQpª�ƒVÇ`ÚðH -ö€®†dþœmt±b•?1“ôÓÞŠ«'ÚÕf1:‰„‚ª‘mg„¾ç'øØo¯˜½ .ñ*òIžÉ�ô½£yç$¶ÉæùÕ]dîµlÔ|ðwˆå™.E5<ÍrÅÌxÊÄ ‘ »ö2�Iq¡ËzÅ£°øóªõ '­coO ¶Ð�³œ÷hIL…K$Íç�‰Ô·ÉZ%Hƒ^u‰Ò @‰ K‰WœM€–lw}vŘ7¼û3ÛóûÛFj°{²}�Õ¦^†é±–fÞšusG4Øfx÷°îbö¦#.1äFÝ.æ×Dçf¬ˆ“ý¹!Œ¬vÆÊxפøè+›Tºã’ œëGM×*# ÿû`ﳎU„Ôš­GÖ5ÆÀ 8.Óõ¥§ŽL�¡ß‰uG)œ©re�+…¶uÎ�^ "Òëó?4^£/ÓS "…Ê”ŠÉ=€@x]‹É2¨:´R˜L¡<±oC,""üéA-ìQË3ô‰U:y!¿«¥À@½ÎCò,°¨Þü>´¸ ?wƒ]´}¦~D§èzá<¾9Ñy†=ÄCY\4ðÕªÒv³¯Ü�çmfH¿ædñÇ,?ü�·Ào¿\¶ é†|>x �öÿ™¯Ùc�¶¶ùc´ÑܧD4ñø_nº2gØxl�ç9±Ë[b€