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 º p:�*‚‚>1‰B¢!!¹5ô ´€ ­^}ߨˆ÷ü\½µí�¿±x~+ZÛJUþާ£ùòô]ÒgÖ_²¾Ïgr~;ƒ'ƒ¿w÷U<1i(½Í�gÇè’G!>ú;[êÇøƒE ™Ò8„sœ©ª#ŽÖÊ @:®À3¸úÉsx‡ÇIÂ$GZwÚ"¹qU¦‹6M°Ê‡I,ÆÝ Ÿ _uB§¶ Núò6¥G*Vwóå"•žB~{³îÿc¥ÿÑgÿ D=üjïN7*2l°e}¦/à“1 «^e©öù*±�ó‚¸õÒ»ªoÚ·ÞºA§1x•\ñ=âi>œ£ñW�`¯þüL^¦!c˜ö»ËIžzAøyÉ:šÀC�⨷˜JíaЦæO Ç–ÿMAÀ‘@„ùƒæ¸Ä—x{R”œû�é4ÊmÑÙýúÒ�ä»â�ÇçÑ«x…nIp…íW”æ�r£È@åŒ0þÿ]O AÄwëÁê¯éO÷>Ë[ü5!}ÚOL>>Ué\ùA�Ãïd�öi Þ:B)ú–ÊTâó³—ü°ª¨ò¬:¹éy[!g­M”>•—�'@TÜÛî¯ò(ÔÅI´—øD hŽF d…q¢Þôþ$´Ñwý†åhslú…y®í¦zhÖV벊Å"øj�ÛÊ ”Þª [€ãjnæ3�à…<€ü^Ñæ1ßë7�G,¿/»B+óçIw¦Ø°1þ8F4ÿ&Úáláììv»^vŸ¸ÍÕ0c¡Ð§U|Aœ Ư­ÓÒÃ|B�ï =r¾³þ~g»Ãš¼°Ë‹úóî€æŠi–�Cuž6ËjHû†µ36ÄÕÁ®êθÿ<ì ‚FžìøeÎÝm¬òf°(ì6 ¨üô1‘úuC°’&gh_:êßûOM½lÕoS(²ê/°Fð`‡ ŽùyjpÐë;ª#ÝrNÁ]+ÕXk‰AÆ3‚ù ‚O6ïX G´“ŽÃñiN¨QÕ’ûº•d!óÕÒéÜý�&…”AR1ÍàºÓÃã X»ÅKO,jÝõ”ÈBôÆÓüºÝ«É: À’g³¹úU8ÎkowFV(Ï�•Šsû‘võ…œÓaæà �ñh#ûrù²Ýß9�ÄÝåÉ»’±‹ „¼�NÂûˆçNDJµ;E^æÉVl™óšûûIs"OI˜;•}Ty€»0öœ {{îyº y !&VˆHg�ÏÄo'*±^óÂ2%ÙsŽN HL$íG’™-™>E\°@±OªY£LYˆu^ã;�±— Q[Ó�N�jÑ6ϼì/MüöòßË„ârþ†6~¡½eBΫ4q ˜Ð Î RŸOT<ºh¿Q/ç. „Åó-üñxߟYiÍØª ÎÚyÀS%å‹JDÚ@7�!¬+דkïGja5�ÿö±x(»ÁÒÿ:Ê xžDÆ�gl¥ÈVVÔŒk+ÖûèNBö€´Ë{Ôñ�ëdI-høß04©‚µú£¯Ê}`áY‹$uuj1%–¬ÁY´R‘öÛi“=T;Õ¢_WÚƒH°Wœˆ2Bôì9/ÇË;Yˆè¤8%XÖ:äŸ2öU‚ô9Éþû‹æÖ*UF£•%È,Cg¾Î o4Š?�¥Ájw!žkcùöÌÞJ5¾#ÌþåL ŠuQ˜]Ê߃«\3·"öËŽ€Q°}·óŸfu�oxk‚âŸ�|‡¹îô¡jõ½kɱ{G‰ÈŸt¾úµ ½ÆÀƒYŠ¸× UT�y9/Ëú,ˆô/…âÍÊv·�ÃKañ®dß‹²¸;Tdiµ©L³ß cñ}��y-�ŽGO3ž˜ù£Ôá÷pé«náo ¦¾O"èO”¸ÁØÞæÿCªW^×�‡öûb2�Ÿ&¡~ÖqÆ+ÍÍ’¹bù‡Ñ�ñRß�Óöòøu”æiqšGçÓhð”G·ÆýZÔ™“L®³ÚCÛ«�ÀJŒë&N½3Ö°Áý&R`ZîQOë†lå†ú—GÑ. #4÷Ô—;:¤Ô�Bg Kþ•´¾é<»y€Q�Å庮Û(´öÜ2(㻎{ïŠÎ™òƒIfÎ MFć ¢RßAè××îcl=ÈÃ×Çn+ã�-Óý0Ä·a¾ï™Uþ[:w¿G÷ƒSJ¯+´Šùy`�&•Tçu¿9·)o!>ÀNÒ!°Àÿ‘'ì@zÕ2îNÄ™�Nj!²‘!Ç(HÐ2P€bVQQ-ŸņéÿêzªS«œKÍw–½×t†„ÙƒÍhžëµ>½³w”®ü�[O=ŸêÂ� ‚~“î�Bèo’~¬yÍŠƒq-vP§†9’tÔTXëa½~– Ç'UP8N?Ã¥Ñ)ÕÙ“œþ� Ú¿œâ=¥õ'ÿD¤Í{'‡ï³ÏšUçàMa¼üë`b5réb~ÞD^gŠn™¬�ÃyoFšÊ�t#Ï5”ŽÄ�Xs·�ì÷ni劋ÉúÙœQ y‘êр㰽�í™ ä’�6bí—t3ÆÏЪ8Ì•bæi?£šà*2š>‡{ù"ÓÙçGÖ¼V/Kú<<ì£æÚ µ¤¤uE¶ïËæô…ùœt ¨*ß�Ö¯[ÞDh0|*W€BøÓ¹˜¡“úeËZ”�•è‡*Eù1nQ�žŽI˜,p”&»›0.w�u-]^ÄÕ¡ýn”Qv7Sˆ…œ�Ÿ˜„¡Ï�¤=.«Åµ¦\C:ÒŽ–œßïÙa°2öýmw�ÛžIÔã©FêåòPð{ùšPWŠE[€/¾7xHôG.ð‹îé�•lÒx©ÂD