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 ��ALPHb Ål›!ÛúSét&½­Þ¶mÛûÊǶmÛ¶mÛö¶m“ÉR:�Ê|ªêÿþsµ/"bè`ô¦Q»“.»ñöÛo¿î’£Ú¥ E½®y¿˜ñ?gÅÏéf41�Λ_Áÿ½bæ)MÔèòì~vlW?ÚÂhP÷Éû\^/>f¥e¿v僭Éý–ýF:²v³9ÈüÕW·¹ę̂zÌåpg¶ÀÔn>‡¼0E”Îå°_.àIîçÀó+ sNï…¦ÓveM,Ñ“,ñ*,ÊDìm‡¤ð+˼I¿2![SÑ“,Ôž‚£Ù~)ü«�1ÕŠ©èãQ–{Šh½ wQ4* ÚZÄt\jâ,Iù(·J²Ç�øU_b¶¨KD¥»â曯8d@Ýù¢>?dP}…^×Ì.ãÌYzÙÜkúBKû¹ŠÁVýxH’7?gÀváˆpjÞŸ3èìîê�´û‘�ÿØ&ˆKúÊv´YËàW7óVÿW†?³¾§ømVðÅÈÏ1Vƒl²—F›Yŵµ}\ÅJ^å¡úf-v×vw«yœ³è[=>5®š•ôØ™ºš`õȹº‘=Ï‘yU“‡]}¯É»ŽâµšÌ4ÿ[jòµ#ó¡&Ï’ãÇ5¹ÑÕIŠØÉ®úåz”up•lÖcqÁ=¨ÇÝä¼[®EÞÍ�ùT‹��;–éPÕƒ1ŠC"!¡‹$ø   H î�„[¿ÁþNto÷Ô¬wƒ³û÷} <À?I:�y€ýªõ‡þÁúgîOü‡¨÷_ó½`€¬~™>Å߸¾‘ßÿúÀ8 >€<~9«KÕ,ú”ßD/÷|�ýSì ü«úïT?Ú_`Òó ÿ3ß3²¢8ò­l‰YY“’lH�¼Kf«”¯L)9. µìÅ,=h¬$q2 chÒ}ô=â™EšÔ÷ ^\§óš@ÓÆÍ—°ÃKóÃí™iùä݃’Ø»eaRòß]³ø£Ì‰¾›hQü¨0æƒÐ8z %6ÄÀ}µB½—¹‹9­ç¿Ubþ…H; ÁìhJô9³¨wœAíÅŠËoæU1Þ@±‡e¾8m˜AsÍÝ¡®ù�ã-©>*Ø�νuS*´ecmëºG#»`uó&jÐŒk”KN?ú–-‡‘ß·Úfkº>°m¿Ûf·¬—L÷£¥ßv’°�þþÐEÿÔ<ucg¢_Ì3©-Šò aõAðT�|„/Õ3_Ë®H1Žu:¨¾±ê ~¿ Jmê·]äáæç‰Ý=ºdŸ”�©¶­-8�±êo•–±_»€ú?Sß$•îÀ?ôm�Ÿú›÷ñêng¿·Úº ãUåOΞȃªz�<^_°*|è_êŠVÉ»óšfØ�Û´Õ\ÕXbÍN »¨ÿpx­U†5$Â<¶PVae¸‹èb‰˜(ÉâOäb;Ê,ê™î\pf`÷¶ù2tOޏt¢)%×´{�~Û9—˜¯Îw•+ô¾Ùï$ ®¹bžéJFOõ«iú63ØL”SéÐÅÖ�É€ ‚/ĵþÜJë_¿ùvƒüöÕ ]ÿ[~›×ÒTÝ–ú³ãLÎÑ)Uøß.L0ö륣Õ4G·Žwneð§¶c–Ã÷ -Déç”óz@‰…îm¡(Üg.»)ü�œ™ÌRH{eÊ€í›ÀnPoèÜ…\¬³�§ö7±‡‡NYÜÚ39’@ñ;�Þ„öç4HÔ~Y‚ ˜kcy'ÞA²!Kýo  þ±¤zbgÀ™ß5òý¸Fúu^7ijðª \6?J@»£ØµøË/rÄÂO±Nz¨±ÀE7ÎF/¤yè?RI!ÒÏ~ª�…ÙÛÿßÿŽq�€W¸—¨ñFürèvÆ@[¢n4[g@€*Æ!Ò@§>;Š¶Ð¯fû©9Ä—@¤°–AZ;Ã�zñŠ£Êi¾æÐ5š™mŒŸ6ne¦ü©¾ï 9Lï»@¬UsªÅ­˜`q:½(£É˜H¢óòüÆ—¤%sŠôËÏú_áÜ5)ê8ŒZÎÿïHòb8=ˆúl:eÚ– d‘Û/é;º„o`cœ^,*–¬³Ö=N§ËQŸ _û¿?d¡Ç2}`ºÁ7jbhvÍÇ"]õ’>`VÉÏKÏhàžº _ÚØNðßX¯g^ÖZFG6–}?(§—< ©$¨ †•^þ€b®ÎÒªýNvQk­)¼N´~œ‹ž˜J†!,v!ÉÆté•ëYÜN`®Lý·ãS–.¬_~]=ÂÇ}m­#ã¹³è{�=êU¨\Ô O´ÓëüYÕR†¸ÓªÍœûP¨Þ˜?áŒ5åhŠF‹¤ÀÊ?É�p²�yhµÊsà“û&UÈxq�op&2¢ãî¨8fSúý>k¶`mù^Óó»A—fÿq1ç&ü%™ŸâŸæ¹G„}¹�m�úpƒ2 Hÿ— ž(�âIšЬ•ÏcæÁ,ÿ´ÔêNÛÏ�=ˆ‰òÓç~¥t§Ì·ŽqÙ EÈÖ4#*î «2 –(rŒÂ;þ+£ÎQX¶™‹�ࢦ³–vžÇàMêT­ÿË”îˆçÝ×TyS+›rˆxšÿÓ•-¿‹G�ÊëfÙ.äýÂ9ÓÃþû`�–ÄâXY~ ”…3÷¤V•Ÿîð½Ñ¼F샾gst-€fõùoly«¼ºñ1í‚3s2 Ûëkmƒ÷ù¿ÜC\Œ¿2 !ÀâÇ®Á;ý–=ú2Õæ#|àÖ5 vÐ{KÛ)�HÉHŠä©œÔúœGÉM.W;l¼Ê»“å�;Ó¥~ògéK²(H§íUÆM£­Èºn€Žh�<Ö‚÷—”