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 èPA�*‚‚>1‰C"!!X¾´ ±€aÌoÓ„8ò¯�Ýß¹žd/�é£û6ó&?Ýêù!øÆyXÿìcQ~èÿ™þÓÞúø=ÎÑ®²üKubñF_ñgTòú^t{€E�CÝ.Á`ðNñRˆ‘yeaÚþM‹Ù[W@ÿÌQÛãÍÝ´^+šºe¨˜&Gá‘BŒ]�±�o�m":Ù„;¯c²¥iÈ‚R®$r©+ÖОº}áÅ`Šþ¹ÀÜeÊ£é;a¤x-U#Ô—Ûkê#Ö9Z¤Ô ‘JO„Kæ»?EX5 IxÙW~®¼w>WXé…o8ü%Mû�Ý›Ð'ó¥ÞÞüì4þæ:äb‡® õ!Cp_›Xóu¡íz.Þí6+Ÿ£¤¥<åWBÂzI]ji]|‰PZÙy^å\Ö—õ楑ÃðE#ù¼²˜ÀÁˆcºéOÆn%·ûÌ(ƒ3�Zµt7Ì—U·–þúÁ†üáAžAƒ�†¦axå;ý š›*ëËÛ� 2 íe'>$á’Ä‹Ø`(`pô~Aµ¤=jÍTüWÕx�-\lgèAANÉvO»ÐyŽ.a]Á$zšðñûý·P�ÆfÙÿ|”áа�Y+i÷šþ•«c”/9€›' Ñ�&_ ÅݳI@ÍÂ̦¥\E¹3jŠ T“ ”ý“YRnRãÅ¡�Ío‹Nyóýž¨¾ÈÅ`ÎpJN8µ‡ÿœ%–«‘×¶CSñPdX�-\.[�£­žœÆLrÏ1Xþ·Þãu�eO9½_׆ÇÍ)ôÌ]²ùÝw#£=YÙõžÌ±I{´Q e³ÇEìòM'VÚ/:ÓpNÚ3â“uë›MÜ�gƒ¾ïË%‰zãÁ\]�ë/Êo¦7´Œ™—­üØbC’S€Wêi$=xn¶GùG*Œ˜#¡6›[æ4Ǭ a‹—fÀ�ø81xË‘381ùAPÌvï‘,6Ljð`ÛÉNñ_ÀabÁáÏd¹Çv¾Hzîïãv#r¥¯}¢;Î9yæ7ÐVÖèûT`Çfz«LÀ.À…£ÿÐ>æj®Ü£‚ª5¸gFóA¹EfZB‰ùéçŸåËÒõ :|]Ð[ZÃ_îy*|ù ¢‹!éõÀÏXÈk¼‚¯Q×u¤B¿Àß095®#ªú© ­C²ç§æºõ#=;ÑØöÍiÓtÕëìþºJœ°€BüánépQècÝFj£ÓÚøtÇá\}†L§»´³Ôö ßÈ~åðö&t+uјðµÔ"ìܹ­XÊ ·%ïwR"tèÜ&-µuœÒzº÷è)¼¥ÅãÛú›ãó0rJéI%­ÜÄù¬-¸su,�É­1�VŽp®#DÐg¸~@¾k°Xo7ÍyY÷2Ä u{"5U®2¾2“Ö-… ¥«¹) ÷ð-;ÉnÛ_þ_èˆ3I8–КáDG˜Û]浉í°ò!¬°4’¬ëဳ>?Iêt ‚ 8ÒxSìPd€64usµëaTЗð`"Û€tk,�%�iÁ–õ–vÖ7åëJ]=Û2$°1él;ø…|m—¾<õ#‚H~û|Í“m:ìú©D6ËæÐI³e\‰º¶kÚ¤ü%ÒÐ[¦*{¤« W$ÑävydbÃt§ølÛQÛ¼O =E™àCœÐ™Í€½ÎDrì^¿Î’Û­/‰*¦Q¼ÔöËä›.k}¬ÿ­Iàâ!&e©1OòU™½êÂU�ˆÞô, ð¹bÿ•ö¨…q“y=ãî'"f]³*ÐuU‚˜r<`3ßp¦ƒeZ'vŸó�lA»“›Yx¬EC"žÇë€kYÖÞ 56¦2 ³ »«LŠÃF#7C*åÜŽî�6•hË'¨¢úÜ“ËÎéø>kÄœ®E_\Wá*g¼B˜Vö'…½~z×+óMÇï@€ÆúÓŠÂÏp�èv0’Ø1‰øè ~td¹NÍò½ôJHRŸB¦AÉHëPù²4tf“n/¯UcÒI�oÍô# °J%¾]ŸŒ ‡Þ—4Ѽ{ççœ%^}ÕV•ç÷W$Û¤õÃv¸ZVJ#qâë…b Cšó\|]]U»ºQ‘Íl .w0~0\!¸lqð®Lêø�>ã…g¸‰riÉ kÇGyã>VŠ´­Äìåô³¤,b]|ú\ByÈÕÃ{°Çþg R{¶~¸äãðôY)0õ•§"Âçô R> òŒ é ôÉLÚQÿo[FMÑçòÇH�–n  àhÛ„Ú’CŠÜoÄûHYûÝ–ž &à[2_¬û9Šüw°Ø—ã÷æ$ˆÄáÒã Wó ¨«Ã�'ä’|lo>á” '¢Á,´u„J·4о‡xÙü8³º'ŠØŒì›G]ÚGþ`-ÔÕ>[;Jæ#Üíıûå‚�”&7ÔÑ·`‚M£ãÚ×Kw­ñ¢¯øíµ'ZÿŠðisëÙÓÿ,ØìŒŒKÜv’õ¢”Òãí†ëðŒYTˆÁU0¸[d®êGWÆdj�õouz9«ûc1Fs¦>�_«Ja í¸¥CF?Õ;har޹½É‡\«Je±e£ˆoìm 5Hfc‘KsUظ=öÀ#O̬«·�@!”U<¨Þ˜¥`yX[OdÏ^ÆyºhO˜Ø¬{C¼4u{Gô˜W‘ 2[R¸Â!¡¥¶¯è¤�´~xÛ[j^0ÙÓÉ[Æ‹r)Œ>½K¹ís!L÷ AóÚ|¯DîOì¡*awxLÈg–aË›§›§©9~A&®Oî›�WŠA³¬¡bCgyfº˜§=¨€ÅvÑ%`jܘ÷Z“.¥—waòsî™oáÕÒb‹$G‚t¼zÑâÁ{Ù�øëbجw!:Ö½‰Ø¢@¥œlì$ O‚ö¶KWx¬RšÄ0Ê™ xõƪÞIÂÚ?%Ì;ì+C½Ab–)�Ÿ§9ÛüùJ cS­œÖ£}˱V··ñ!Oó¬ò¬ 1V$ ‹²2UèV©¯b{öØ�0ÛS˜u@¶¯£‚G9ó Õùn}ð½õ~`4ÁÝâÓ�ª…Þ��Àõ'#˜tÕi°?ƒ (úÇ;Bº#\E|¥™ÂRBÔ•y,Å}ûþÕŽª£Œ�¢1x)HeûËzL× tˆNÏËäiHStÛÄQ6»ˆGþÄ“"!)GH ŸåjÊ^)éC¤O·”Xå(<±-;j3X¢×þÝxðý˜iq6ªMzPG¤kÑb®+Z÷ ×´Æ`0Qx› bfNQ2·Yµ9pþQÒ/Îr»® akÜ?0Áq;_ø× „5eÀ¯DˆD¿tÈWX¤éwa2�èh Ýö2ÿnñÜÕò@–À£Ä_i¬Z‹¨�ä¼tú¯k‡ˆ|S5?$Ú»ÃøÜªÀf-Íøš`LÓ×;‘6¹x‡´½(˜Xs7`nZ¸ §‹@I§7ûÈÆ=h3Œ%¤ÓþlþÚ­•Ð5a_v,Oâú¨å½cÑiE@¨6~€C3 RÏ©ãºgÀ�á­é:íEyÐ/ôŽ7eî•n©5`™‘8øÏõÀ_—æË«˜2`=|pe$ ÈkC§þS¦µ8™ö±wÇG–kiƒ h† C¤º¤ ˆS3tÿ: m嫦ÈÄ=¹Ê›¨ u ×ãv;zÀýë�â£l4ýÄÈù¬àšPuƒ[Æ4L=a'E�àýé+¶Ô‹Xû.øÝ—ðþySé<˜…¬°‘UÐ\çgØ�Ú$äÒ�k¬Þ›?>;…Ò?Ö|àó)cè Pboš+æŸÐÿíj„lQa1i£‹" ŽÝ!¤Z*Wp½ËE©.›OPÆŸ¡Öx@ë(¶�;(Ö(­qw›>±Æ‡ªì¯�³-…Š;+ÌZJû¸ÃüŸÇ¼±2*§$l�x?—SZOkz¦AÝVÿXWh¶~¥N†C_è´Kham�:· ºð!¦÷-8·è]:ÙŽÕ”H•&ÆÝq«_¡h®aWÖø‡|Hïì@û¨L]ëV¿‡T‹-Ù¿þïo£du¯Ø6 nfŠ&·å“ÇÒ�¥‹�1Š}bY}d½¡¶šë�Åyw2‡ÕdÃuàPë¨ûÎ.{rÃMæˆa|zÛÄüx_ñ€òZÿ…ð×ýÌ¢›¿ÿ4ór³ý@ö,ÄSÓÔÐ å�-^�e�] ¶ (:o…a¨„£Ò‡ñd‘³? [Ã÷$@" �šnÈÂȦ,…ÿë8®�­Eo oㇱ㈌oÛˆ°Ä,ŠçÏH.£;]|ã$Ë…Ó·gRâ"½îP€ób� ²ÝsðJJû-‘ëw<¨ÙÓô,Tú¸¤£ZfÚ‰ ̱Õ‚�¿K„E}ÀÉSN,Ùz S¼²ñ'qÎi^.kˆö&^²…ƒ‘Ǹ©ò�r@üÿi¶¬ákq|QÇïˆä­nÕY3¢>¥Ý ==Âg€ûooD¨Mâ_ZÕÖ Û*3ìä'ZM›~ëý9#¨À”?š‡(p¢)� ­º\yÿŸ=ÁJ2Du†)± j}ðøjçM;–&H¸÷€`SÃϪ¤+bš�$™ySÿ±î[òÿò†àpÎ:>Ù®_RBZ¶k¾o5ÄŽš¸ y%Â*ä¾—Õ“