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½ðœZ»kÛ¶my¾¤ Ë„eà ¯ðbY°BºÓiT ??…B¡PøI�*–jmÉ-"bü¿ÿÿ‹¸ÇœŒèýCÍ>G.Dг>ÏÊ2r!©÷ýaúbæDF.Æü(½˜9�‘‹Êž$1s"#I|ŒŽÙ'"0rQ‘óCŒbæDF.*3ûü5˜9�‘‹ŠÄÌ¥„Î̉Œ¾¨HÌlƒþj˜9�‘‹ŠÄ̵Û0>@7ûDF.*æèì6ä˜9�‘‹ÊfFßì6úû;r"#•=˜¹ô¾Ùñz{+'"0ú¢"…9Ù7;ÞÞžˆÀÈEE+Gëè}³ç»;Gbä¢"sÙ­£÷M~€HŒ\T¤‹ÉnÙ·ñþ"1rQyÄňɎ�Þw¾»ŒÄÈEe7Ž““½÷w·#•¯ #&;ºw_“™‹ÊŽº1b²c0Þža梢cì‹…“C}æ¢"1¶ ‰“#ßßÎEEbl7#&;|ÀNEbl$FLú'س"1¶G:F̱?�‰±ýÕ1bøŒ�±ý9ªSǬ4¶?Oõê>fÅö—PÝG~ö©�×o?ׄ¹÷~Ÿj}µó—_ü|ªÿŒ-æg9â²e¬SE_ñºˆˆx=hñuúŠë–ýê+~}ÇýtÄÃÖâ¾­‹æ¾OVºÞ¡:5®�w{`Oîw¿¿ÊýœÍÃ#Üïùg •î×LÌ}‘ÏÂ9Ùë�‹Ê'¿÷´=Ùù$\¾ðÝÚÂ�G,DGwˆ›=.‚Y¬-±OûÕZCo­}!Z;:â…W;¿vgíüºXA^�vÊ'Ž›Àë"hÈÓ¹#Ðpà…£ã¨³ÀXuv9Š9ñ¯…­!.vRyU�ã`/y:Ž6¨?c ðýzµÉŒåvçé:¯ÍÍÏР!âAÇšW�ã…îw¸?�hîgv÷k>‰«�ޱ¨_#îZC{�.«Ó×U{0ú]u4䃜ãAÈí*nÑа;âù$ß¿ÐZx°{Ü-"�í¢�û“\N�jk4Œ§µÖë2ݯyAGÞk!‰ë:�ër?¸íUz¡r–ÛÞÝÿÒÓæ¦? Œ¢ít›ÍÃ~q<ÈÉX®w˜î#üß­µǤæU1ŠC¢!¡ËlL ²·p¸í÷ ò}ÛÍ>Òýcn<¨uÓù/·�>†þÙ½À?RzRù€ýLýˆ÷cô“öðûèÁì…üËþ°ì§¥ßí§Á?í¯í³çÿLáÞ¾¿¥ýLú“à³½þÀ~ÙrÛå_1?Š}Pû·äWä'Á=àðü_ùW÷�ÉÏË~5põüõ_Û_ë¾D¾€}fÿùGð—ùÇø¿Ë/{Ì>‘êüsúçùï¸ß¥¿á¿ì|ü–ö§ùgù_ùßå¾ÿ’@ÿsý“´_¡ëØÔE•³J yëŒÒSq¢z¯�â}°‘}ôìª g Œn÷„v\é¿ÈîØo÷s€9Zå€Vu±8¯­b}šÕzR«°Àþî[þØp´XBÁl%ö,Õ² ›W^Ÿ&"ìæ9cÓ'?K¶|F³,—´N~@«ÃSUî#ÿ•.�ê!™;sy+1ßÿÆ*‰añüÅÃï6Ž“R"¸‹q7Îäù³]mÎwUeÊ}~Û¼t%mlmèªas{ÂŒ¦Ç•!½Ð¸„ƒcHé'ágýÍùǧÿI{GeøG!ïã5É7Š‹ÿÓ9 ,¯j ¡.k0 ·Bõ%=Ú(Á�Ÿ'8Ð,DžßÖxö»ÿòˆí}´ÿ7B;Í’®Jìgdÿ˜:�&õ„òÏzˆ‰ƒ1d’wåOáþ ΤßãSÊ´¿]ŠU®gœ‰ù½›à´¶˜ÓÉ—¼ûúŸ�’ÌÏYë%z#9é=:ì_cÃú2�í�O2“Ýäæþ­NojјÃÊ2ýˆÔôÁ«è½N  OA­P6‘b]l8¥Ö²¶›Â/¬j è¿W$Ó¹ÀèÍ£œ>|¥¼Ítª—£¢´æ^¯šßþÇ-ò�z|ñ�j×ùÿé5�¡¶›æ.k'�}ÏÀ�d^›?DBòöÕˆ x~|}öB#uG,ÿ�kþ¢‡ð…ëŽg¿oJ®ðÒ�ÚÔWY0’Ȩòþ¿nxà½]ñŒînš!v+üÊçÁRÌcÊ€–v+´fÕ� ,ªZÔoÝ.¶�'âæ}×úͪ¯Þý^Ó£'%8¢sêØ¥ëXü÷=ý!8 ÔÕÓd…/i´K·t4b"Á¯œ—,¨òÍSÙqú’¼Ùຢ�O†'•ˆr€ªoæˆÛÄ£xÄ–d”?°Ÿñ‘PzËì9=N´Â#v´Ý~™$Á —|m{ ÔrCÖ/ü2óþg(†«’¬~ªjPhÐìr³�v–B¿í¼ ÈÁ7×½å¬é’°UZÇc’çd1#Û÷ˆ,‡¼S9/r”+ºeºdqª+ǯ&•­Vx/Ò¬v¶!| ¾¯›ÙCB�ñmçöw¼D›†[èÓƒÙõȶ(k]=†|gÃÿ÷Wt (¥Îb(¿ááVw=·ÊM~ÑýM;²ÝÚM›z4ì/! ç8J� ç…+bé*�ü:Ÿõ#]�ÜÏêAn=®ò_T޵¿ÿ2Ø>œX÷v\ÖØÊóÉžoëÛö�d\ÉŠ÷ÔŸú\ÄÒÁ¢½ï¦=r±x7 ¶ak!©Qפb Ƚuϯ¨¿þ¥ª9(½f_§ÿÅî¬û—Á߯öý/Iþ÷1Î/äb«{l)·N#ít±²ªYûøe‡F¯ùú ¬ö0@ éÝ^‰ò÷Ñ1 ±´(²ƒ´l‡FVÊ–Ì ¨2^ƒ?®•Œ½ÿ¥ä¢õ8d¢Lœ±“ìzƱB®6u²ô‘üÖPµJçÕÏô� [ã 2—3À8#®çÿõø’жZˆÀg)2¿‰G[ªõ�ãù"êlæ6N‘ƒõºÛf!؉×K/ÚW:•¼†€