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 Þ�>�*‚‚>1‰B¢!!Z  ²€h€Dégʾ>„àˆfáNkFsYþ‘(+‡ûžOî»éù‰¨sÊÙ<ÕëýÚñ]ûÏü¯`ÏаñŸæyœúìÏwÃù1{�RÄÓÍÆ7OÃ<1s®åùœ%-Ø÷Æ=ß4"ñ½–y'{K; ãÑ rai8w¼¾{ÆX¤ d«a|) ¢çŠtâŒ×$4€GÀk?`Ž]BÿfWœÍ6i0×¶ »‹Bÿ¯]©G�wéÏMz!üӾѪ¾œ�Ò~�fÄA1ÄT�þCb‚£Y:êÑké|Œ„­á†Vºö<óh™q™?"IûÄñì«[NôûÐÁ‰EL8o®CH%X�MÀ!_ãD×�?ß›“i±AÈmù �Í/E‡cMMd<•ØÝ¯½/€$cí\§D�>þ¿EC1üçg•÷& £u¶£½“„`ËsÏÕÿkë†؇ eë· y'ÊU-e|ËŒÙÖpˆ$x].Íl·Dâ- %’!•Å.ćF:?›«xf²ÇˆMW‘)ú?ªÿmê“ôX×b¹«>$¦{å݉:ëÖ?rèçü}lÐþ>¹6GJþÿ5Ö5Ì*†eðç¬6¥ €Ù½›H„Kÿ‰ó´ÚRr Öæsøû-±VA«õŸ¿A>ñ¥ð��ò«²E¯§Ñ  1[òJáÐ5¨ûB/BÃk$€‡œ}…”kCó«€.t’šoiع[±ÓÏI½«ê¸<Ÿ1"#÷Šôê°a0�ÕÔ° hºÒ´๬|‰˜lxª²áBZþtß{ú¶ªfu|r?…£¥ i*sT®òk¹äÈ}×+ÀÝÑà`ôüi±v1ÏæLøF—u œT¯ÍyX½�7ôù6ýοåDûã8H§ì£Ô×�N¦>3r�9Îô�(óÙÓÌÀ{;T£5µ`›ÓCŠÓ÷Õ¡~µ�eµ<‚di>I!wº*)ï "Ôåž=zëÈ ï7—ÔeMßcÆó(áyb¶ñÔ&G#Ed}Ú*Ö„Ù šEx—–³sn6÷Ô^¼5‰­‡ÐœTI½ˆW¼LéÍö{wÝã‹ ú8H‘'yl%E#*ˆ?Xêú$•œk«$?Eï¿É®‰>PºM'‚†^x¢ûÿÆ/D50w%”tˆèl®PŽþñ†¡\Ëh¾È½·0ÇG¥}1lŒntÂv>f¥bš`ê?ý,áÈ0¤“¡iW/<³Œ.<Ñ&0<9 >lËÚìP �žCâ‡ÒÌ×�'ðtIÔN�r�ƒÊx®èx‚“P–PK½Ë! cÄÅh¹ÙÏ6wëÈB×T,`ä�–ñcJÑ8oKK'Þ*;¾ôøcÑkqÅ!Ò _|ºšxЛ„X‹+…làÌU.³.7¹Þ� º pë�;sc“ΧrFí¢Ÿy¢®sg²½3· GzhG$Èν&ï}”†Úç.€»ßÜlR8…·AEÛïÌQ õK}ŽUȲÿíTK¨×#AÄÞ¼à€]gÌC?¨óù��6k•-saÕ¯Òwá.oÏ Re+r~z‡yv�ìÓ?aôå¨äGýDm;d²¦Úåì?°¡Æ£®~E.~WjàÏäC,ò�çuö½ùxÅ{écÍ‚<÷Ž?£¿|Öí[0t(úAÖ£a÷eÿÏ€uѸºJ­^3x ,o$¸ä6‹Mß Îüá4µ9ÃwçŠS…/ðŒ6Ké­¿ mÇø…|ñ¦¾hr³³n<ë´¼0ë`ð(Äñ—™˜�í$3LÈ^¥U’ýˆ/Þ¨ö¦Ü²Húc 5ê7~KÓé1`‘ ”д")¾+£(8‰*ç¼þrŸ±€'sZhÄ«µ³QI�p áÚŽçŒkIÎ V“cÞ®ÚC÷‚©1)ýäCa¦Z 08ú!<�/’öæFEžŒh€}Ái- ~,ôXS‡ÏqÔóÿƒZ›þÜ·¨¸¬Úá³ ŽuzàgÑI¾nž Õ`¼™ ¥Õòœ{Y> ùÎÅP $ Ö ¯¨ÖR�î€D("ä �þ‡¸eS‚ÚA0½µV¢‹V F€—L ›@Ó¿².‚·]¡g6UUy§ˆÿ^ÖØGù¹¼Xÿ �š’ˆ¬Í—ÿ×5ùäUõƒ®K¼ÞÙÊá  wÄÞµ¯ýºFUù­fÑUb%îÔ)‡ìíÕÌÿÁƒ°SÇ>”9€)¸™Ôð„Ï *u^aÎx¡üùÕºO�¼fàë¡[BÀ~awÉ­lÔhP…;ÊþU¨Ûˇþ%]”š.fWrÁ4ŸŽß4°d9nªš@·,^¦“þ �-óþäk¤ýÅé3ÚQD÷ð=_ç¼÷;h/ô’ÚI�ýh("òî–)‹ E×Çè) ,7rSLmP4) ©‹­¦¾Xö¿vÏÿùmëȧ‚ÌäÕq"Íí ˆi¾¿ºã¡ìxƺ;x�øgë1¶§˜áê z²±°�,§“@£{¤xhi ÒMøå±_ á.ÕÄÉR´|õôŽ.¾9Jî¸Ü){ƇŠaÄz«ò·c¬œêôO(^Bâ¶èøÕb$i*õe¿õ/2€ÞÝÚWŒýÃÜõÔ[±«PÜ4®ýøI’³]•j±c[�,§®«õ±üÒ wŒ$ÖìUµpž`ßKv3C×+äÝ�ÍÛÈ”)'÷g•ø—ó ƒ� Ôl´‘‚ñ$ßI¨Qã/UvÒ¥¨Š§�ê­®8Âq¦Ë“Í—ÙÅNëx(kÕ•4Øî­ÈÝ eÿr úxÅ2\„¹f6{øœ^Æ%Ýd¼ –QYuQÛS(ýÀõQK†<‰¥×JxBIéRßsUMïlBV�‚é9ÌÆ¯¼.Í»X3ÎæîúJÛ�ÉiX¤=5>°;è’ä]®h¡¦áDÝ>LÍXÊ{ïþ£¹hê¶•·ÿÍ$ø[Âw´ òÜ/ÏÇ:æîʲëqMއžå�õý\§*)Z*ßÊgãgû~úݧÿîÂüÕ È©AÄWnä´H°]Ï�i3’‘äU©Dû'ðÄÌjý- "ð1�te€>Êç¿ï?÷¼ � †yø70™Á‘¢�µ™sjêºè±úšSr•²íÕUR@ ÈÓçì*Çý�d@