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 ÐD�*‚‚>1ˆC"!!ŠÍì ´€k-_xSä‡ÑÏXÿÉη¬ÿázüËíçåÿ¸~Ýü]ûÁòG€wãŸÏÿÁþ[~jsZ@�d¾©þÛóKœošßÉŸ åÓ?Òþnü[ÿ/ÆÐ=€?�@ÿŸþ+Ý›û�ü?å?,}À}%ÿ{ü×ÀOòÏë_ðÿ¼þ÷ÿ™ùºöUûYìáû(kâݬ¶ÛI²?ß,1UÍ'áoÚôùäŸÈ¤ÜÙ Ê`Õgqìwå=ÁpëÖÖ3EäÃ,Û×R°Tˆ¬ƒ"R“Ûž³*ƒÚ¶É­� w'¬]›±Ù.Õ2ÂË,¸WIÆ´â{'@tuCe‘màÆY¢ßKx+À«uTû'fèÀk SšCø/PÓÂÞàÄ?‰ l³>jlQʪú”‹ înÇümw˜�ê)ôèÔô€õ">iD°îôô“ ñî†ÅZŸÆÕvYšh÷<°¢Ú g5®!= Jˆ.U1¯búh¥ØÖõzp<äÄ}{e~ ©] ‹9TéÔÒ2›„éKúãÅØ” šäŠVwpøgîÉ…Uî.vÞª4mè ‚œêÈïü`»ä\ÁŽ]çè'Y\ݘKj#ãkª*h{,?½³)‡íAà:•Á³ƒ¯]ÝI– Û)u– GI¿¯xdŠÄ‚ €=:稫J¤QÓrÓ¦›£ìUÚpäâojgWRäªþñu˜kŠ 4Ü=°È�b�©üç?xɃ‡.T‡Ø³îF8« Yçæ ×ÿk�ïè|TâUèš®ÎüÄ©1>š÷ÞÑ˽¯ªÄâ ˆ*¸ ˜�¥,);�EEûˆ€.<˜Öö‹$•A �þš†*¥YDTwÙêÎÉOa\Ç­:¿fÿÎ^ÐW-Ú(”´CÜÁiúl±Kw“d䄨Ù¿š# Η/' _û-�$¿•¦Ø¢3ÏS÷S ­K  M_äþ¥2y²æ?¾F}äå‹‘ÓF +äÛÚø{iõUµzþçÿ¼@.Áâ™.ÎùyËÖm4ÂÁø_Ì$>à(EýÔë é4£”T,|y¥¶®Ãö†*räXàK¡’óu†"g·õDãõ¸G˜Çm¿,8¸X/Å”×­ñÌüo¡Mm]1 €´ £Æ •Š'ÜåWëî¨U!î+JÍíºÄ§ðD'XÉpªÜ€P4 ñ_·ì¹ÙºÛiÜ°à Æ?Déü™@ë:IÄ­Î>R7ã”G'BÑ÷�íi&ÃÛÀÿ²¡�ñÖ�ïýR2WWËúؽæŸmÅ#FÃ\?”µ™­þ'æ”8ôï£ß퟽çá(èäÄ—%¯b’\) wfÏ�Sl2m¼å�UÄÃcFR=#¬A�©×GYÅ)]'gÐ0s= wÿL}…{ØA¼•¬=-üAÑ­:ŒFIñ#oö*\p§¾ƒÿÍ.Íó½ÁÒ26„ê©® ùýBâŽ7¤°¯?Iiê½|§²f‚ Šßî•Wq€õ…žQ\œ÷úƒó» m>4,:ñ&7îìþ}Ë“ÜÜ”jjŒMwðà“·²”Ù«dh8 ÑëÛÞà¹0X˜ðá¶ü¢RX‚•‹mh$`C �7¡(äÕ�-ž‹á4øi&ÌÕ²ŽëÜ?SJ•{Î%àÙ]8Rº�1æøXÔsëèªßM«|ÜÓ·œ Ð�Ÿî=ËÆ!Q˜?ùÓ4ÙÖ¨[JÔnåL»•”(geÏTþ€àŠŸA÷C…ßâ%HUù‡FGõƒqЏtº˜4ûßQÞ¶>Š»l“å¹c9m#,%ÚÁ¥+IçõšaõÏãŠâ¿�Ú¬1JÜ¢ÁGÈPBR1ãz»apl55Ö<ŸOߨ{NÇ+s ¼œ2Ú)…BÇù—ÖÉ}¾ü�jÈäÁàÓ‰ž†V·5×Ç;[u‚§�<|£é®kjh# ˜Ê¡>·Hí–‘ÀaRÁýŸ�¿.‡› än�Å~}ŸE¨š�~ ž‡™¹P£a3ˆ‚—݇�‰ÈÇ­™O§XUøÄ�e/¶‡âƒò‡ŒçùÁ9È䛾€ýMkwá;HÊÞDZR&Ûú¥¨vÿýåb’jítÔ¼ñKŒ÷¹Â=|DˆÝ¹�G«½¼Ö^ÙÏΣRqKúÜo7¥\SEq|_ [FpÜð¶V,¯Fá�Ø78\Û.¯v¢äÙ˜ûÍZ¸—ÜݪR²¢1Y²ƒ¤‚W�4Kßj뢣Íé‘¡;½B6cÁ ÝØ°H=|\ÿáì£Æ ^oÎz »]Ás�ù]ë¿…Ù'ÒÏÚZ{·jrkín'Ï@½77ÿ»Á#”4�îºÕ8‚!“Șÿߨu¦¨ë­&yn×üÜ`m¶`î!Viz†Ö’ÅEøTq‡=à òˆ:�Kþ”Œš¿uËÇ´mK’eæò™wþjŸž f®-w¯Á¶Ó¤þ�U¸ÉãþöËí ™Ã° ›/ª21UýÎÞt˜Šz½© 9y¢4ÃYÓÉš†aˆAñ`ª®9Iè\|\¢{*^ß侫 '?Ÿö÷䃜 ¦%V¹ ŒHãÃ@YÅÛþ Ò/z™KOs±N¨±²ð 0vµf¿a|bâAõ··xâ÷ÐTÞDžüA?oÄ1lª ªñû¦Ò ;YY¥©'¤16/ôIISx-²éÍþÛæúø³-˪ALÍ‹7þS+A:úÑ ‰r÷]ž�cšè餄‘y‘éà ©'À×\_±] å)+˜7 ÷‘êAO¡w²t´gcÑŠ]çÍ×ïå†OŠ^¡t~À0ZnŠ»‰ØÃwÌ”J½(¤‘Såp;¬Zú•ÊÐæóL�ç˜NRDdÿå!4ª#5X+üRÂycZìȉ!1ëÚ?Ç‹–´áñ6³NÓ� 8%Œs�l=¼; µMCú¯~7‹xD}!ém�$ÏmþÑÍM0 ÷eñpÊjÎB€ÌXLŸKcªÌSñî¯BÈË!§‰•¡’)h