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ŠC¢!¡žÄ¤ ±·yOØXEEæ¾Ö}@ôgHsùOº?›?áý@~UôLécûêõöÝ÷üϪ@ÚN±ßA/,�Û†ÛßÚj_ÿ÷•¿7ðG¿ß…½™õþÀovôøïØ?²þRzÍÞ½@¿þ)ý³ú/ì¿æ¶ÎÀªÅýÛÔ Ö_�–þÇøûè½ýW ÿJ?Ñú‘þiþ;óg˜€Ð®ÿÊþçî¯üGý¯ó˜Ò¾vÿ›ý÷àùoôÿöØÿ%~e=‰þÒ{(~­èÏ©ðT]mù õ> ‹«ÿV¾_UgLËi]6)~=Ær?³Ž¡ÐF¿šjÄ—…7TøÞã#ƒõ%ÃúßÊ·9as,l¤ÉŒ»ÌUM¶|‘<<�Ôc²~"ÖE¹ÍLý‹ómh¶/µhóØgYÜ?ÕsÔí§îª2Jœäñ„4É$N†!Ü„;0t „¨¨ºÛòê|Zøþþ´ }È þ«%|2ÐÖ Ø8°To8—>úïoÌ#üyEï+W�ú$' Ö˜?m쾞úyq€øcɦŽ^‹u_ïir€„:u2Ñ.ÿ7ÝäL À²ßÃÿb"ƒÇs©WúküO™KïÊô95¼ Ø?2l×;ÐOV�›·'æ2ºíÐêÒÝ®õOA¯tE¢„Q�Öµi8[­Rè`LúhéÊ/Gƒ Éq+ª—§ExËì¼þ�µ¸ƒxÙ /î)8ê8Ê/С…þÛþÝ&^ý–é½åHù"óÏ ›„lËEÊÙ‰¦ó+.’×ùm&D¢ž~?}‚;v;‘‘‡½â«ÓËÉ-LÎ�àöü­PÎi’°Ž…nJgW3H˜µ�ò‹@ˆ¢±tÀr1ší˜ìLj(!²Öîo™¡ÔŠ”§‡ U.í¢ûx„)°VN9�û/[o¥/Ü£ô¿3÷Oÿ¡8íÞˆŸãA™ñýª}Âøqü¦ñÙµ“snÛC¤;é±$éµÞ&þ‚Ô¬<]ÅØ?xÖz^É[åÑÂê'¾”Ð|É�[W,ŠÖï‘xo-cå?¨ž4HÖtÏœô¸$%8Œ/©þøH68±ŒB°ß…‚2«Å›ôS’äºJž?˜o™ñÃÌen^I=Ž€´“3XÁÌb?çÃÅw˜B;‰YîñÄѰÔ�®2‘±K‰+ †•aëvMÞâ$L‰5dQØìx|Øl¯Êjžç¡b®€*^ìM7FeŸAp_.Ã�¿Ãý:×vã§m"}\ ¶°ñ-tú¾Ú@¥|çÏ‚>ÔþNÏÌÜU$Æøá„að^¤|Sð$í³m«a[ß! ÉåÔYP/É_ùýx´¨i¿„!¦^Ê|b­|*¾@FþwáñîW'dµ9\+žšk<²jRAÖ'-i[WÄ£Z ç¾\QFÑOõ˜*±”� Î«Š’xjôŒÂ¾vÂùqÍ}:ŽÓ»Ý‚³ÈAu­qh›µ.ˆBäúUâ •0t Æ}&R›ô7üÀy¢iUr—çµ_ÙÍΪ#€‡AþׄþÓÜl^B|h*ÑÛ,µ�÷Ëaö¯VEv‚ßgþj J-…ÌßòªbpÔʰ#Wî%]¾ñÍ›ò@=tY5íuÒÂ(|†Åÿ�f?ç)±d‹,¹T�Ó%Æ …ó/å•¡ñQèX¡H¬¸ö™áD`gêð´ÓJj�—³¦wOü²ÎaÅÑ-DcþáM³>xœ¾~‰6%Ã"É�iJš2Ñ82¬¢ÿÝ�‰åw y*숲ü"Ô¡o²wšÇû ³îÂÚöÉ^»ðw nx«·¤w¿ª ‚åb8±óø8þ5>ÛdÑØó)�[k°÷ëÿ—¡|=Ñ̰À˜HoŠvXB=î ¶XÕÿ»C°é'“†‘7=ot‰rn4ù²ð6TËN!¡ 7¥�F´a_P7‹©Éwû–if Ù;l¸š)g”9Q¹9ÑWç²S3WF®Ù)ø5U.&®5s–/J&žC<ÇCÜ…jx;ès�ëné×ãÁ"ÈLâäÉ_ÌÒ@ û=ŠÜU¾ŸÀxyúgåÃ/]DóóÀ¹Ùñûé™Ë –Óu‚óÒ¹mÚgÈãõØ�ØÀ�Jx~éãM”˜Ž3A×]hò*2ÑÉ Ë…(&H�EŽBi¶¢²mVÙúE4¯þW×0zl©W ¡PÁjgHøÑä|ý×­<”TG* bÒüE£þs øÂÛ¥'ÀÿÄOÿ€ßãçÒ—_®t~‹¾#À· ?"(ú>ÔôŽß½ÿRP/” [+6 2ñ6¬±Ú_„WRº¾ï©$øqYÊÅ9�•J›¢;CÍRàJNÓMuz1Çëà#O™ï:™1ÝááM:c1gïZåŒcÖcä±-¯Ü¸u€Æ0˜üãr±Bï$˜ã!+=z³si6]�‰Y9z„.XE§^víjo `ÎOW7„°(e8Ô°ÓÆAűs™ymœŒFx�âX¥ ^÷q«ÛWBØÈ—du~× îÿSµÛ`GyìÐwõ#À KÅr-âäÄ*/Ë œÿálzÚ5j~?šûÁº¨žFi0ùijŒïh¨¨|¸fÑ?ÄkUf#ƒù¾Ù×…¹õC4CâRà:b:Ø}×¹ƒþ¦XT¿ÊNÊiÅ“¶ÓB?ÉQjPd¯Ë>1ûº×H‘0OÈIä Ï.¥%¸e¤þ$€„¡Ðhmà"Rngv[Ä~sóG0•'[#Â/*Jå³×hž4žqüô7Ÿ;Z+âÉí_:*©Þ6¿a_Zk« øjÁq•ñê`‰z7>ÑÔZ[†< yq„H^u‰Î–c¨ [5é�ekÿíçHUŠíWH›\Ô «­Åu0F3j��Q'JøPpÛ:íC]|ÂñÕCFûz� Êeߨà&’)>0…E›gÙÄØ1 tȾFo2Êæ–€