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 ®0@�*‚‚>1‰C"!!iæ ¦È¥šsÒ ¾÷Γ’ü+÷/�yk_1΀óãÿ ׋ê7`?5Ÿ°þ¨ßò¿fzà?Àuæõnòà¥9á_—_„ûwËÎ#]Áþ«×7iü|]À¾·Æôf™Ç„ÿã{€~_úÛàŸç>ÀŸ }tbô÷þ�q¿æÿß}*¼å}  ’…�ò�¦sÁ ³0m³=n‰J�úøI�m²ª¹mjŽ2£¿Í`„ïÿ­€2çdª=M �á>6T#Äöוv·š¢‹×fŠQHuÃ5 aé'õÔËçlóßøf`×ï÷…wÛÃÜþ_ü²Á“{Þ5w.k8׋7iˆ,if½¦Ÿ©jqÂΊßÊÖê�>¨ºOlÞAlÆ,͆¶Á*`É´0µnBL‚Mƒ@§2^ººùkì©û%‰›p€]™ÕZËpZ•{u- æˆÐðuõ—8 5½9ý²g?ãC¹QÎnÇÞÕÊÇ)> p-ßϬÆ.§öl›dé ¾y×ni�C>+dçþj-OÞ9WðeDùñÀ -TÈ»Àð.‘Å·I(¾w¹ #SËóL©à€ßmWŠiM³„�­íÓ:)xôÈ…e`Û íø9ÝñÔõ5 WǸ@Yô‰oòhÁ’N�¼ß‹¦o´ /R\; `þ÷ÏyÄtž-*µ~ .õ¥rÂOEäíÆp¯ñ’=ú›øcØ‹C›TW^ðì.›É–¯´pl=¡þF²ê½Ú&”ÀòU±{/ˆõÖã–OÙÁ"·GØ"`1`ˆÆ)•íIÜÎínLÔˆðÛ»P´¼`bÉ}t¥“yg$�í5)ðìßOé"ªM?û?)ZÅ'9닯ò “‹÷l3âРßÜØ› s½1ªÎ}ü'eÅË `¯o†ØH1àXÁ^Ÿw ZÇ~y ñè“=„�Úà�Ф"nùé¡_èŒ ÷Ð�i�‡­ ñ'Ø{Áu|Ú~"5ãçûšºe4ÚEì=óŠis4ëâs\ûî–ç"�~üf›ÞT/²¦ ÈþjÐîÏe»åqqÀº,È1ÿãæíuÆ\ ¥†?ÈÒ5ý"DíñD2DáNµˆüÌ’º„¥Ç~åm„¯ê©&†ú`Ž ˜¦Ã'bïÊÑì¹»Ÿþ‡ïšhŠ aÉä!t�¡j!æ2 e4h“VÀƒkQÄ&Ùýè™Ä±}ý+¤OO—“¶ÔTO9&KÆ+aׂ +¬El5Lw?Nœ¹k‡ÅUiÃÓLæ~„Ò¼HÀ›eƱ©7Š<`þ²óTYø_ìdº$åò$ê1s¨¸‘ïÅbK¼L6"�{Á£a…*¡¶½e£MJDè�Í#ûèóœ®?M‰�éóF²‹¼ƒÔô-Ûõ.þ`¼³K³ C¯ÐÖˆ§4Ù³7Ó.ÑQÇ¿©³_ü˜ €ûž?"ø¦Äš=-Ï,^ÿq?<”k",Üv)O%†Û© †«V=í°¢~$¼|Öô»„8’wµä-£²x±lN1‰5'åLA?øsóCDðu*CH�m%#íÓf”iÏ 5Jú=8\ò®©´÷P·YÌ!TQ Ý~ œ³çìRGÑ©SøØ`ë„ï>lþ"„L…rAðIí�ÏÅ¡ƒÂî3¸²,jgÈ«w.]¸Qß[o ·¥qÐn4;Ù˜:°&("j�ÉŠä-�›¬®ÍÝÍÜ%p�îÐ)FJÀ)_v执p~¬ 7­j?ùÂC÷šºðûË sÊ£?¢R#:9õÖ”Ó˜«Š�çX�!(­$½þrn°^\×ð4[ü8¿sî=$v‹þ »™r7á z×ÏAªµ¦Ì?ýGMçyü~ÿâ›7+ÙÍbo8ÓÅʶ²kMŽËq•IylÝüþ¢¿ò”C¦QÔ\Ë�­G~ûdìgÏy^…6øï+…ˆ˜ÇâãÿSÀŒˆ!ÇÊ 3¯¾Á‘X¾Ór»=T±†¤Ò¯œ¸?óÄM¬÷Y|}o_ðõKÔ(�×�ÅÆZ;ìø+ÊS;¨G4fëŸ}±vÊU5ꅇɽ/„ ªtÌ'œõ,<¹_ÂÔ-·[�•…BȱèX{J|œIáNb„´Ÿ�Fµ#™Þ¦lÈ!wƯå±ÍÑ&BH?)"óŠÔ«’ÐüÁE •2<±Ô LÂÖÎiÝâ“k1õ»QçÎy$s£#‚ðïÈ�Ì!3•šðd·•ŽÂ{�Â,¥?sÙeÝ ø)ɯCqBj�%WôÅr°â«}]Yš ½2ÄtÒ|´†øröFÙÈ󲼤IJp À\ñÒýÀ"2no~O´&ŠÀŽ)¯+� Þ\OS„m9ëqœìÎ:cÛÙ®ˆkV‹EþÈ@kûÿ®[zÂvÑ–P–|)bºFs–èg=,1¬,$J­ûë� ² ×Û;§�¬øŽŒ"b�t¥D'Ý0ÏÓ±“9*›Ý¢Š$�â«7ξûßׯaßí©¥GÔXˆŒ@ÍÈs u’ä0ye”§á¥¤q±rîo‘ ÈÁGhƒÉsr•üb».î û³Z¥¶zKJ\IÜxvþjOß'é†F²/.GaÿÝü‹?o§@’Ïðµ™ó×bˆ¹î0òi„l‡7%=… *½Ì‡N”6ì±Y_K…ðа‡�Ü�õ�?Ÿ‰ì» AñŽB\3‘¸¥—'é²¾ÓG& —2àñ©¬.xËæ–š4ysMº“wÕãj‚E� –ãÜwü%¾tšè­UØ\ªDXúe3•Ý„]ÀDÙ×ë8ÇV¦G=aéd&½Ïµf[^j5/¢RNz—Ï� W×jÅÞdíšËèø—ʉ{ÐÒ•­\ZÌ-šøç ZËÿ‚ªóí{ªç ‚‰�¬À»¤Ø°Wn¾