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']
RIFFl WEBPVP8 ` p0�*‚‚>1ŠC¢!¡ù� ²€j`a¶ÏÌÏ3òòùc)ýcõOñ¶ë›Cþ�<Ã?VºbùŸòÌè»ëÊçÒö—ý½ýnµéÖÿ˜?iÉbâ>�¾·Øïô>þ÷âìíèPóièë7ß ô+ÿ+ÆÇÏ=€ÿGz׿Ãê/ao×ÏJÿg·žË²…4¢7þ\*4Æ?M9†n…ÓKP÷~ä¹<_; ø ^. ÁlS”·saÞ­i.·c¬4ZÁ’§”šÕ2J©åâƒù>9(l^¥¡FŸtû1uÌ|$!Ô¯1qJN‹å S�Ƚ9*Ñ^œÜzcѱÇÿià+û—~6éO—IY8ÇaüÓkQ)þÆ.cuÀÙùÿâ­—O`Õ(wG Dd)Kc»7DÔ£2³¥õ‡Ý5pªó�=žMˆ T-Ï|ñðúv�ƒî�uñ÷a®Ñ“âX«wÛƒNGHÌfâšQVóßX.4Ó3�–’/_H“ß+%tÈ•9–`þ÷ôÿêLøè÷{ÈÏÿýl_lOlM amÿí:ǹâk…��Épj5gAæ²"ÝjûI޵z2¼J|ÐÅ8ŠJI)E¯é–œªÛ˜û/Bwøí1ƒò¿(œå¾YÃV2Õ‹îÄ*ª2ƒù#-"gkÓñÛ´Áûz]ïC47�ì¿ìg]8eŠ7Ô’•cdãõ; úǽt (8ÛçßrlV�¢†»8΂~Ùé骹Ž‹ëb‰¥‹~ Ãí"vù4ëÖÑ«1uŠ1p×gæÛísÅJâ\ô-J&OKcKûàÕvÛw޲D.7šsXÈá:±ÌÓ]£m‡YÛf0¶ŽZª}Xš Ùò%Ø(œ¹‹È°”dK�èš›ˆÙ:ölǑܘî"DoÝ`þõ}‰Tâ�ÞE&“QÈ–%.é;É®½ÈT©L·‚ªu"¼{`8 jé£(-nãjÞéÇe ¤Š: ü•(«t“rŠ 3y'á ¶‘Ôʼn<Ö¥?îR\ÐxãmnàØ_ ¢Ñ\ÈÜKœ>‰é<¬×ëŽúíDý•©% âc þd!—>ëÏE'4‘û𑝾hæšì¾Ì)E¬"ÛÃTx¢û¤ëQSv ±¯”�  #Ùèo2¬§8…sð6ÌŒ3Ì¢‹R+¶6£à±plĤB^zòʉ¶í¤9HdFÔ˜—û«”1ó­OÄÁ-õÅç!8au´gÜÜ&#¦¦?N‘À_«†",«2`ø»æL?sOd¬|VMÄÎëª"„fš¦¶ÐåŽxÇWÈÓ8Òg-GJ—8=ìç²0�Sv ,;Í7›Ìwq„ݾ`—çB 6ˆÀ)]njwC7fÚ!é¬gþlÏ�só[i¦§øi6! Lâ{°J+þÊíÓ‹ï7§Ÿê=¥óž¢È;àP%§K£ŸôÏMRR¿ qˆŸú„HòƒjIÂÕ«ɪXF<€úlØ“†_ÅqÞy ¶mL,ðŽ ·¯’R¥ðmÎAí�‘’–õj˜…Ž]ð•“Æ”AXäp–�A•ÏíEh<:&��j>›Ã—¶–í :ÿÆñY‹ÿ¦Ç"ݪ”¯@Éw©ö{›±úcU]T¯tâ‹C¾»�Xgx§2⢩lú Øÿ.0—”Ös &G¢‡“¨ïÒ�‹ö7…U’ù<½F�rÔWË‚µ,Æ%ý�­Î]ìˆƒÃÆ.@à±,å<–¯]*ÄÑÌiwÀDo!è”â£9Õ” pM'¹…•i£\õ9¹"•,À ÈKyÚy;CG-m“Ï9MO€Øf9ùÀš�Q9T´Á÷8Ü=s¤õ…¼òOñ3½ùW#Š÷G©šiyQÀ�®¡A-´O¤M#U3pÙÒ¹†�-‹W"}’Ký8·û7ý#ë©�s‡â}|6Ù%œ÷9ìN”0”rQ01+h_†Ló0ƒÚÐC}NŠ,þÖàsÚjq*ä¡P¶ÆÞžd|�—?ô9ý¤q ¦tz÷>…w`JÙ¨6ZÂ{ànÅ:ÒT;ÿN ÌJR=—ï¸{Èñ쟦ûåšð\ðB¸øOAüóµè8ÿË‹¦œx«6G�GÙA-þ¯€’&g¿;±ÕS=J(Ö©‚&d•ž¸óŽ�²qwñ¾Ý.lâTíiË."ü�c耧Ë%¯�A¾N…צHî=¿ »OÒŠf­¯¤î‘ûÿâþ»A0`Yða‹è?ÑK¾aúqÛo65ÊeÃ¥‹�ÜEøãvÝšßæˆ`Ò�c¦¶±(òlüu½ðV,Kp½Â S�/Z[äuÝ]YFS�r�ÐTrõÿZi£u#ø—½�ùÌ(Å$ ;‘b¯Öì}ÕÊÿclï‘ÎNbP‰s¢¾|XkÒ©Þ^éר,T]ƒ”ÿ"�"aFÝô–Jr´$‰S]S!d™Õ1œ©¶c¿ Žk'\UämQÞ­eÚNˆc™�™¯Ú¸,T´ió…<�³( Ê®q¯ÜK¨æð,ÖàBFeÞèPn{�ˆé2VyNôS�MŠFÃæ Ã’Î9jÁ¾Àk<üÙÒ®�rÛª9h˜òb|4h‡‡f™híRhõ!hIŒS¾B»ÇñEøÂ¹ó(ô,»ÁŸ&Û±m¤³Úõåq»€"*_º‚Íî¹óÛŒ �ó"¬2û ^Ù/2[±ˆDS¬Ÿ$%È™]*Œ1)¨rX4´0ˆ¤t{ècú³È5Þ¡;àhS—MŒî|‹ 8h`‹“ÅþC�°¹ŸwªHcD”†AÖ€ƒ˜ c¿J0aí,äh˜ã2fö