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— �Û¶iK«V�ÿÚ¶mÛFú;íÌŠ‘ý¼m»;3s‘­S§VrÜݾˆ˜üc²uÏÎ + OŸŸ?~îs*M^ÖTBñ³Aû¶¡êè¯<ºnp°’Õ».j¿þª²pê2˜ÊÁËÏí F/„µõ×ßÛ›®åZØ[}Ó¡ÛJáVÂ⺫×ÿHb÷�&ahÓóJš ›ÝôCA1¬=Ú( |÷qMauãÚ¯!{«Ðø¬¬buKY'(BÁl Q †BÙÿeÿ—.Z%¹„_%g~ÕLøPߪð¥n—O�zçãD~šQ×[ÖŽtjDs“~�iÎ8áË¡ù´èróÆq‚pºáxƒžžhM0I~Kå@sÞîèØD>m¨œhÌýª®­Á$Hø²©ÉŒ¦´ãËÑ;ÝÛD¢‚Àpâl¯ñ]«Óù×Wïõî^Sd„âÛ•ë¯éÀ‚šöíÙR"ˆ”’‚ÊÿñPÁ®f‰�H"µ@ _:"£à!ET|:"³ &$‘«A&€DþÂ:VP8 4 �0�*‚‚>1‰C"!¡ùž, ²€j"=Ïò¡C‚»£Ñfú�é›Ü©¯Ä†Úz€} |þ+ü—üÏø}ßGßò½@?Ãÿ@ëôýUô£ýÐøZý¬ÿoê͘gÕ¯ñC±»Ä^ÖeúÇå·õ^P~ÿ9äwû7å wà­õóŸh~•ŸÊúAÜqþsó3šŸÌ}€?šÿ[ÿoé›ý÷Ü÷¸?Íÿ¿Âÿð ü“ùÿú?ßá?ÿýR{ý¦ö1ýWÿÎbëžù®Ø¹òÃÈKæ‰A'³ž&x8ÀvÖ1Ó§žf˜®eš=êÅFNã^Ÿ§^ÒÐ˦|Jð¤¹!aGª¯2²´—œ%‚Ð^" ŽU?ÀÇÁIDœ*RÔtÃ~jŸÎ„ôµ>‰¸g¡[ît­Jø¹ª%Ð&”XL´5ÊT{öJ‹ßkaõ¶ü†ŠÙx¶=ò$ÿÏ�q?KÛj£6ü&R3fuÎSµld~xû Üs׸ …WÌz»Ø]ÞÕÙ’=´&hÚš•€þô�ž¿1Ëûlƒ`jÜ›"Ÿ2–ÑœÓ/ùÝ)ÿ·”å’¸sî7ˆ†œß ¼v§-N+ä‹}>M¢ªÂ]Ù}ôG î8Žž„…J› íÜràê¶R´d~Uî8*M¼¥ó¼II­ÓRî�›�½ÒßÓî5Ê×f›§þé)x¹Šˆb)ºTf úƒð^êEc"È]¡ ÌRûÿ¬¯‹`Ǩ;«1î³w¡ús~Î,þ}áDŠ ŒWÿáÓ­:‰Th¡ÏaÈùMÊ¢‚LDZ½WÐÆo úà§uœ‚‡5~Á»q ÁQ¡ßæ+–õIºõD§4ѾêT"ÏH"%æè%‡Ô $‰ü*ÊP û0ß—3òr;—�]º �³”}H¡QÀšía³ü<õ“ТUc轡u¼ $Þ#HÒ}÷�¢CV£ºF-Q0¿X4>¶¤JÚ»êµhuslCE¸ºz�‚“jÍü!üg#ð]=� š1€Jå'f@‰Vet^)�FûúÈ#qŸ“×þô�'Šh£ÇIFñlf‡ìÀ±ÎÄ�™¿³PSxî¸A.so70ßë¿ÙÆ »âýñ¿èwë†ö&¹—þ%BþÎ(R}¥6M¡<îseþ…θ8ˆ!|Ë‘®YÚàà«y½ÐE敜 êb©Ú>v¦ö½%ºžÏ5^Æ%ù‰�«æV(Ûà›®Í¡o€‡ Nýß‘ÿ'×P¿rw: 5òü†ö)�<ÉéT&¯6Á å›õDÔ¿gÉ ÂX?ØÔGS¥¥t§0ú{îêG¬‡baøí?\ŸØ€øjƒ`—ûÇ*L¹<™¦CB£>Rã2Á㑌$Œ—ºµŸãÊTž¸Y§a(8UÞÍ?•ùÝÔ«tK4cþËäfŠf³žiîŒþGÀ�À½ «Bƒ¢UÏìÃÝ=¤YYéا "@m±ÄšZwyÿÜÕ/ÂÓϰ%2Ûz@Ù‘•…Á^sv‡Í­WÇCJðÆøÎà�}—@ì¶ò¢YåZÈòšÄ»Û�Ç»NºpD«>Ñ¡²}í\|Ä9¿iƒw×e~ö))wáÒZ¿ÐÔ'ù3À©ûÄËîÜfÖï\Lr©¢‘à˜AÝñ°=ÑüèûçéÈÑQ�G|{Š�ÿêPµñ?ûI8T°–pCæß Õ¿A9·­!±6Y¹¦MlƒYå6¸À°W7Ša ðÐùоbËÚœ ‚ýïY•i±/RBÔOÓè¯#YFlÜŸ@í[�—@d¢�M¼øê†i_ê‘—öä#ѰB;÷¤‹ß�sú"·GÆ{1¯ÈÜÜíÙzèÖѪsíÑ@tB "´£—+"Éù(•щ�v…Û� ˜xDXŠ$×$…á‚Îê¯ËÕç�B:ÍãÎ~$’ÚÙÒŠ‰†S¯ïéqôÌÐÏ?~Ú’Í”AÂe�ë)AN$»¶¬ß ZFÓ¾­‡¾UœÕÒ§øFŸ|¬TGÝs¨)Ã’ÏÄÈ’û“ï×¥³‘âfwÊ5³¸\Ø~ñåëkB­kxI²_“oä„å-]*ËW(ª3ƒ[“Àå_©9xAOÚïŽ}© Uûîw¾åÂï,ƒb6¯EYÉ52¾æ\$F€¨Ò„tîÒ_‰`D„ce‹W×� X;öQËZ˜ÉbÂç`ãGDyžÑ´ü€oüUòóK`�ú`eNøcn[¤•ƒ8Ñù€¼¹d.aï6RªWë·Xñ¼X#ÿ†jï-ÔÿÁíÆ•§†8}›-�Ûg�h>ÿ(¡Õ§±‡é�௘۾àé1ñúd­¨ùÉáðü}O7*Ë:&h%«ã0CÍa¯îo89DÁ‡RßU-JšmQú.Ù,ÐÝ¡UŠ{Ê™þ–þ¬ãJ 1#ú–¾ÑÑÙ0 ößLÔªÒYùÚ‡‘„•ÇFD@hkâ­õ$5µŒóúáFõÞ°ú"\=ßNâGÑ‘ó5Ú´Ò톶ï†^–:6@ñÁhY¦iPñµH’ de�áºFÄhôWnYw‡Å!ýã„·–’¯R¯ FAíˆ� 1:–:«.èVd¨yn?íx®ÈUè•!cTíYÞ9”µÊ7ï'úÅYØÖˆq,§´„³¼i°H6Àž¤ØÉ ½P±û¨a=U}XvÒRQ”=µÈ«lLÆëškÛ€€G]Äøê6qVøb€¡ùŠº×ËŒ-uüÿO~ß ?‰–u³6¯p›4¢33f³rÇ7¤Íôls%&»ÇZ2¤Ò¨.W¦ƒéoIß åÊ>æ�ñÄgÙ1Ô\2Á÷ ¬  }Õ‹ÿ.þ_T$=Ñ¡/eÄA@ù¦¿kϤÅ×r ¯Ø²¦µ V&ZàfžP$»™0ã`•Kµ\l« auýwSn¾