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Π†ì¿ÚÈú%”PÆ(ë2>ú»Ûu_wwŸuwwwwww÷²î[FB)¥”Âáÿ¡É9™=½ï݈˜øîÿÿ ¨4Ê8öBõ«6õ¬çúWŠÿEGk½hG›¨(U§E›FÉr¤‰š¨"¯ñ.«”=rƒ=¢á÷LLuD’*÷ÐÖ9.>©Ê ­—~tFŒ&^´™ÞkÅC²Td7îô•Yˆ@íüh¿±¯Sò ŠüÞ%?Ç…Iå/ ÂÔQ±Dõ=í³˜¬ Ú¬=Ú°hË3ÝŸ¢Æ=Ã’6Þ-ëX¯Î¯ ¾ÐO׎œ{¡Û`NG‚¨Ò<ü©¦Ú•vQâPÒWÙC×aÒß"~øUs)~™j= €°s�“z�­ÙóL£\ô\`Nœçã1Ö¹@X—Êñ¢£ uø%ƒM›(o© SAoâþŒìÇâÀRJϰ0ÎÕVR'gß•+‡Æ·k·èN ,t//DžÁvÅ Ì$qøž�\˜WEFgÇGšÒOc“]‰ šT‰! ö%&_9à©‘,ËX¥&· dõÏ«ð ÍÞþ\Q˜cf�×›ãf‘ÄpøY|q\5 ÄC]VŽvOÐFú*¯”ÃÄÙ §r�epW(BDôŒV¤FÇ ´Y=‘÷c«¾+T.X‹Oñ„!†NÍ»ìbà̬œ'ü|–t(ˆ)© Ç\23÷d(5þƒ=t•$<±Ò;€�KX¼#]`5ÒCùè'ˆºÁê‘‹¯R×;VÚ¶ ÀÕñ–Æ¡-Q@ØþV£�,ZÏ:`%Q’ã+µÙWdXÑw;@Üdݬ Ÿœaf¼¬Î_÷½ êZÁ�iíºnyÔuÝwm¨D–몒տ²t|£ª÷Výª«£û#´hAÊÕ¨SÅ ¢ÿh„ÑZÀ_#„·ZIÀYå²Ó3µ ’Sa7ˆ {Ñ8Õ€°DMÔ�ÛØ’ÊBD�ôDì 6ÎÃpýV×x9ŒÄü„¶74p…9â‡v:†ÐÅ ÕÛræÀ¦e³æùM©zoÓ´‰+®©Ô÷êÂ…~.DíŦ±y+n¨wdqÈðÐ`üÓ‡6NtNVQÒs¼”Ç2Ô–š¸â ÐÞÀœd ,ÝcU[Œ ˆ�Ò.´õÓ,7°ÇÍñóÑe$RTñÛºÐSþøm‡¾@†H¹y7F–!`«”~(ÈRÔ�@¤$‹^øt3,x´áÇR°ŸÄÏy 3¼«JA$uÅ×øqðØ±£;6H-#C‰»’Û�Îë]§ |÷ÿþVP8 Ú"�*‚‚>1ŠC¢!¡œÐ ¦î½ w�~Bû'ÒÿŸþü…àÚ;]4~Gú'å°âOɯ³?pàĵ}¾w-óü[úçû¿ðô¿€à=?™TÿÏì÷ý�ØÐõóÕGû7ë7À_ëçþ¯ôŸË¿¬Îüÿîôì;²ö2[_–ž‘FVôé)èŸû6%@‘ž8t¨3>�X s–_ûr€84ž¿“3–ßïÔ#…T7‰øÉ�%Ö‘Q¯Þ¬ÒÊî5 Ç¿iáAg‘ž$ªŽKýpê´‘k-‘ÍÝ4ØG,¾zTVì�Öø$ýùÀ­ÿOS¹äå�3©Rß+4€‘ž8t¨3Ç•Fw€þÿÈÿðž÷Pº+üwü¯¹Ü!”sÚ Ù”lã‡wùh{å¹’v•Éb8{/õϼÖq© ·K· Aâ Lÿ?ç-G页íŒÁD¯,"–ê†6 ²úß™�ºû«È`Gƒœlö4*Sßðeö¨_5&F~>30,¸´@—dªê?IífÌG"½o¾Lc=K¨“¾ùšÈOÅvÐÜ?81Õ=Ä B·•,JJ6jÄ—QÉ’šdÙxzeÿ]¤´ 34-"Z?k©ìñVá1«întëAìæ†¥îPÓ<ÖÆk÷Æx à í:0Äpt»®dÚCH¥Á‚³â>ùxU4wÂ-\3e3o¯Á8�[ ìs5$…lõz¹µ†ædÂæ%Gì«Æg<§Ærëo)š*ÓÂ?w=õ¸»K¡ aÇŽ= Æ1lØnù’ð.‘Üc¹ÍŸMÁ€Ûô¨6¨Ö4Õ°ªÐÏß‘ETÖ¨~Ú¸>“GŽR<Õ#Áï1Yó?ÓPTŒ¦`J˯VšD=éL)¨@øX£©Èé_“åE[‹ê®šŸ®š™…’Iç——nû‘Ìnïbð¨Ú•äqCÝÌ'E„2µéå9Hã�í8=(EZìtÜ£ÖÄM»­Á,J¸Geå¦EzK mÐ5ß—¾<͘ÅúòAÿ™’×4%­ø¼=üêdª7ìZ§‰þà-&ôkÞþ^ Jf› ¶=ä!õH­êÈB°$ž«™-óK@Þå”4 qÆÔBâdv~Lù)ôIÁžr“a˜ò[‰cëÌAª oý Lc�ƒÌã!ªdÛ95ÒœÀa$çdÄ&¶Y†®æVÜ[f|4¸Ä„6ŠfÁXòvxIˬcÿX˜l�¨á‰ ˜k<[4åIvjs#ö´üÅ1’‚ú>ÏË­‚/Bí¬Ã@Íäl[,"r ^·³ âh5çß2½nfjšÈV¦i±CÄùuëOFÅ"'ÓRÆ%i£Íò>0­V;k„)jd a°H戨õ§6dŸN(%{ñ¶hiÃØ.pRS‹ÕÕ Ó³G„š§ ±I¸ÓvŽéÆÍ×æì¤¥˜HDŸíó‘Ý©·$jYJwËÔŸöðo{/`$ 9>Õù•ùÊâ\Òoã~ rºªá;oâÉðýîÞîm"¡w$;//ü¨w]©%ªÍâ²h×r�‘™0+‚ÅÔÅ*íáüÓ‰XüÚcOf5à#µžÇD1!™‹4\è�·©<2 °º½MrA'šn:r¢N‰ˆtO,œÐ�V256�¶»‚cÍéôƒ1¤]„²*nÛjsµJ#T¹b +á»Ã3k„¥™� ¸)óݶ‘cfàëuÀúÄ#ðs*§�õˆC9Ý….G17°¨Øç}xfCBÅ$Œé¾ë3@vçL<Í/ùÇ2s ÄYxeKr;G_¹îVozïÏF6'²€è]ÿÔGÔÜe¨¦IÿZ`§Ô¿á°†Â?ºÀv]+·ÂŒàWà ÏûÙ§22Ó\M¥O0Õ1ÈM—Í”¾Е}dXXvx#CFc¿ûÃã�-G�ELþ«§›ðIxýl°ÏGyGSAœD