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 .pG�*úú>1ŠD"!¡Ú|Œ ³·~>LÇsïçæÎVÈü§ï×äÇKeõCØ?¥~DÿXÿëö“œô{ü¯öN¶^`<=Ýz~¢õ¤~À{ ~ÔzQÿÖÿUð™ûÿý�´fbomŸØ|=ñ9â_aÿ­ÿÙèÐcû[õ_Ëo꿺Ÿ�»1ø«¨äÍÆÿWýÁà ZÿÔþHÿOøãùO1þ¶ˆ÷þ-ü›û§æwÃ~?=ÿUìü³ú—úÿí?à?j>8¿ÔÿAùGí÷è/øþâ˪ÿ¨üïÿ/à×Ñ÷öÌ^P‹+tT0¢ÊÝ (²·EC ,­ÑP‹+tT0¢È�J­EÞ4©Ò<´yÚú[ÒVÜŸ¹KxxÈzË@³s›Èó-*MrñxªÃs&V[.­è%¹¦}}rI3,ú!\õ¤ØA‰‡BriÛ*5GØá ñx½ë’ñ "޹y¢¹¡âÌ�¹¡9¤­7wæP5_ý8GPñ*0Ü«›my5SŸÇ¶�1 ,H™˜—b·$ñ9b“„bh‡P½ >H,= ¬ã†›ŸW¦Äoß%©‘ö‰ü 2ÆÉ};:šeäȤ@è¸ Ÿ­*pÂ{|˜(Ì!šò4Õ‡ª£í+Slp}œ ÕK³­+IÈÝ?�ó2 . ²åa”C %Ž#5c˜T•\Ôþ’ÊPS)N©8HxrØ·EC ,­ÑP‹+tT0¢ÊÝ (²·EC ,­ÑP‹+tT0 þÿ䘭  #[™-CØFVÜÏÅXÙ¤ë‡QÐ? Þi©Whó(îsIÌô2å턺·ŒÏ®µiJl8írb2,¿“1Þ“E‰ È�Éû[…‹aãq%c«"œ>x€Hà[ºÿùÂÜÜeRÝ÷ܧ# L» ñ9�% •WJ¾64þôYoÙŸ‘|óÿRA‡Á Ö`ÌôÀ¥¼WúCbkë§ž)~ù C{‹€§—*ë]Š? ¤�ˆ/«g¨çÒIsmОiÓp¬(ßl£«])þ®«|~†q˜“�åS C_?»´èž»[õþÿÇs–$gÿê¶Uш)Wâ<Å!Ó7¥™Nþ¯ä¼ó}»­Ÿé¡¨LË”½…Ö9™oeò¦Q)J›‚”iˆ*¶ÞºÞJFˆ­úádàr6õØ7œÁLeÁÄÒú6xIrS?�¹ǠL㎔5«NtÚ`ÓÑßÿÜ#gõ`ƒRq{I* < W¿»,A¨<÷‡Ü• pJrl.Ül4a7*WLÏQP‘´4’Æ•xð’9Ì› Þvtòó˜¥4‰¨ †kX¸á:‹yÖHâ 6Æ äQhëÕ�쑜ƒ�˜Øë±£Êc6–Rø”l\×:‰6¸—Kî}íB H~çYYðu¢¯â Ù"–D®Ã—� òHèÂÇê{þ×b»VÄÌÒišÈÞ鑱ÔaMç®–·‰8oâ@~Ÿ·ñ3Bñ²Ø7†šs3q•* <8=]iÄ3°¿õyç”gÕÁÒeÛþ‚ª­˜ÓL^áZSPšÂ(¼~å“4 („¼™E^(Íèg'˜9]SßÚaŽÀeÆŸ  ˆ(9•ÐÆQ5$ÌZØñL'â·ŒŽ—,<˜r‹¿%™–Úǹ‚×Vwk}Uá�@|’µ!Žà¤g\ëãGM+­~_Až” NîYe¯Œ‡e:å~9æŸ|XŽÝæ-öºPéÁ—¥rc¸¼G9z[.:;â•¢×v¹V§øîjË8rÀKtR÷˜Ž!t5 ð+¯ø57² Y++-BrR_VÏ•mýoí¶"7“ÎxÖ�ßèsÄ�ÕqÒeÔÔ-‰Uj´Ù’-Û˜¼œ®mó°�©ÛêO «_0àhWcÉ<$ωn¾ M¶IÔ¸ð| À“;±gg–yz ÚxÑ“èš 9ÒcÈ�G˜PPÄ2›.RÁgýU©€gáTèà��üÚÝm«bqŠÉh?4jO Š-áIÌO¡Ã±«¸[ä«á ~ôL­ÿ’JYÛ��«+>þ߇#QD,L¹šþ{$z‰o&œ­“±½˜ÉF8'ôŸ�³ïe2ÿå_š“ (Áâ »ˆÛs7ÄÝ�8¶™‰îÞ¬}Âõ­®þafD©áÞ­œ�0õ÷Æ ” 2�YljKÉsÎøe_»À|�¤=#\�%Ø\™–Yü¶¾ k¡‰:}g[MWá«É¿<¦{Ôظ™2§zÙøÐ‡ºS&j™uP†NÑ9:Rw©É¡È%²tï×ûã‚<£¤~ø‹0»¬ ´»}¼Z×þþL.Îá@G¤Y£õAz1c*q‘Y×L°Ùh3˜¼Ã6(œ"ÕwÍ�èõu€ �ø�F0vÚ è ƒÃ®? &GÇ&\�dšá¢�¶ ‹Ì5„@VB4"“C%#S®àþ [ì"T=nÀFÒÝlÝÙÐy¦‘F¢TµÑõÊÇ'Fwóhêß_†¼×® 'ÙÐM�½ ñ{‚_ñ µY&bI~¬�dèÅÒ/iÐFIÙ„&Ím³•C‘0§–�öÙúþbyí—¦ûsÅR s°X_èb˜ö´ç\;ü?BÞÇÓëXm"'ãÆØVakI›™Ö¤‹ÍìcI¢Ÿº÷êØV 6áü…-AAÞÛd7ϧ�2HÐÕ˜±©û‘ã¿Ä«E3’ÛôÙEœ×„_·–=ÿ÷®6HÏM[&% _ù�¾/¿ñ|¡h�Âcl²c<¤ÕkøèC$êÐW~:Þd×=I¦M  îÙü®¸•.Q™Ö�‘ô}Ôñ]Æ—):¨¶¤<Ÿý© ›c&Ù%Ô‹™Në$2›v-¶5íP̆G6ßz6EiwÑ«þÛNP@íÕ9…ŒfÑÕØ8,² 7&f�wª?rùºEBÃ?ÿñÏðóÊýqnËó †�?*{œÛU*ˆªè`…#@?n%å¦�±d€l3ß:<š0Wt)¤kzto0Œ^#NåpÈ•-¢lw|ÌÎ’™ý�iŸmæç·ˆ³¤ÛñNkïç륷«¶c:£¦ÛrþšWu÷ÕjG7«Œóå2ÐzL^3b˜í "|(ÅâB“åJ,­‡mðd}ÃNŽè8 á6�0»Ûœç}ØŸMÛ%/™/³¾ol¤³—›ÿ-g�Ú7Y þãíá¡àåc”ÀC–’ùc‘�æ‚Ü·^ƒDGõ$YAmÜ�‡¾{›\yçŠõIcKB=„@ ç²g$I4®E$± ÀQ= C’ûfx®!±è¢LÍÞ¨cêD}:—jó**é�<¯ùkÚ64ˆ©ª®�Ù¸>ëÔ^2 šÅ™ôÆùMMÜÏêÛÓÐŽÕ=î?Ÿ-øÖ²¿À ow½‰á™É³K‹',†0QGöªMßœìlm’Ÿ�R»€WX8ÊŽÕ‡?ki‰¬Ë†‚« •]´Zú‰t Ôjª¢@Nˆ„x©š®¾*«LøúRê ÜÍB¯c q+÷Ôè&jxT×ohà¢~I6®‘Ég[yÔ^'pÕx/× ¿Õ†RùHÝŒ˜ÙÕ ¸ûù‰©bªÿæþ½xsa,Úò“¿Â˜AÖƒ¯ ÂÊm•¥=�ÆYß"]ÇîŽ}÷±E F`B¡¦{?Á´Ûqò–£·âù.$z‹óíÝÆG9ù†S ±W0L……BZÔÕœkûÈR÷gTMÒ„9›#RørœAänµ-Ž Ì—ñt·Y§?8"èí{Ö_ML‡àçö´�0:¥,N‡ÿ˜ÁnC+€