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¢!¡› ³�Øh߈Þòyþo]Á+x=ûÛ~b1í?Éâ;[˜þÂëØù×Bwü¾u>ªÿÃêé¾î;/Sw–ò™Hõ¡¸—ú¼ÆÙrQz Å¸[‘3Þ¨¶2¼šB:Œû¯8³kúûœUc¡aÒæØ*Y*Ç|¸|;ÎÝ­K~§Ùâ*UÝæÐC³Kx�ÂL}J}jò/údø¯ÛÃx7 1ÚPãµkð3|¸£ÛðÅj © r¸mv îmô[Lj™¿KÃúÍ4UZ-ò¼�½+Yø¼Ú›‰)ð•á«}{ƒpŠpô�._ÅBY´P&”ú”…ºã¦wRa$‰þþ?ò|J�ZV¼Ö?»Bú)î ŸÜ'2–jZqP„­w6�Ìa#ÒìLj-;-êhäw_= ¶o¯WÓþö‡‹©œ¼�-.eúàAä-×Òc°œX‰J<ÿëþsüéXå}Wºòé£<ÆÝŒAËͲ/}Ù°7ðW¬§�ò=�é½j•ïtôdȉ­ÚÄÂï%§ˆKÑÃ^æñßJAÇ1µ;ˆRç1ßyçý/‹ê›C£ñ ÿúð³U>ÆO½ÆÐ£mí´kÈÃbÁ¿³ÙüßöShËñ_Ÿ+‹Heýì^Ê«|gmnšF)áDëcç„ÆÂîw«ÖéCïY¸UÂ¥}‰Xk×Óò‘D±—[{¿´¦ãâ’¼[’§{Q¹L=êt“ÐâÒT³6Âr“†þòè|¦|Ù­ØKð|3NÉb\Û»–ÑF}HczÒœudއ˜(¶ÂW5²æÂZÈÄ^>Ÿ»3çpO@ÈÊ,ò%“16"Ü�ª®"?š†ˆâšñŠ;õ`êtšõñËfš-¹Ûµh/ᳺˆÐ11ÇÃŒ-«»-î?êžÍCG€†pãm“Wç‡ÿH뼉¿A°ÒÙþûË–‘xq½­gKfØÌ^è‚hŽå||VÉ[óç·Jü3¶Îu[מ •†ÑíA�!ÀÈj=Ö%HtûæS�±¾žÍ<®ÒO½ð°³ˆGÔ­ÆO)>Üà4£“”<->Ý5›š—- ò ¬dçžçtì/Mü¸Y‘åQ¬iD¥ÛóoG‹5œ˜bcù‰+¢oòŒÎ�&ë¨NoÁÇÃUYwFßä6]ò¥ñÿ…%!jéZ‹€ê&uL5ÌEƒUí´Þ•ûRó-ÚŠX hÃÌå‡VòÀ´¸#4Uçzª@”Û?Ñ îÈ$Qòj¦É³ôñ�gàcÐFi ø†<2ªË”AË�ê·»c�â�F…õžD3°÷?q*ë™3²¤¦lšÑÝN�-èhn‘¡Îôèq›+oŸÂY¤•:eý¿Ik‡ƒzñÉAÇuõÙ�¸¾-äRÃ9_\0]ü†ŒžV¼Ûb+fh¿cFSÙüW{É•}W]¼côòÏç‘4:&(USì�<ü?Mß‘#„µ™ûX¿y£uܯ檦;›¨Õ Z²T jüQ&4w™$)r® -mÿ ü4 «Á @ÆÅ&d´íY:ødo_|¡ÛPÛÔœ=æ¾.Œ˜ÿ’–6ƒç†¤ÜÆö‚í�pr2@…ë¶?ÝýûÝ‘z¶Þôô—z¢¤q“Áê}ô³RzÉâÚ5öåß{‹ñ³eäÈŸëc·kAéÎÜNÙWÄ5jåKQ‘©M¹]œtP¹JzÜà‚ÒÎ'öoÁKéæþH�m-sò-Çá˜TŸ‹HžÝ¹õ›³RrHç´Y9n!8ý9+<ª£·yºR•ø«¾¡ß&ñÊX® î¹Õï»Y;bq¨—’Йq—ýõÂ$"ÈL ¶ð¶áý¶y™ª™»—/ÙÔk ¾öI%W‹P'¤.ß2¢fzß÷›&RDOMZ^Ñ ƒ>2TXu.3v_„ ¡Ïß÷6aƬõ'Ô]Œç°`4p--Pq+ အûëFÊ… sâ.ïn¸ :~ xÚ€ïTA‡L7„ÇÄžUuˆˆ-BÆè¼Ýƒ4¶ÁÇoÔà o^Õwð~í{„[YôÃE+³”c]ÿÜì )á®R^�4oØ·²NªÐJ@%ܼ«nzü^¶ži?o´HOq狊\kÆ¿- ¬`ú÷(›ÚUæ$,p½tç>ËOØmF“ó¶Š 5Dx ÙÆÂ…ÏšÕºyª0oE®÷a˜@eÃÒ²;~3ºÒTôì騔®ðÔj•w˜ <Ý;î‡aÒ•XÇS¤¤Û„ È@BãF�mÃh÷ ¿¬$càGäÄ4ÊÏ‘p)e6{7q@–