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‰C"!!Z5Œ ´€ D¾Lx;ä£×Ûÿx÷Æ¿`êzüÇî׿ÿ¾{hþ«ýŸŽ?#¿ºõü«ú/ùÿÌË~PKCèî�Ú?ß~jz-j¹á/`æ¿Ôàz¡ÿÇoî¿òýƒ¡ÿnÿ¿þØÃþŸõ¿˜^å~›ÿÃþ›à;ùÏõ¿øÿàý¶=¡~Ñû=þÉ/�.‚{ýÒ„Z<8c*jl¢{þÁ¼$/=:Á\}1Ôˆ©R¹QŠ_×t Hb4vù~ÞNœÒí¨ô,É�ý­¡Ç|¦éÐF9­Ã£ü&h#î:_ ‹¿û¤Ö¯7z¤Ybi” }Ú¤÷¥Öcžû¿}ÆØÎrå>Çèã4è)©†žNZ½ ýýÂᜰÂ>ñ¾Þ\×/pªº½A˜sYG·<„ÌOó¸Är•ƒ1¡”z.'+$y��*¾£mQÜ•©/(VoÿB¦4 ~šÂ"ruêÌàâ`ùíaFÍÆkS QnÏ$Ÿ�s—iG@º#~m@šŠíë³1e%«ô~ªs§ÆüTè¢xÚM�ß"»{ªÇß|ÜpqN–C½ðÑÊZGýpøC¹WvCÎΙ�ÒÚEiê3ÌUØ„—̸#¢†ûú/’†åË� Ë¢Â*ƒs uíÈg!?]�L”"”@È9íFý}U}a-ײ¾ˆœB¬½ˆ€!Á)Wø[ËËrrâ'z¸r%Þ©&ˆh š*ÐtéÒAtéÕWõ0SMXE€þÿå]Jò´ÓæbUX }d{Ɇ5+¶°£'û:-é3×%å×a¦i¸ÀЄ"SxˆÇ6„±ú˜M›ÑHýœ‹¦cÿ€2lF³ÿ¥`°å�)CÈ#~`à ËÖÒ¡}z\ˆ|žï•²YƲ��-â=Uñ!§¤o®õÇ …ÂúýSúöî™þVí;Mp]&®ìKˆ ÷°OHHèÌ ÂñWú¥š•õcÚ­ÚÉáM¡Ž-€v.Så=ê¿q 1a“þÐT"~\î½[µÂÎ{°P®vŽå l‚t¡Úûž|_9…‰t�tGx¨hóG˜«4Ö‡â²ÇZÍEšÎùãx³t¡¹ POk€m}~Žt!þ¸�“�‡ÙWg³w^ Ò~1lܪw™O-�v<ÖZyÄr~¸dgæM\‹-¡…Û`8›&e<ÛÖÛM ÌòÇÚbì©þ«¹û¹Urp×D ÄŽù.•Öß«¯f;û�!ñ&Ý� ðÑW|°@d©?¯tSV@“¦-úʃðEÝ_7UìÃÆÄµ;Ÿé,�üElÁ5¿EL_C¢\ÉòsMÕ§Ú£Yq“Hˆr¦cqBZs~±UÿÒÑœ¦º�}2V�¯üÑ…zz‚üήl�œ2?‰å%'€)ä5òÖ–}½ñz€_ºÝ-:[l G¿ò’qÕ¿NK`(h,v„ÅXv®“_ ;Ê ¶lôƒ•‡�SÀ¦ys�ŽÁcÚ´ž…þAžµN~~…ú놈˿ÂV.6þé·½[—(„%÷?†KU·Ùm€~aÕQ[²šÿ‘Ý.bd‡kA3¸@ãì%èé6Éh”nî ¸G•A-nozņ°aÕS’“Ý»âqœLiR+5¥‡|d'�P‹g?çÔ�Üû _˜tMO$X5¶”�¥UðS™‹ŒBvJ½š±…ÚÍw“½ÁèÎpZ‹C¨´»˜ô:qÏ*êõ{+B‚[š–Iù6¨dŽOY˜ûÈâuÙúW¸^måv�NäúÜ çà»…|éHmµI(¾L´œ·Ð`�pP&&_Œ °âÝôÔÁHìFr˜K®·jÓáôÅŠU£žëßpm)¬ƒêP^YùVß�M©ØÁš¨H  §K®JøW‡íøQ›Ö Zq"t Ì:ÈbýÑ5ÊŒ³áf€J™üHwÀ��~¾B齊 ÎÐV>×SÕo±V®eÔÜí…%Ôh· +DFÐ FoNs@¥Šx´ÝðŒ”ßÎðÿ‡b\‚®æ–ÃŽ¨6Pó·9t¾´ëa;ƒ†ÿŒÆËî9eB»Âb �¹YºÛ{ã©Þwÿ|Ÿàè.8¯™E¸£óe•s‚7R6^°€®pßAÂÒ>‹÷Ôz˜¦¯sæOóeÑXƒöÏsVDyÌç/W¹!ú¢ÐpË„7U¤‘'Rëáȸ#–®ôvK|<|%oÌxC[²)º1µÈ¡ÂpŠ”&Ì|ÿž$ÉÝCôœQŸ2'N,3Møóv�ÇP&Æ¢pœŒ×BñåT3ßü£‘îq1æ¿j5ÒÀlþ‘cÅ/RRÌÝ-†‰Ë c)hP5&‹:Vr•,’€n˜9—¿Çø­qØ"¿ÚñÈ蓪%Û¶£ë|_ß i5Ê÷ó³øƒ}<]�›¾b©Tš}í Å¡<ìᆳí× .Ä«$Ty™^\kŠé®éHŠÏˆU(]XÅÿwðc6•…½¯|^b&Î~ÝGÑeÑ69m“Xô ckMBλš€ŽkBAx â'`Šðò2ìöö€Lo‡¬æ'uN˜¡dKñë)ÁKOÅÉÊå.$áùð¿xb$ ¯XVyiÌs8ÕçÌóždn�¹Ýñ_¼þ?Äœ/²žv¯”ˆG" ×q|¬?Ÿ“–ýâ L$‘iHeù,d£½…_´VZi9µÝ.8ÖRf†–Š2²‚š ×–ÖZä袉Ý�]c­°“—X›Ôé>@{†ãÍ»xLæ5¿’ÂcÐ ·¿·PÆ\Æü6»Ö¯$±ƒKPå/d£3QgI…/îŸÄÌx,Nübö?þ_ôåücn âLD?Æí¼š"O[ãÙGntš^YŽÝU; Yn¿][{J[Ç Ôj~ýçs�Bž%d;¸˜_L÷ˆ²ð÷º�ù³/î¨ÒÍ) �>ÿŸÚ7A]æk¦ÛÒ¬ ¦ÿ½œª½žèfët:Ðd+ß*÷jA�=�3'…ÐÑ‘L�ÑyØÔ¼Î8è¬27ÂÚ( ÓEìŽ÷uv5Æ�Ó Þ¸„£Ópºª4�‰Îgô�¿àÕù›§mY2ò Ð Ix©[.“ ¦;~‚ß=}KkTÐgnwëâl_ ì'ÏÌuÕŒÌMûö¢ö±ñ¨XAl‡}ñ*Zxw<œî·ç䢽~C}'ÍʶÓK+^=~ ÅÊ·£à)¯xb1‰�Uà&ƒ¯¡¿“—­¾§¾ÊØá®¨»×Ì­ñ5_Bü±âå¢üvžu(FÜ»\"6$ˆÏ L0¡Ëí“TêFÂõ¢ÎóŒµ-„täQõ–É,Òʪ(µy”ʛ§frèe“»h®¡5a¿aLÑ£@ºŸ æÓרĴnžCç•å¿ùøD` ”q;>\=ÙoœôŠà¡Ž52­W�¡ÌŒt+P Š˜ËDtŠ€­ÂA)àî?ˆ¯æ�‚{`øw‚Û}•dvèf ¼›'Ð=r©Ýô�W_äuÉ™ö*.”ÜV®X¹ûa!L‹±‹¦ýcÓ/¦¹XçÒ˜€1hÊû¨…zkêÆÆ(Ü­ç5œ8v¯‡,)eÏüóç²]%ÜD÷ܘåÓVîç²´„x¸Öz¤ž*6pþ?Ä.£h k›¤2שּׂ^ešC,q¶#8%ºŽ]ÃúCDhc�Œl*̼5ú|‚R?íW„Ü ^C„P£K÷Ü©ªª†(ÑŽde;€«xÞSGÂÊâ Þ—夦ױ©\ÉŒMÙ9ý-u—wzÐ…ØÎ�†}ô–Ì0ÿk@o*¢ß¡°"ÿ«³†Ís$�9õ5Ä)¨±êI9aš•´¥b>ýwÚp‰ 1�{‚Uà4v<5­)·‘µíÆ×7fmoÔÓÕØ¿y=+Øë’ÿ©„+1ê¢6–@e62›Áuã 5gs\9°ˆà¨we�z¹0;¼Úô KzLÜ%¥IHÉ2iŠG�ŸDBfØ�Ùž$$2¹ê«#Gó6FÊPs¦îÝ‘¹n†¢Ø–&‘|*:³šE gRãуhQ½ßpj›¢™ŠUuK¼mž«Ñè¼bFÐ_ðnÉ_å´œ_­Vâý€ˆH©J” Öë¼ZV�È'Ø„�iÝ“ŒÝCô%É8Î ePºÊ_2»j{&€sOб°ÜdmA"LV