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° 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¢!!i]Ø ²€iQ¹6÷ÄN³¿%ùUØ?ñ_ùŸR¿ï–= <À þŸþcü¼o ¿ò> ¶ýd¿±^ÀV¿µß´_ð?É|þ½æ*þvïü<ýŠíéð箹ÿß}˜6Žý°ü'äŸîúnwøzwûäŸå?(xü[ù—úë?´�ÑÎ~7{—Þ‡úWö�ËŽno öü…þwîã¯èÿ=ß>ÿ»üÕú þAý3ýwægøÿÿU^ǽÿ]Šn¡i¨@”¯¶®)·‘©SÅéÑ,6,eþâ:‡t*ÞA¨£™)ïKPwÝ¥y£ø]M¹¯.ù5žßD1“ ß5hÚ–”’)ô›“€Òð#6×ÕÂ%7õÉ^Ù¾¿(�u±«Æ!24pvê;5 ©Æ2F§Ð`ëgl�)Ýg-œ÷y^¿’EG-ó½½¶Ón¦ˆô?­™³›·„tóÈÝÒ²þ²?cˆÇêeëâ.Mýi€þÅÇFtÁ*ú<ÕùFgÃcÁ껞Úä"2Ø”VìZ¤k}…õ�³NÚ2Hž/ÿb¤Yé~wÎÓ¡´‘Ì"“òVÿD¸~ˆÃ°VY/MþüMG~hf 1dÓ•ÆÛˆïR ©Ü=ÞÐ=  0�¿>L�m»%Ëz)©8_öö.AËŽây@Ò–’cÆq CI"ê’ÿþ*w4_ii�ÃÑœ&Õz52‘Ó(P’Ë!W‰o³CÜíŒê™Èÿñš  ÷ݵÛÅÃRêçß•.}ŠÇg‹˜K üF‰º²½q®ª!R4¨0Ž–Ÿ­D®D9��Jle#�;0Í—àcv¢FOìy\LÇùŠhR¨ó¾•.‚+ôX#áfý9Gÿ‹Ìàkäkù☽oÍb«T•µqRœ¼@CÆ~;¦“òT9ÔD|RÎ+Y="ƒ‰­RD.wX�Ý,w×—ÿ&Œvm»PImîÔž¶Ñ ´S¨ —H+Å$Ï^@;›'¡h*g|ÍEó÷¤Æ4äãcƒ�a&D[|µ[—È$ÆÏã—Ò'×Ôº³èc?Ÿ(“¨�œÜÖ%»Vƒª³º÷Ffµ«ð–_£,>±‘î�Út‘™ÞŠÍ/\›â“G^eT^¡éÖþqì��ØÂáÃÒ½:ÖÂÊmlNØIçÐw�Óè¢ óÄiþŽÑÙñ¢¯ªÖÖ_ëÿÃcþ»TBý¯*:%V§BÌ Jߣ« få ÙE6t&ˆ¡åñ1šÝ…d0ä6ÊbÕÏ�nY>™9ÑÞ³ÿI"âYEüq+{Æ(ÃÓó «zxB†¬Ìû8Œeóv4Fý¤ÃCZЫüg1 0d€{]tß¿öäÌqÚVßtŒÙº®C»žü€8ûe’OÏÑ^»rÔÌ�Œ‚Rã|#�j ZÞ!Ò†ñþGM¦„LŠR™� †—®\’Ë™•}ãŸ~j,�}2Í–.Ó«þ"NÔ oÁ® ß7ù˜gÖí;Ob3™å9÷s^!ãc1ÏÍÃéy1÷×.šÀ [ò°~)�aÿ2¡gí®d†]ª2“ F~#À 0ßÄ`Èÿ@ªÛÀyÜrø”-oó [„…òþmŸÊ"›|3ùMÿešyç?´)i®wwy ÷Vi!=ÎÁ2ì±^�vh]�f7ùU©­°³Ö¬¹XÛRø6±úÓŸf•,PjÇæ1§ð¯ÿÚzÕè�#ûË‹ßC–Z;(û9¾â3übÞ @ªâL�¨9—ePRÁŒú(�¢’JÏø)¥J{AOUiË6*Û‹Pz[™& #Ò"OgÌAÖºî:–ßò#í·=RÔÞbý‡§²U4eÔ_°Ótˆþ9Ï:Ö„d°éö6 § èEº†ëü·üg/y�GXe!¾<'Ÿ.X¿Õ§ÿ‡L$¥û¯:®ÍÜÄÔÆ´æE #ÈBkÛ¶7ÇÝœqŽ®òIKµ¾ýÄO’§Ln¡W|ÏÑà¬Ë‹u13� è¶UQ-(Âü¯#)Ëqp¾Tå|¨@›Ó½0Iþô@·Ê¯‚HÍîˆ|ÝÈä~è�õ’Èy¥Ìæ¸\B’¦Œ6燆‘¶ÀÄ]}l�3cÞª=×ï^¢ÉWÙ;žÀì3×Áçªé[²«ØSÀ¤ ºŒ×p°}Ⱥ a¬ûM§Æ[@Ù¥�Oä(·gî¦!ZÄ+Mð†"R°«ÁåÿrÞõ”üùÏuÐÖ"ëÄ?è.W)%XÅp§½ŸÓɰ2wÿÏösóYÕ§£´ ¤?ÏD·¿5\^�º/Î1–`-JiŸË�8‚3É…è}ÿ?V­°MT»”xhÌØ�$‡kñB_ÿ9BgäÁ¦Â ÚQÿâÊÊY°šÅFtp½Î”l^ ~ënv.¢;ã¾¶ˆ,à¯$ÿ�áé‹ëþ®â†Óm<Ž´xeeaÌì[ØqR×Óà•!;öÏÅØ$~St–|Uê#tŒ=áX`0d�ô¤�nTGÈ àPψû…k`6)*¶Ö4–ø?�³ãñdháÀâږ˃†àe¥êËfÒÒ@.HL‰„åä[2o—Æð.=×Á~Ö S¹–ÓÇZç:N�ïó% f26©¸Î6ëòpˆÔ%BÌ2¼ŸÆF^ nd~·ƒ{~¯ÛF áHÒ½w'H§ø‰§#$~E!×0UzÛö`”éî·gdç[W=¶­øx•ŒŠÒ-‡^;pd’Ÿ”-s,W¶¶ì‡ˆQ�é­MÒ­žòÐ6Œ¤_„A Y �ù+Ûds˜—W-º^ÑÅSÇŸI¨9± K‘�.5À4ïF™Ø¦¤§^úùÂy