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']
RIFFf WEBPVP8X ��ALPHŠ�ãl›"G¥_¥R©Ô,™Ý*Ó€™)b†°#†�ùŽÑb5'°6b 1b&3ÛÕmüw7›ˆ˜ò·UÖ3:yã�4$ÂEѪÐï#$wî¶Š Q¡ƒ#L_@éû#d7ºÏ•ÿýݽîsÈ7GoÚ‚å#”rØÂé¨l,!}@üV¦57°:j `…{hu2Ðð²#´û„NTà5$¨® ¯CCÿñaÿ…ýVÙZV…{hu[©Ÿh5XÉûX}MÔ��“XÝŽ°à2õ3N{-Q†…'n§�)h¨#Æ·ŽÑÛBÓÅ5„TùÏñùÜ”eP¢cŽ˜äÂul^4øL¡ÂcÒ>bòûVn@EÔ ¨¡|©…³wîì!¸³ñ|©"= ¢ ˆ50#ÂLNMÏÌ/«A°¢03=Õ§" ˆ]`†ŒQ¾ÔÔtS}‰qÒ`@ìåcªÄdU\„K0 ç`Âá‘(J�C0 ä(çGÎ(�‹<ÉGVP8 ¶ð.�*‚‚>1‰C¢!!øŽ< ³¢;��˜€HOýkò�úOÑHküÀþµþÇüw»Hé[' ê羚²¿íÏìg³†a¿U¿Ä¿Ú>ãÞózãæg´së/Ô?%¿'}�?½ ôíêêî‘“œ†`ñïãŸã¿6¸ú8~×èÓ?CË?¼þMÿ"ùÂr€�¿Òwü¦øvÿû÷å7¶_ž¿ä}»ý„ÿ(þ‰þ¯û·îçøßÿÿVþ¹?n=’ÿ`ÿÿ˜ÿÛ«/ü¬áAk0μ \{=_7îÖvþtǦ@ê…B¶ËÓëÛñÁÌîGÞ™Á>;vÔ®95*ìZ¬j—Bsæµ�°Æ FÅÜyCd3Ñ’ÀîŠ/IÁw“ˆtˆäF‹Ï�Ë�iÄïS;µ Ç[ßQÞb¼^ó=Xq„ß7w~¾sMx…­K)r‰ð¸ýE�·Ç�›ùm~k2Géíð.�â&¥›”[0£zUpþöÞP%éü<>{dâO¶iݸ3ÂX§æÝ¥-Cû›ÿ5,§ËFŒöᚨ—g™ò§”|ï´?aKv²_ K¦ÿDÆFüw¤½@Ÿ9|“?oyZÏôw�ä=V@¥™»”輪.ÀÂyz |Ï1³kxB–í´{áûx@g'<'ëÔbßܸ´Ú.À�ð b·IX¨Ÿ¿þ*�¨ÏÑ­aŽM–é}[¥} óY4‡:è_rñ’ƒ(®JÂ+¸e¢Aêá)æ)é³Ñkôrä„ '[«@ŒêO» ÌoDNE1˃–L+ÎÆÂÞÁ„…9ÚÇ-Íø«:uöß‘B+�@˜ÿÂÈ Ó”q[Ørþšü8˶žCG‰¾âO<°f{"¾r*Öþd Û³#" »G�úØ»Ž0OæÔ‰a/‚N8ªñëëhk ê×µü=€JÈ ÷O/Ф±R¬5ʨ¥ÆÄL§‘ / ¬(¿V;�£#Hˆ'kþù1ˆ•ëñ×ÿø•^ê¿®8.”âÿý†üzˆOçÔ6¢‰{Í…â"ƒ-koóŸ�…±\YP[‚r%ÿ¥ï#ü¡×Ùñn�™¿Â¤YKüBÙœæè/í@Dþ3�#ü”:œ²P““H”ê[ÙaÌHŸºä53Ðõ½‘ ­{xS´oz7áÙnÛëÂi½a‰Ï;Þ†�übBµ&ußǾÒÏÙ¸»—=÷}Ì„4y1ð+ú1^×|ø G™¢x“­ À¥ë,Yºý£ø'nû4fËøêiAÚX²˜Ð¸¤²ÒX|Ï馟[³‚;ƒO…ßöÀšœ£EtšïO¦é¿O–wÕ–‡N×¶E¸@I[.®³öjÀ=£ð|ô¯º.½ŠÿAî9 ú%Ǻÿg'òGf…+?g ê¶ÿÿWÐ.�¼(y…ùÁT^5(ëÿ”KZ£fúÃ{ýØlµµlþõdýDçrX]û5dzå(Á¶{ê°,žRº×z¡g$ù�îlÕó>J=ã=}Äg‰è:48®vsσ®M^žÃࡉl»#ªödTêlct„§„¨°•ŽBÛF$•É{aÇOÜØØ]®±�WÊàw^è'“Gxu(!¿)ÿ ØuÓä0Çj£ý±p=£U˜h|ÔqX•7ÔBti¸eh“UR3+E`¨âë{)^¯GíÁX ÙÀ–ê™{"Þ°Ko°bkô¢¤É$±€ !·ªb1‡g‡Ý–T#I0~7²œB¡A܌ܢYò�”="a[�‹ôžü]ý†ïª³fUüÄx¶B"PýÚnâaŽ�ùÕ¾Ô×ħªUÍv/mÖüÏ]ËÖñÁ×[ WYß ¦ÆOw-G¬'Í…bKh…idŸøÂùR” w´S¿t®¶¡×̆«Â“´®%¯Ì[T gËô`(•väKo<á÷»îÇÈ”ý?².’–´òÒxÎâ‘JwÜ„¢ë(öôËÇmZż7´ô˜„•â×EeoóM‡›8CH(9N8y¯;m"„/F¹rö%ºžø< ‚Uã¦~<¾ömí"àÅ ‘Ã7Œ;>Úkî?G¤(7-Cç/Àm%ká)4”üóÀ Þ©Zãö+J«¢ ƒÞŽÔ$F¼.%C…£àm^¸ÖIåœå�ó°ç¨Õb̨¸�“7·Î*³wÍ´ˆT:Õ&‡¤pt ÖÍ‘�ˆ¦m Œe)΋ЦZCˆ“¶Òøù&ù²>(ßv ÁŽnP°Ñêf”ËhL'‹å�<�ÌbÉNæ O�W·Î—ÒYiΧ"²%Ö3úþ ]ŠÝõ|À;°›X>”v£N–’9Ü+ëY»×óÈßù'nmYT9ÜCkûòM#ïEÃüÐù׃Sñ�’W^>uOfF-æ÷@ðyª€•®îTÖ±&Žø«,’uIòx«Àö$§QcŸÿšxï™Xi¬Y­2)U®SÞ´4‹.¤ìÐ:Š:Äã‰o£ZçªäUþýÄ=pÞ’Ú÷�ªÛù£˜ˆ\/~Ÿ×ˆ–…C‚¥›vaèäõùw/URËT +�VÏë/îjªA8³8MïiŽB3ËÁþâ¢Út´ºL´�2ZäoŒÓ ˆ›Eh‡Y¥®ÀY>òšœ9Î*å¬�×]jÍ—ÕžFrzémÊã/€æf:#wët1ˆ§®^ÇË=]ÐÙm€½Í91¥±Éà[æâ&!欋¢ÞØÜ`•{‹‡�‹Ðï(ÂýLg.\Zׯ“ u qreVá ÐõùÄ�å>“Ë!0˰¡B[{mvi—å¿ÍÿÌ hŸÙœEíìïvùåîµAí#ôüÊ­Úûdnøv¤·£vضšÆ•JãXT‰*ÿ@ͼ e¾gЮׂo>x<_ 5§2h\6Azr°DCgJ/QMø€lä7Àwÿ¯·