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']
RIFFZ WEBPVP8 N Ð,�*‚‚>1ŠC¢!¡šu ±€C ·Í•ûEÕŸÃ~ã:ým~³ï详�Ïí¿m�Ñ<Ç~ÆþÇvmó€É�ý˜ôйûÑ©ãOdÿ¥Òè‘O�}§ü/õÏ×?ËOüÑ _‡&þÉùAäÝÿþ}þcÖÖi·™wü›æZ óŸæÿä?µþÕ�ù ÿGü ?¡¿áÿ�øþKýý_öŸÞÏóÿ7~Éÿg= ?XIžž(|‹EtAÅöª‡�àw¹ÊTJï,½@eþ©\’õŸ½ñ�‹Mà‰•ŽÊº,�Àª…O�2¸n­®Z~›Ô½IɯÉF- .,‡yòŽùD;²"Ü!KŽr6‘F«7Õ §þÔÆû àÈ!ÄKÊß°M÷ù:4¢“CèÇ` ÃÌ×R3×¹õSb—\‡•åšV{éq”�Ø22äp›ã~)èKiêB\‰ÉzËœæ ÈäýÞ6ãq3|Gþþ´ PPP(|[¾Ø –»wAc¨¨rÖâÃáèÁ–0m-:¡Æª %t�Nv‰[Þ:Ì»œè.ÿ ^Wïÿf·Üô°$,ÎÉi)½6QY|3Պ ™LùÿÕlÜÙ;�࡬ë*ië­:fÖö…”> 'à{®*ë½’™²¼H\K� Ëðþh_ð&�ÛûuDšÂL&7ø ësdtê4ÿÌÏ�;:™0.Іú…ÿ*Ç`Y”²å3ÀÿwwÄ‚A„ºTJÙù«Ã]Ѓ° –ªj,jÄ£–Ž˜GAR¸l} ájÎ3ÉWš–Õ19ü´Þ_[y÷<n£Y×ùÀÙAôé·¹‚1g’ÿ±/Z°€Ï|·Êd°Nú›à„2¦÷C¹¶Ïw@–'Îí´ÒcB¤ϦÒ7E­�hbðGt£¼fŽAM‚V¢‹ÑöÜÂ$C`²¿ ^V­„Z!!‡òÛ;’7Ñ͉¤WÖÊËŠŸü�uº/|Æ«ëØ¢oj»é à æ¾q/„îBN×±&gHœæk>xÄ_ÉÛ¿WÚšãV 0Úzñ¤+)hoê÷TÁ¤ËiŽDýåÕI ²|øJ|œZå#´§SŠÒ”œ ”Ôó`nNÓªžŒ�UßÇôÄ£\žžû·�F§g¥V4X94 ·Õ•£�Æ‹!_F,ן^yB”ͳAôÉh2w0\¢x‰NÐXý¸¶•‘w%ë Yþû-u£ÒÜûR†¶£ Ë•k_ðo—ÅëŒÊý(�g­&uQÍ{´–*ptyÔCÞ9›@!ä~~[ƒµ¿¢*Fznâ•$ýf/—Öð|æ7ŽzÐ… Ëd'Š« ÁDShÊÈ�|·{6ó4Ajw; ,øÿ[þš‹ÂâNB‚�FeÖ*‚) ”IñÕõ]ÚÚ˜©“ènÁ±œR¬ƒð)PP’¡i@Tƒ{ø-KìÁÀ�K  ÅV„+üÏðÑ–dÒíÐv,|÷ú€äòÈÁ gPêÀ쾫Ç¥`3¾a®î’DLU€Y¾»›·3·†Yðá Ö^…ÙAJ»¥ÞMZPãÿÁý| òìæ«ðÝæ¹‹b×ÏEß ä2Hs`—‡”XîÀ ÒÇPsLV‡¨tTCeÚ¥MÀ@Øið#}”äŒ «‹ xhâoºó @µí™‰?s47Ï×uêóóB0èÔ iD¼ Ó[�ÿW™©œ‡T"n6ô1ý³õ¿¡³ý|6¦qð›R„[¿\ö×ýU;��lhÛ:¥=G¥+<øNºa£2EûÇßÀžD¶eéž^<†«B|_¾ï2ÿ…bNt' .}°š¡9�nxh‰D–I‚œÛ �܇U¦0ñÀZïù;YÃ%».:ñû_̤8œŽy6ã Ý6æxÜØàI-‹3ÜyÏæ!_Ù Ú)1…ùÕæˆ® –çsú9{C›ÆìI‘u(ì6`AP�Sþ@ÍͬoVÞ²æ8‘;wò§YøGLrL®Åý��¿–ÁàÆ7äFí1í­2ÛpÏ?•7"ÿßÿS’_X»Áîÿ3=Ù!Ý1a5Þ¤å?xÍõµån¦c Þ�–N«&?¼°Œ—ŒkÖ†"Gh§`Z¹ ?ün.Ÿ[6žWçªù£Ix"`šÿüIgzÛ„\$Iý&÷{ø–g):Þ šj¬VNá…]âíOÈ‘mE�ùÚÛàñ�2ZL¨•b›qmŸ±Âs‰Ñ¶1Ôw“´ê·,¥03„¬Â‹vû h*Qæiç7„dF1½4³ŒË[^Âÿ[ãºé—ry'Ó½î ¨PŽ„{´Ç^�w~ä ^ ÃöÈ€ö«—~«[¥^ÙKÿþý¡âEʳÒzJ)\×’Kå˜$Úí\:ª"Fžýÿ�ÒØÅ{Ik×Ö¤ùM£»kÅC~[iž?…Þµ�Þ˜¾›ÅµïZ:«&瀩 ‰L©m±w”†J’&ú&nø¸×í³Þ­@]t›ÿÇšÐ'u³þ|Õ &Œ¶dâ‰ÿÿÊ‹t—¢rÛ?øŽfð»$\?æRŸŸ‘d'æƒò4"˜Cª¶àx/þÏ«¡k6·­+’Ý�v™šÝ¿UŠ�øŸx[7”â�„­%÷,u°ŽjjE½þlü$ù“ýCm1ŸÈb-ŠW­.�7:\Þÿåò Ec@CY`سÙh[t{ M}PtÈÈ^ª•Û�Ï(I5P—vÃÎÛ; •oc^„ƒóÓ¦øy®™vÒâ-)„„À£`qO”-Õ©LÐHPv�3Ô²zA>Ü}Ýzó^ËÚ\€zC[ �ͰÛòmdÈ}. ¢ ?DëÏ$