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']
RIFFZWEBPVP8 NpJ�*‚‚>1ˆB¢!![È ±€i7­O´ýaz/4«oûmÎjwË—¢|õÃýD÷{þÔ?ž'˜¿ÚV÷¾­Ãy·zÏz­úyÑ~U|IÿoÉ�ñOOÿùwïß–ßÙ}–?»ïqÑ¿î}þMöÿôÿཿÿUàÏÄÏçý@¿$þuþwóCЗfÝœýfö÷Gìíÿ½þEúP|ûêŸç?Ö¿çû€ÿ)þ£ÿÓöÞßfÿOìýüGþ�Q_ûÔùåúwÿ/ú€�ç_Ú¿çúçÿ÷'û¹ì‰ûQÿý …�f»i|,û®˜PL+q cÀô¾˜|æq6z‰¡Š.wW:(ßPÀ„oÚ^¢Ö_Íâé¸0~ò _Ûó2höJe̾$îØ»ÊWû¡mÛ€{îû­ñÎ"è¼cÀ‰N"Ϲ4€!’i½IcªH–�7J±�>�)ß ÊSºàÂÓù÷Íê«!<á€(q¯¾!-|94²÷ØRlÃÞÀ~�9†´Ë}[~BVªMºî¡`Z¯xŸíTø^8 yCÖY±­žìËÂõYgxì+V½¢ÛfåäW˜±›øv?Ľx¤õP"¦/Ÿ‚)ŒoͰå„� ËY�Ã`‚�e »'qºXê&ìBÉï ­¦·æ&"(.ò‡ûÏòïz˜üîBî¤ÒGŸ×~^.çÁNÐXÅÃ2 s)Ç�ÕCá�—Þ†sRµ‚*Œ#¹¥ Ü*l•Šá Q¹9±L´Ða.�Ì!ËL–YÉ9—åaGÝ7gxꆯk¾�Y’WßßrÂtZÔ�É5˜ý 1JÌR·ï�H\öÜíÿ̲Õ!~5>Gl†/^h·É~¼\G¸øqþ¾GÀc¦u~"§_ð/© ‹Í~0ñìkM¡‡è‰({Å¥¦T#‡ D¢¬¨¹bÙT\èü›¢÷¢Éj=ë^áök:%ÅãÓ10Ú”™:B&¦œî˜&»î4¯›‹¹é"YãÙ´>y ë¯Ø*E'Ú¨ ãoÒþ/o6¢Z^ꀳra=ŠËjZ&J�œãþ�öÀEïƒ@=¦Läi\ãæå“5FWÒ“âõýÓâÿ‘˜[ªna{t\¾ÇàfÁØ þêo=µØ—Åþ� ~äØvœ8ÈA›– üNæuÕ表¢êŠX'˜’Å‹«I63Ø’†«Ãno©ÚèâÿäÚÕP6A¢+lŠ7ÍŸe?2Á NéX|Mx­·ËaÕ^Yšú+F\ž£@^ƒñ E!gÖŠE}ß{t¾[»”“|}æz£èo±KsÖØ'¹y�È{¯§±‘Tð„vfkKb½�¨ª¨­Œ§ËÀA¡;ÄN¢d#µ!P“|€û{qÙ]ß±a¨(b„ˆÖ¾îW4þ|/Mp™ ó©¡Ï~*Ö1[Ü ~Þþö�™Hp�e4k\²K Ú©'ã_!êÃÑŒ–ìî 1ëý¼ãا²¿Øösã“„ÙÜþ7ñô(°`4O˜ðs¤yeJåœy…Û °ËO‚ÉŒíW”$°{¤’N…YÎ{…ªŽ.ÜfI&g‹�ãµÏZ<^o)¤ªÌyNKó€H�õ babbÇYÉœ1¸äŠ‹üŸÁ˜V™+OL´{5ƨ�‡ÿZÿß+Z‚æõ¯Üõ�Éi î´H4ƒÙ;hÏžP6à‰‰ì˜\ÈÄ4O[µ8é+}TQñ8•/`¯¤µà¿ÝÞ“–ÖtA‰æ� ¤bÑûm 8ÿx¦û?¡õ&�Ñqðè{ãz WqVvÝ2èÚ\á 8Ùµ+Dò@„>vúEãjåþm°»òðk‰h)ôQ]pÐ��Ö(è Qå ­ —9Ò´ ÝU€iPzª ÃÖZ7V¿‹2²qD9vì_‡ŽÞüY¾DBa‹‹’É+Ä·!¶\õI›žùëGïý|ï%!dØ…Ærïç.í[7:³}^¬sè²ñß‘e�’¹mwÓײÜ1’lUC°½î�(Ò|U"Àâ)®­‚’ÿGó¹±Ëõ´[3§óû¬W›£b¢¹9dª.ÇPÔ©AâÚ…TG{h3íVÿ¡½ŸZWÚDy'–w÷âMqÍÅ߃áñ“O“èç<Æ do‹ÕÌÏ�}žµ/ßïEl`r™|(|ûÒJØl�}ûÑý;Í¡½rÔÓDå›pø�Iý“i„ÃM“ÝPvž¶ Df¯ì�}Éê+¹Éð×±3N®‹qµQ²Ÿ^ÁbÂÊe󦾎“¡Œí÷6”£6$-e(õÎ{gWóýUšïŒ'@?¦+7ˆ¸~åC!Êúl²!¹÷ÖeAåÝš…Þç‹�æ…E«(œV…¥?F›¡�ŒŒ9d^ž`\|¢çdúc|”‡¦ 0†Ž :0ëê�_"•Åg9ØÃì~øÉª]\·¸a现r|cüê¤ h³þÚêâ”/và¶ûmún¾†…ü‰¹§ '}$$à úAg_Q‰BÜrŽwhgêÏVö*\(ñ8 ²S~k’3Šãßzå)å3Ô8Īp˜…À [8 Q;¾®ÃèkI&5�5MòI8Ôæ�e“– ðƒúnœèðŠt+s"2Ü´mM¾·šnŽEJ{¬ xûÌ2ºeÃøÚê%ü#}ËÅö×È8=åÉ&ô,+…2Ñq¥]È…éºYàŒ‘¨ò�:ž9ž'ö=É�±a±7‹N·ÙA}Ú>w%ár¨ó VÊê-U!3¬ Ç)@N"0?Õ×b³gôÕOoòXz‘V4YNÈ{,`…ðþ5¢÷ö—]¥Cré{°–ƒÃn—lLDk28"}Å øŒs†®ÚV7.Æ|ËÛÇþð«*3¥¶¶s #<¯¯-7kø g Ã_;õ{¶ë—h^(ñ½sâ…çǘ>\1r)&ådcDÇ©¥8ïmdzIZSàYfM:ˆð³Þãef¤Ýèwž•²2°?Ì’A8m‘!9xÀœë8.0doIU5f€_bú&«NƒÝ–:›}çú*ÄùÉU7Hº3´^š[rT|WJ}e6™erÞ€P!‰:§|Š’Ì8Ä� }úrØtÄÎ3vOÿ!¦„_Ö%å 4óãü§pÅ»ªž½¶¦Çš8¶™¸<šâøvåÝ“wñ×�ŠxñuÍæ;Ì]×WN9É…?õo<þú.Æo£rkD„ÏD ê>LFîPÙúßxh"r³h$Šé— |O– ±Ý@Çv§Žœ†°_çޫ褸ìl”…©a8Uœ=)Ê(Ù"k˯€¢ó„m7x\þjA„ˆ¤=¯î«‰œv‡ÈpCÒ’µ*Žm)rpºu-È_öcdóÊ9*ûŸé?ý-¢(°«Ó§˜f0>#KoŒþf[Æ[¸�-±åfÎÄÌ a_%Ì*ü=þóÂí7—¦Ò•ˆMN‡øïáøô¶½YV§É"Øn¬¶òäDÁ'Âg╈6ŽÈZÓÀ[FY3øTs.ÊV<�‚4`y`Ààî"u‰KÎòûCŒUˆJaÚfq4gJ\;ïŠi¼WVöOËdUOqëjm5„xW^t°(/ 9Óà-ŠWxÏ ˆþ¥ÑEü(£õG”Ê{•2shTùN�÷{oÇ?…ŽCþ€sÂ]“p)+ …XÕ¦ Pö±çHüM"‚:Þ÷$$²Þ±~È%A̰ÖË & Æ�=%zÅ3S§ÿÎ/Þõégru•ÇÙÌMËÐLÏtÞžDOL­”ùyˆäG™Yž¬^šf2uXv«Uÿ–+)–Ý®†8}Íaàæ2}_ÅQ „óàð¼ËïÈv¢«~`1Ü�ެr}.Gê©I:å*®¯°1‹ÖÎâo_’{#¸èäd“cãÄ>×X›øÆs!wïX¿Y—b*ù�jæïŠk °0ar ¤´Ô‡>‘r.:JÀnz` /Æ- Çvx)ÝŽ~v$PH¸1D¸ˆáÆS^Zi¡%±�6 “ Liè%è!»p:{§;3TÁ‘fÕ¨y!BS~ft5ÕuyöÁo®¦Ë«*=-o(©á¤ÇÈ‚EJ–ûÊ�"FÕ�´wƒ9°8vëßÞÀ yL±\Ô¿~Aê!) -‡Ðø<»oî}¼õ_-ËÑ<†o8Å.}§ö_­Lˆs\ºD=L