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/pngquant" 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 (38) "Command "/usr/bin/pngquant" 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âWEBPVP8X ��ALPHõ …lÛÚH{ù¡”†¬�ѵRʺ»»»»û‘»»»»ûެ»»–î/¥tm¤ ^J!|¼m“/msöKDLüïÿ¥›-,œM¬U ñå˜pï×�j`(Ç[ÑÕfДù\¸÷ΛW,S¦ò¯¾scì–Ø"B›-~š³4 ÑÑlšc7^x~1†}×f5«b‹ Þ5åF!R÷(+°´Õ²î–¿PÆx Ü–×cÂWt6ë1ny=[‡~Ý, ›Kvà•b|RU‘žg×m˜?eX Þæì0böüùóWí8tèÐ¥Þ€¤ÈÅO¶ ²§�Ë’0ü¯~èäª 9åÇx |/N¬™Ò§™£<À—¯Öb–ŒÔ[ì>2¦'4ZõNÅpêŃvÒ`¹GÂXW~½:·tP»ÈCD¡Î m¯ü…2ê½ÙÒ&™€Øë\ÅÈ?ÆX@ç8¯Š±�ó`ϤF6ž@Tk³iÇþ�UdúeK+° Ê�0zp>º«\Sb&èÏXÜ) 4r›Í:õE¶’ÿØ Hò°,5†%KÒêC,ä=XÚÆÎ�FÞ5è�»YçÝçàÄ>7ŠQ+Írk~R¡1¡;³�VI­7Jdž·¯‘"6:TŠÚƒ(l ² ¹·´ã@+—<àHÙ«9‡Z'ö¹^Ô)ï³�ÁŽ3 ƒâ{ª�f¾ÆìWXp¦�"Z{Ü“Q¯§Oj=Ò¡<%‚v×Ò H_  rÅ…9õ*«¬“¤Ÿ—F¡?–ͤâ¬/�,1ŠC¢!¡Ê¤  îË,#ØÿÙMR9—åG2Fëøgš½ õ£Ë—º¿Pqžà¤ßàþÛ;‡ÿÿêù—ñÿôä½õ}z\þ÷êéþçØÐø_ûßHØ¿€¯ÚÛ߀oæÙ¿íþ÷u$¾s’âýt$WšµËN‘ ‰ËÅLPµÅr¥Ý üÉÉØê~  u,ìù/‹S#hõ&LdÌ.÷S˜6(” ® «Í‹õÐ�m^h_®~€þîz@ÿ‰±Lð¸ÅVHX\i)#Oû’@�Å*¿c11, –Yä Ãß›V^^PPÄðm ârºÅuAÛ†Qõä ±j¬Z§aô€si�ß©@ד—÷ÀÝ´¶ûÿpq‘Lð¸Å#›@�¾,äÇ-o·ê›xòô]) .ý×ìâó«’\7¹cÇã»Î&÷sûA29ƒò‚+ËÍ8–Í\Wí$rΑPûI?8i ]c,=¡�}MfPÛì-g™óÿ¥l„ì�¾%QeFÈO³�-þ!ÊØ¹ëÈJý`L֤ݙCÍy‰üè‹›.u3Qƒû¯s_Õ‡Ul/¦ž8¡ Ôð¤ã:ڟ“+UéróKýÉP7îÙ)&¶íAÁT÷ÑK'6\ˆíà~rLæô©™ÞŠÂÜ—Ñ�"lðáý ”t ÃÈüÌ…ã•Q:ólµÐ�¹„éû3@¸Naf¦Ãíþeâiè…Ú%Ê nç#FÖáÏa¾wŒoldÊŒ&€{ép¡†tÏ¢,—ƒBÁÕcÒö¤¸4RËС@ࢬT{K¶Pû›Àfš=bß?ù?] Íœ5øg-+Ï(Z¡ÔŠ%Zû;=/„­¿6 ?ù>?ÿTgÿÔèÿR�R ÏJ›×ŒÍІH“ôE(‹/°TŸöòTÁ�àd‰fa'ÓgWÉBÔ'’ÿ“¡Øc[©zßöÁhôﲘ¨{§í=Ì Ü“\²ïŠ$ûß 47û¹ÿÀS¾h׉ñ_ZJI¤�1ŸýI#½ªéM@[åÕ7åò–3´¥[¦ô–’œzħ¬ÊïsphØgL.„ðfNÀu~mwú”´_F¹›ßùWr]»ÌÉ_Àq³ÆBña‰Ÿ`SèúA'õt·Ãæ�cvåWPR¤œJïÀ™¢3\N­v»à)ç¹�êE4ˆ{Ȧ�+ͱ¤ÚYLÓ�§ºoøybþbrJ¼à €