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ð WEBPVP8 ä ð5�*‚‚>1‰C"!!ÉF ³¶Sß †é08ÒtŒµú«„›ëwÎÍÀå�þÞö—õWØ¿9“¯òß‘�‘^ˆö ö)ÿýwöòëï—óþðõGõßÉÏËÞS®UüÏü�åOåß´¾±�ØÿUùð›ùùÊ�Š|Yþ¡êü‡û�ûß𿌟ŸæŒô¯ùßøßùÿå¿u¾ƒÿ‘ÿLÿIùÍþ¿÷ìw±·ìI£Ön X!U•¿Òb¼ˆjŽ=ª®jvïðª(K*"/"8ãz»ÏM1'1¦ ÷fŽG¿™¨É˲í÷ZYØŠqrîðWº‰}!Ù͇k<Âä Z]dÀ“€Ajý: G[YcÙ/›TÚÇŽª³®è¿&~ϨÃL :K\N¡5$K ³šÌÔÍ[åÙ©ÖÈEFîM#œmþ�¨xY‚vÊP†#uBOõ|êƒu¤vo¹ùÒP`ý¬j‘&{¶·„Q±@þú]Ýïìj|ûºýþÇ„¢ÏMîk6>G­ÉÕG†zÉ¢ˆ®ñ0HV˜7Ñ”ÄTfHÞP þÿ²C{IQNÛaݼlmé›Þè‚ òùâ—žcGë‹›"(„݆ÉÓMû"´¥Ñþ¤ý¥Ù ñMÛº7BLGT­ºü*|?¯Æ$ý^‡lNÄG›m±ë³\Û-€YVÔ>ý|Dÿ©Šÿù¸­Á¤îfëdp˃IÜÍŒC­‹ì*™µM«¹ÛÑSŠâ­Eǫđ¦€nüþÕ¤¹=õ?àûj·'õ»ÐüŸ¶ä)‘,ð>ÿ̾ùJ¯r…c?aô¬t"qŸ.WŒÛn%}37ZãH¥ð�¥8Î÷Ê¢^r'ÈǺ«7-Ey´á~Ñ¥7Q¯á­€o#Ž58Ó£±`¿™KZJôÓ¤íiuùk’"N! ÆÜˆËø%ûAÝVp�ÈMìPÍö2£»Ò¦3@…Ÿp¤"LhÀ:» )VÓÃoàáó~.æFˆi@D ñ'‹We‡Ÿ­ Ñ•…M†‰¸*Ê+âŽÍ›Õá´ëOª|{¼$Æ€1YÄ£{¶:‰t®†Á[gáöRâm¸ÈÛt[q–kE…û÷˜›©5ñÀõôÒGËw¤:N¯NVÞì­"T²Ž“3ÆÇ#ûëJ¼\2²“ÿW@!CÈc|Zˆ‹nÀDtXã¿‹µ´OŸ†š–;s‘� ÁYu ÕÛÌyZÉX�Àtìyï�ýgÈêiü)Æ0Ö*ø8in‡'9÷CΟÛX‰|weÓ±ñ}O9n±b`”î¯Jcˆ‚ð|ýÉG‘vÁœ_0¯r22•ûu �8Ë?°ý9¶‰|ËEo°Wðô¤ºËíÑ Çäzª9¶Hj}XâZ/}j°˜e[[�öÔÞÞÁ×”ÊÛìµû`k³Û >FRζ_—¼[é|hçY5[<Ÿ=5'É áI~T€Qÿ�ˆh&ãÕ¶xÂûÜ}­ëžœz¥ö=î•׌DI“E«”ÇûÒ+&å” ~§ÇΔ�EýÞ'.®F�r1Ûÿ¶ð}š¨Æ|ŒBƒh@É´‹%ÞC&‘‘VL‘ÇAC¤é\Ç÷e±†ˆ}z .×É|¤éo@¹ç¡6¾ˆÁèzÿiø‚³ˆ¢uî­×<›`øæ¤ìˆkæ ^dÿþl äqbyIåYÿ˜:ãæƒn$Þ^ã*i6>IÃÌfï?1·LIöš÷ùXäÑâ-¹ÞO-ŸQZ²¶¼„ö]J²Ü‘mŸÈÂyBB‡*òµ(Pa§t‰`ÂÜP�äeºÅti¦š‘dnµù÷~’Æ··ÀþêQã^„YÖ›EwgaEɘR GˆŽÁÀÐx-¼ÆO 71ŸåÿÇæ˜2&ˤe‚úGgu£Ò×}e}{Šƒ ¬V `â×H'ä`yªp™ÆŠ`“d•Û•VÍ;æÛDÙdÆoêñF¤=l84ƒW�ðߢLðÁ�=J¤¥½'¶3ýE†ŽÅ „Šx—„ç¸[°o¯=n¡}#¾ç,/p2³*ßDŸµªTˆeúnÙ<Ë$ó?ÄPü·&þ~ufÄùhÏyÔOÀ�á¥8~@×lÓ1¦Gf ÀŽq…(i§#€Z*äÛzÆuš»[ÿâ1WHjyÔ®Nñ ýüÔ u!›'¤lP {&æFѳI‚êá|­Ò&üMŸ^øG´NlCù«ç]Hhn•£¾’Ò—™�Êè3 ɬ¯î3i˜™Z_f?=ЧÓJs²ÁóùwòÛߟî5DÁÂú !ðå�‡Îù¬òïrW¤uq°I„/]NåUW(g÷ȃG*o®ViØäÙ¼0à*�¥âõâ °Ïé)³Öug•û?ÊÔûy=é}b¡ê š3‹¶æ³ûÑÍõ.ëÔÚ©±.·sÒ(èèjéOù´¶“aChÅ!ƒt¤Qy#Ù)Ñ¥úŽòyƒ§:”A9?s墾×ÑgZs‰ u†@ �ÔÚIV§°Áb6¡,¢7P£.l�¾ Ä]H,ù4÷y9Ѧ&ïrh| _†^ú>yð æ1êŸÚ›D‰&�µßt–êŠF6C÷ÿiÿuÿ‹&ÝV,¸Í« (6vH˨«rì( )à/ã>€ñ�,/ò{PøÇ•×Ó c=ÜÿýxU7ô@L¶í4àuÀs· ¡°1ÒýS‘•C¯õΜÜlä\C7h—›˜~íœÏ~JöPøif.þY#%ƒ[¯ø¯ôÓ‰"vyCw¾í˜ÐðµãN+Ab›¶'"‹Lf`Àðô÷HWŠÅwnÒOŸP7zLPd2ÇTZ¤\ `ä ‚hWQ˜*Ø%²Ž rÜO~ŸŸW·ñ¥5öUbeh²�ûæipl"n ÔvG`?©;“þáPƒX$ÃL‰aT‚QË�Ì“i˜ÖÄɆ1žÛïæe¹:êy¿6¨mÿìñì´¦HgÞ”ÜUø7 uˆ§Ë° 1¶ëLÃI‰ž {KœÔ oª0&—9÷1ù®'H{˜ñ,EŸÞÙ¶_ê­Ýé ˜•ÿû¶¿ñŠÛæá�æ¼ûS¬7ÏkƒÐ’ÎnXÌÿ}“¸nûóÏ Ý0 וÑ}Ú`P–Ǿí'ÿžÑ®W:©ÿ=£\§@,ÕBfV=vÞ&m@LA¿rD8‡˜ý³ã{TÜT¹½4£äªZ‘¬«:"¹•̲�%M)ˆ£�»×¼,Wo£Àá;x_²Éf{³í‹;ëÇ= ó¼Âm�²õüµ¥âd6”êyqF¼ëÝ®§ Ÿƒÿ–£\¶ý¼06i <̇ì8ãÒÕ` v¸V‡èb­-ln¤eåF;\Æ8v&5ÔL ¸þZ|‹¡úý¿V_ à}ž!4éΟ3uRÛ—ày'ǃÿܦ'î~ îe_Ø"Ç%"Bü"˜á<ÜÙ%J¡^_Ì<ÆŠÔ8ÔÝîÒVàΤ›¯S0ã¥8‰E­Ä¯stºj[ý&ñ„h0.4ÃA[øÈ”Ú€ÙdÄœvŒ¶ùÔ&luŸ3$)·d«4YéÔj �¾)ü›†c“Ž^œò@†5ÃÉ´ ‹"5 IÇò1½Ä¨&Æ^æÛ®Ô