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¢!¡ù4È ¡z%ꈆùF],{ŸßÞ9ûÙwë¾ç~{zDûª÷ý/þùüϯߘÿäßÚ¿g¸@?µ´ëŽôý€ôÐöý–ýPö“¦ÁùOÉ¥�‰öAÚÔ¿Úÿ¿09>2OùŸSÙ”Þ{é…�‡yÕôQÐ_Ô?ö=¿T?Û~püLû!ýÀöhý°*W‰ É�û™ 9Ä>e•êá–]|o¦j_Α^aîš/Ç^j£û‰þ Ë´tñ«béqÍSù÷7t)>!\Ò÷ÔŽm�øèµdà%â�DÝ­µhºI6 ýŠ ˆj0v¿Ø±!ÖZVLˆ®§…¸„q}cÃ/U|x]lq°D±é~ýÏüÜÎÿ²rp²DÏ#™ÁÜMLHÛ8þþ´S ¬¾+ØÂwazH–�÷y¸0ÏìA•ÖÓªÝÆ†à®Æ ¬g�}ð 8b˜uùKõŒ _þýreÓ/x¾šw‚EŒ{þ Brñî—K|¦53 S3ëóÍíhÒ-’Xr6T/ˆƒ¯¡x�a¶~Ñ^Ò™í¤˜T±8’Q*·jpâîá‘ß´ÉCÉáT;á!zÖ:$–;EXâtÅ>�D/>HÒ]ÆUdš®Ëë°™ü#è •è¾h~>K^npEåý�«môVlÁâÀÝ«zÅ¥b€.}¨|F0¼óGÊZ… ø©/ÆÎÉrUúÌ0Ô#"x‰@;à†Ö„˜yÂpm³ ¹šþ¾T˜ ÷èë#’_­»Wö焳œ‹fôdÜÄýÞЧ+£‡�­9,×5oQXHoøÚ;â>f %Â�š}5äsóóºy¦ÿqÒ{/h8©wø0KªjFå…#Q u 6=&|‰±‘‘õÉ2Û}JŸÍÂ:Œ橺<ƒj¡Gú£=ö·Œ_òº& ëa*Yð1ø*ìÄ„^#â åìDXàöí¬Ý¥aÔ¹ôƒ¡D1Èhx�O{½SWÌч+B½•ðuÿñF?Ph‘j/è�)ðQœ'‚û8_;?‰KƒÑ½–1Ö¦ã�»DóŒoÄ@ÁâN.ÆrÞ’#!ñHב ÎVH Z5p»žïªA {R‰û²UÔ‡wöŽªÈvǸÒ�Ó�úÏŠ´ò¢¬ e‚ÀHZ§²åp)wö;™Ò;"ÕGvŸË W)?ÿ‚.üÄ [’…QtS’Ã=úèóíÎøLŠÈaß!Ízó¨„Q–²EÏø¡¤KO6ë¾eClñÛP©CóÔŽ‚D }ÀÂI[Æ3§ž­ÒÝ—:Â?*§3îk¯€0X^èhøxG~hÐß?Íÿ>Ô�è2ž‹b.NÜÔÄÀ¨ =Ó¤ZüË9'’¦I§=›ìƒc”¬Õ�•ñxñËËàº<þEx·Ã&/µç�ü½RãÞËòÖMøW÷òzž%¯ð\F›sÙ"¤cñÛÊ‹új§À6ÜîØí!Âl´¡5wP#;FR†ÒTmÃ{‹å%Ec�ûZ«P™D´é$)¸�û·Ú;_ÌÜ~²]WÂ0õF5ñIÚb6($ ÍN&k�3’yÿÛ>”SáØRª zƒ ýxÛ8+#Ð'¦žƒûÛìFë<|ú@F 4yitdÿÿã¡)¼iE †jÓÇÎB¼N>ÔC¥éòñÇøËþ¨Ps¼Ç';)1…jhv62ƒ&5ÁFúã n¼¨F¸s—ÿÍ7‚Ô ÎVCcĘ'kõQÉ–j�oåÆ Æ $÷ÛÜq‡SçC¿Óˆ‘µäÁlÒ¦Êí·-Q£Ø½„o™p`b6ØÒšyŽ]¯Þ,�cº7ÞA]½Ççmga‡+Ðóˆ* ±+m³q4sð‹Q©OÖš8L‚äZˆQ`ÁÅ 8.ß¹”;é~7¯ØXø§‘j–û´µéâëå¼B“ç?CvdnÁì—k‘ãÞÒpð@å`„S皈ÜNaóN,�C¾m?H¢.u‰©áÅnf¡1 O nYÞ/¨È¶’¾dìkyã6úp‰åÁIÇ~Û^ãû<0»oçÆ­±SÁ!•œßFtÑP»Èý”î·� ^†œÆÆ1Îî1É7ƒÁXʰã�p”+SS¨é3(M6þýÏŸ�j�Ýa[°ZÉ#Ãã*ÚìÀzd¡Îr5ÍtñŽè|0ê=ÎŽ;ÙhÓ®¥RqÛ3@�ŽãÙ%£ðªÍØpé�uí-GÆøpB”§á N:JE&ÇË0¥ç?EF‘žŒþN×ì”CFÜ{²E•›“ÜÐÛ#29ÁÑ/ˆ-š]™¬Û$\ûŽñÕ�Éà!¸ÓQ0ÜE‡py†Xvh>ú}¬arçl ÊíÜ!‘]®Í¥ÔÓ'�zî&Ï(®ŸM +ò@ F~2‘êÆ•‰Fsðï–ÄcðU¸¬‘Žó«ÑV‰ˆ9åtBÒ) Û†?QžÒ’µâÞùB }ÙUVW%87Q½›Üí2!K|Zîwÿ`-�8L¿’ÚyË�ûæR�ùÃ" ä,u›.t{Æÿàë}[¹¸uõåôõp�@ú@ê J�¼Ý¾Ah%•ÉULàÖx°‰ô€ÍÓ•XL?ÄQ|‡©QÂG•kDÝ