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»›Èú9BADDDdƒ "2 ƒ·yû°½÷Þ{ï½ïº}m«·mu{Ù""[d‘! ‡ƒÜ²ín_ ¹e«In/1ð_sæîêšr¬vWðé[5bOLÌ[žùÜÍà„j“ΰµ�™gŠZÎJQ>Ò‡×$hI-åþ/Ò ¦.ª¨ÚTÒãx}`FåU³V™õ�Ê«Z¾¿ŒÓêFTmß�„5WWµNºh�kS4§\´j¬î[UûO&!Mñ_*: ÆmšòæU=|ÐOS󊺠6²bBŠ>¤¬²§U}¼íÕP щg4Ôå¶NghhÐ#�(­û °ñÿýe¤¸Æø “ŒïIãËW_ØlxÊlxß~†wÖdx·{€ÑwñF§$*ÁèÄ:0ºÜlpŠØ�c{rÚ‡ÀЊs¬ } )…ûÑ)ü,×fôâžY>]d­6mZx¿õ-ïúý>—ùMUù+^€»­©Õ/& J’”ÞWûfð.ñÿ+á²|œÑ-îÍžgèëa‚4bý•-”mCzÖÈ1“hÚ€x§�E¿BœÓξ sòpÃ"lL›ËŒYöEˆµ;xØ"X`„mv�ÉÁ£ò0P'wTƒyÌé›7�âlÓÎ޼쾀[>T[zÓ|rÜ’hââ0\õñDdÅ¡¯,£"9ùú\ÍY’;äÇÜñ˃Z¤\¨vVIŽÀeqdÜ„ãd—‰[#I"Ù9¬¹-G$‰$G°A±÷IË«¸“$Äœ$¢”“iÇû– L¤¡ñ*àOJÏž(·»‘RñIA‘»˜Dån¡ (ÙG…¢š«* Y’HgìO‘¯?©;B’5ƒD¹íÝóéUÿYz^ÀÇéiö$%ásò¼^¢¼¯nLâEŸÝ.�÷û¯;bGñѶwgäÕ°ST‹_K«jzº'…Ye‘Ø8+G}óh‡À—’W5Ó«€¢4&H¥û>ò‚D-Ø3dÅ 9YÌšÕ—ˆ�»[MB q€×©´‹¨&œ¸^y4 yóÅme±�g\aºb =o°ÆIðkz€RdV�RJ;Ü/;Í�9MVl#7À3^Rnb�¨lDÝÔ#DeÂ…ºÁS.,!Ú²‚^¯ð&åu»hÔð¾(� Ò뉬Â/ ¡Ì‘³}0ßLãU˜Ç{Ñ€¬®”rœûüïNJ“i]²¤Þçk‘ÓþQRnMµÿ‰WiÄ¢1Ïë¼›¢—g­ë¤qïœÈ„aŠûüÞ‘>-¥û |ÃDõª )•’äÓ.~‹D’I".a­{r¹Dšd&°A±õë”·ñ¯’"+Ø%YJ‰Lã~Q½îÙõ¬ômîY¡Ñs])ä(ù¦Wq—»åòåË‘“k\æçS™³SLö%áLòÈ0b_ZLë¢gkšc-L[¬[�ü�–¯ëÐhu­çm«ROˆ�Npï#÷éÅ^˜»œ]hVçU;XB™eo¬N€n�`§ÇmE¶J'^LŽJ;8*`¬`öºª>ŠÐ�Åìµ`ÁWëb€óÔx¬HpY,.Ø\¶2Ð$𖉆S$; �as«’’Ü›Æ��ó¾QS¸ü§]VP8 ö�'�*‚‚>1‰C"!!š­t ¦íÕú®WönÑI§Ûÿ!}¡ªŸÔþýq¢”®ÇÿcçCû§±�Ì_ç}À?Fÿ×^ô@öCæù—õ¯ù_áýÜ?Êÿ±þåî?Ðú§ù°ïÚO`ØOL/Û�ƒ/ÛOÚÏhïýyÇ=šœüPË0Ó TÿŠßŽãÜ+é/Ç¿£6w¾¹ö é%èrcè4ûîFQhê¶ì�È‹•Beº!SzÊ{=Kzû—x-ÛÀ3tæ1èº5F%�A²Õ·kŸŽúý3';fßeÐÃ>Rðe•yšÞ»c! ‘ÂrTÕ¼¢ü™_ÃËlµí¾MœÉåJ(m§ƒ¤„)Ì+‰^�\�sZx<Ž®Ýu_? JÃèØÈ}Æ—,hé@Ð7—hÊ7¾á5Ï6{¶�qŠ”H%0_-*nèþþ÷[¹oÿ¥-ð+ #ã…K¹ïnÀ®ÍL¿+�“k^ÿ n^¡1'*ü™6�=;ó÷ñ+îh„�ð¥~¾Dn4|—Ì\Õ©ía—�Å]“¨žÍ«!ìΛîBÕã'fè=yÌIدÊž”²˜VÒ"ýdnÒ/’àg¥iX=Š+Iž%¤ÜùÆ™h8ß,¼;‰í�6äê—aÛ^Òk2A¯b›ÍPͨc\ûnæ‚ÒzÆ�~d3ÏààvylWfs:.Ö¿70Ó>õ—¹yýTânž·1{¡Y�Ͼ»Ã–ÁÑÎ:„QïÿÚ £þø6<¡žù3ýô MÎ…ªEÖ¹ œ¼ÙÕ5Z‘~üöOÒÉqGé •Éz}¿×E{èí3ˆh°µ¿eå‡ç½jhZ3ÉV¸d9º®1¥zŽãGS©}Ìêú…ø ØSke]3ïȯW«K¹%0ã_8_~eÌåµyùL Âׄ•Vا‘cŽuØL»J¼±f6ú½?÷ÂÌ|ªí}«—‚š#?¬D|2›{^á*Gm¦r(ˆB_n † 9©þ‰ù£´R¹Ã'B âÜÜ.‰îŒÌùHÒ{òŸëoƒ4kY\è]ü þ#ñˆöøÿ<-}4y¸¦6ÙZ÷ù©˜¯<üO·x ¸¤k(åj�4©‚ÑM]4ɨyæškò1îÅ9ÿãô dLeŽ…H oÙ½SŒcwf|ž£œ²ù±-5·~bͯ˜î{C„2gi<‡ûÔXÿ9tB;Õ²�þ-†bÄ #Þ“¯õ‰Fü¥qû@Öàæ ?{�ôá«­Jócú@}¡ÖOŠ™3nu[ó0ý7™:õ-•w2E8„ÅxF9©,³˜ÌbÈ/�’�áFÎ+a‰Õ&î7÷ú±8g›B÷_ÍñN.:M„·°>Yq|ƒ¶ßis[?M-)Òm3¼ÚÖ�Ì^{ÑXü³hÜ •í 9œ"ø§.½,x¦uÝ·¸ØA/Ä*Bµ2ÒÑçù¡�d6ŸÀ”üîaɽ¢?¬!g¦D E?è@Jq$¶¦V&†U…üÐ$wÈl I|±Ï+Óy˜äZkµ£%