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']
RIFFn WEBPVP8X ��ALPH… †üÿâ8úñgXBC!,!çnõ†JXÎÝýêîþêÜÝÝݪa·–º»{—º„Ô‡°„! Ã÷dåÿûÿf^"bèÂ×*žJ%“ñXD…VôÅ�ŽS<¼}åÔ&Ü�%õ‰‡Ö½Ê©ßn¶kBçúÚ{ø—a7ZA b7÷¹?eq»×.À;·¼ƒ%îêOΨäsÊ€{¡×ý¡›’•Ý�–�ab€s?$©{´^¦ÄG'¥ÅäN¡­Í}Á?x»�ôv´½¹�’”‡ÔHˆ-D{�~’Pù!&`Xµ]pû)Að§_l\â84:$Û³†©/ µ:À’„âÍfu:§Î Q(ö0I½æk‚7È’„•iƒb»¡Ý$ Ûœ›Áè ±$ùŸÔ“ç€3HšG™’8Åo�%Ü^á�3@6&̘à1¡:@ ò‡a}vg€ ”Ò&D§úlpû)9øD`¯5N?AG/7 Ñ›ëäà#RgŒÀÞ´œj¾´o†÷¤ÌT|0ô3%go:(ò–7Sáµ xQ :¨¸RŽå›I²\‰ýfä#¢>á²×±1I¢6ÛLÑ‚ [¯$Y¥ë™j~áó7fHX9ËD¯ñ-Ï�4ÿf®§]&e’ÄáI®.e¦Ù) €I\±‹??FAð‘b¢F–©I „élƒ¼™ †•lé²¾?l ˆÃl‘ź¼o¢ê =¾ÿY”ôßmÚltEKù»1f³Ne‰=¾_K¥>Ãy«d�·±ŸÅG¯i q²j/5÷â8™˜)ëÁì4CðZ35¡ÑêSÕ„úÚðHÖ…ù‰Ð  Ú�¯ �è^m˜Ÿ šâkC>—õa~*$è5äS!ÛÊ€ùµá@�V�O†ƒ½Þc@c:èv—ùd(ÐG,(¤™Tn̘:KÞ¥M,¨O°tXízž»üzqô´Ï‚B†!ׄ׉Sßù,¨OhË•ÐêÁÒ(³�s3šrMhãæ¥Ñí.f'´äJhóÖK¥Ñ”*fg4äšÐÎùiiÑz&Ì�·+WB»W¦„ÑÅ[™0;ÓŽ^ûÑ~ÿ�¸0êPdB!Þ¦\ :ýéQa4 ™ õé6ôؽÞ'aj˜Ç„ùñVrEè®~£dQÍG>òµ-ô8ýÕg-Yû‚ óDTW§;EŦûLȧ¨ÇaðVG(Y”häÂüÇ�ƒÛé'Œì‚ÏT= þʃJÕ62™YªFÑ¿|q(ç„Qò yØßIYï¸âpøZaU‡­— #uI¶¦„‘ê±VêmaD™ùž4÷fq}±, ßÈ#ëÎ㾬…@tù¾¨™�@‘>§$ ¢NS+¾”¦‹ƒ‚"�R½“Ô~y¿„⃨*ó^Õ8÷f,DÔá·ãfíîBl]úlÙ ÅS@Û/on6ãÌ[ îD��Îñù….»=ªq…£¼òI‹‚ߺ8÷ìꪦãoõ°),Uìægçnß_1‰B¢!![L ± %L¥+tÒßà;[.oü¼ö�µÿŠü1Í^�=Yöóøÿv°¼À?F?Öu;óû/þçû·»Gõ/ó?ã½Àzcÿ™Ö%èüSû_¥Wë÷ÿ‘�ÜÜÏf¿þ]`C�]ؼ¦µg�Ùçš7| ÛsSh-‚æF”ã´#j&E±p'Ø ÉàÞÍnwFå¹J’ã(?øö§ütÁê!•Ìž²ìqþÁ ºçØ!sM ÁÔÆÅíÍÀ–q–bS$|¢Ã9ƯÝ9¹¼#SÉ$û��é„“©{Ðh¾ÔÉDýWOÈôŽßn̨1žõ(ñì*#bƒð(ÎCC?뢮õ]�٪ͅ!°þò=R3ÿþwbX—¦u™=–øMí2½/,1±~lÀ‡y8ƒä�xÛe‰•þDËŠ­·¶ÓÈíÅ—Ñ™›dH ¡Aæ£FTK`jùC üónÍkP;ö¿¨³Å/ýܦò«C°Zk÷ ‰(ñ·ò´ú ¯’÷ûñ>¦þ­ ྂõln•?W éµhæ×Ü­,ßÉC[C#�jùcéùN=¾H+u„måÓÜ9…¿±ø¤&¡)„ ž€W¶Ú•PÔ$V¼'L ûPgîïa?)¸ÐãV¸sÄ‚œ/ ûÏUZõÞÖýऻð>›ßZ˜€¼ÎMË„_ü7êßú²l¶ºª­0¾i3é›ÿî+àßBœIß™«9m)É}q›jJKá2†<ÐÔÛ�%_Z˜(_„!gU{*x¹Lè)ÿ;³´¬‰œnˆ *•¤ý]�|‡ém;žxß"„@&Þ¶xócãÏœˆÒßÈE®-LPZªxû�h‚Bÿ›\Ìþ9’©Vrà—oÎ…N̴׆©+sŠù¢*¡Å…w6%ßøÇ+ ª%©ëÁ9ÒýµûÅk)¶X›·ó¼ß¿†¼tìû”‹Ú yKb…ÅÔëncÛîWÏŠ ÁxàcJ’Ï’¥Å]Ã@•Θ‰(mšB{¾í2,4|ÿøó¿þ;#ÿüq}Ö®ÞT8$,Z†Ð8œ™בŸ¤‘O·ýj³›ÿYë+­Ž5nt“� ]× †I®ÖÆØìR÷øRœÎ��Ufâ/(o=$°Nê83ÁrV›1u<ø÷�¾!bÍÏ…Nñ:ìŽæ@<šdL�žKèÅzÝ, U œ¡(_SA®Þ·æšê¬Ï›�»k,$"ëëž õU릤šž§¼ãuãS«‹pp¡XRò–îR胅&~Yÿ(£?7Lúƒâ�Avós1n¶ Ôò¬¿CÄ߆ÿî‹Å"4nŸó,òÕ è�Û.¹jÆí^–З-Õâü�¾ïXè¸Î4+ À‚k;–4 ðWÙÞ ]éñüWV\@JöÖ-°_V Noè‹8tüˆ$]h\aÑ*ƒ¹Xuc¶„oDÄ0õµ¤oKr;Í ‘Æ÷—UU¦,Š Û‹ËË’­Á‡*Õ}/—@ y`X oÁ ŽéÍçîÓo6 _¡€³\Aß5ƒ|˜õÇå"ë']»XÄ!7¬f‘? ‘nk?*[ô_Œ[í¼½’¨©i•Ã4Á×þLù‘¼± qbâ¨ãq0¿¤f:!_¨”�$'Õ4·ëÿØvj�LÃÛÙM*’ItŒ€)6:fójbU`jb“ý~{o6§m@|†©Êt_{;¤ËÓÄ’ÜF©oÿþÍLŠ%«/S%µˆŸ•™µÁšeˆ–u~~+50Ÿ¬}Këì»ôørÙ€µ?OˆçÆÊ¿í°ÀX.MrIÚ�v $$“†Ïìþ3gÃ8­@W¦ãqñ‚ý/º‚,FÞª)ªöe"A š¢ÐÂé5]Õßç•¿1‘rí9ô'þP"Öq