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"!!)íD  h2Xz Þ>~}—òò+æ•û|ô×{ù'+?,ÎFÿ-÷%óWý·«0ÔœÞdfÿaýÓ=2zGÿ Öçè÷æ±ÿOÚKöÇöÙâçã×D.ç8o›Gå½ ökµþî6[ÿ3ê2 ¤øðü¿Øò�ü�µ_’¯ùüº}5ÿ[Ü?ù‡õß÷ÿÚ¿v¾$}u~Íû~¢—‘HªÉ MÚ¥æ×�Ÿó#iù�š´“=¦XèÿÉŸtî©�M¼Fí—Þ§=¼pvQèþ�ûS*ÓÇÏ" ö ½/KVblÛ‘¿ r<|ÈZÕSî× B,lĉD¾g 'œ2ï ‘OÊôY͹dØËˆÎnà�j³–Ñ7 ]×{W°(ݳ ‡R®T! Ý‹V8)å7”A£S¿<¸‘íõýA¸ófP©>æ�É_÷�=¯‚J:‡Zô²hŸ®`ù7Œø{)k0Æëúµ"+#˜m÷ôÚ4vB.  „#¶Hfgy`˜0í4·�€¥}�œµü¿“o¹ˆõ[³ˆ¯E_yâÊêÒ_Û9mý}¼ÇÒÈíoöô™°ã}¾Ÿ‰]¿ / ¨¬þ3jîˆC3¶Q!à™·s€úñzrˆMéijKPŸöÝ_‡Eå TŒ�ï#Z…V/íüR®SÚ�ßÌ×U%üþt“>$¸kxá0ªâ�:9Ö>;ïS§‹…°$ëÙ–çZÙä„T -J}Úpæ5qÉ¿Ñ7XVOs.>`x•‡^Šþüáò°Š# iż*µ^ü÷Y‘à‹‹>D( $,¬z͘û2k¡ £ƒSüØ׸bàïSì)—àÜ ñBÛ†&JK|ß7ŽMú„Ähç –Iã`ì_©òûæ‹,i‘(�¸K�#ŽSN�ñ?s9§äãxÕ5½.Mm�’Ñíýr}�D“7t; ÈB�BŒ4¬Â,{êø%F3M€w|4|Ø^É2Œ ˜õø¶—««QŸŸ¡ ì|/ݸr [:é.̇‰…„JrC8F��ðãÒ½lq#"Z$µnˇSo‘¤$e1 ÑÉp‹PöDÉ¿¼dh mß2úmPR–Ïø·Bé2ÁׂÐ,Õ ?±u~{UšÖ` ”ÿúü!‡ÑfíS`O é�"–¯6VW zí V»ÌÜÝÿÉüÖI*©�ñÉÓŒ”còÞÎmiû Åë¶æh œ"¡$¯.ÏÈn‚ãh(Nö¥-ÁÝúxëï²*~)B¹ÆƒOªê±Æ\ ãbGP×î8ú)Ö8jêfsþ@„+\ìq¥¯ôŒT0Š«ïey­÷™L ƒ"î$~k|xZN†Ofu µnË¡q’Šç Âf(8ZOÝQÄ‚žßÊoŠÛ“ç v\Á)ØÙm-Ö2_z€…�`Ùîd5lÆÔÃJ`O�@cLÀQjúœ4ü¤CHÔýeBbVýÖ§¤ÎT^T@ZÿpQG!Ý¡­½D.ýýó˜úA7‹zÈ›ðòÈ«p®wðf0Œ ·¬C QÄ“ˆ@35· ¿/oþ+^Ì_®á’j´êeÂñ&IƒíkWs¬,.�g»ßü)[\)âX2YRXÂ%èØ�ˆ$ܾ�;n:}Ü®ý�v{Hý«’´«ÝC¬Ì2uA¸_Cù4NP‚ÛB›Iì°ì,uè éiˆ‡K�£i�ZOdÂÑ àœü�ÖQW®‚) p5 ©ÖP×þ˜sN ÁŸ.]ö�ºq|ÊI¼‡qÆ[R#=~—�üIb¤/­ü/Oi®j£Wu ¤y�Õe”o²"Ð*ÚŒóþPÛäWMž„@8*iŒÚð–ùo˜:„kB×ð³”Ë$Žh“͈RE‚5P"T3nÛï_'°_®± ¸fÃ0‹ó(�FyÌtUƒÁ2�BÓ†ŽÇnh˜·œÎ1: t"Z•#ߨja¾­Ÿ³[åúvê´A¥wÛy(]~ž£2ìóÒÒç=_DU*e¡`F7æ”§³8|�Tƒ!öŠ&ñJ#¤²pH7TÚî±M.ÚëeóWŸ¯�Ä“r¨´UŠÔ?ðc¤ƒî 6N8Tåv[´¢qއŸ½ ûäÀ0\”ûHT¥©5ܦLû R|¡Ú>ªúÔ�P–³‚›€ï*ÉœÐüW”RÈcSü þMÜ/fÈrüT€ukàß›¤¤,�¬õBê3åi'™ž¸B’ñК¿¿¬HŠÓr¬6-p/ù‚1l'_Zj6?ûíß&KèÔÌWâ &PÅvLaÈ…n’Ôu4ÿ Å \ˆ:õŒk¢Ïï�Àý¦Ùœ?÷¬ÙÀY6̪Sù¶èØsSŽ“Ëe ê�" Sˆ?¤ÝþÁ??úÁ;Ÿ°÷sÇY>¼Væ¨øXm{çýñyãܼ^j¿bvO%ÄU%ç6\„Ç­öYLç/>K“d@¢Aú*A•uA¢‡©~D—[yBQùÈÔd�Í