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/jpegoptim" 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 (39) "Command "/usr/bin/jpegoptim" 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 â°C�*‚‚>1‰C"!!j^< ´œ¤Oîîöü‰ü?Ü/bkö+¨ïrÿ¹þñí_´ß˜ú‡{OüÞþøýûOûî=;n½hÿ±ãïê¾Áÿ£åz¥ÿáþÓÒ/ÔûÊ|ÿ8þÑÿ7Ö›Ú'î/³×í©¤ªøfÀþ‘šxžý”¢3Xù!JÛ.ó‹ü�"˵Ϙ«çü™ëû½AšÁM YÔ;,/NÀHÛœ�íFAP¨KQªµp[Ãm\Am7Ùƒ¾°ÐcqÃ[z`Áˆ7NÜ Ò?žDÓ‰=15ÚDÉ.Ä5m�g¼‰—Æ¡!cÐD.Á/¹šáo_»LÅg1¼œš¯¿ú̦=¡Ño蜧/,VmÈ ªw®™JkÍ·Rä Š$žut(M߯&É&’wñú‘‡¿Áß%¸^à;ËHOª¦Œ)Ï”F$‰©ÎΪm îÞ¿b†‹BÀ¾Wy¼°Ö«òÐw™C–·ß?�œæÝ3—SÑM$“dS­¶!¦&Pւ¯q¾Vj²Mܸ}¯3SU³)Ü;o翯yL27}ž~}rù?GV**cØ8Þû‚‡�õ#‰ÄȽH§}ÍüH§M”.é¤~ŠÝ††Úù¢ˆ‡aš{Ì({·’…B¢ßš�ü»W/mçÅÕ;­«}!qEøÉULeÖº>¸ß�±:åWó?2|<0‡PN>'‡ÌÉþÖî·ªÿíjº}Àšô{õ Ÿå”þÿþ¿ÄO®ûR\Ïš³ÈÅÊ,–ÂÝžiPhc¬û+oOÕ‡«U”¯[ÝÁ‰ZŸ?×¶½ÿ ¿ôÈ òeâL‚Ë1ûw?·PCÅù$'µ\…/tâÔNˆ„Å)¾’¾·Þ¦¯M®Ð¾Ø½UÕ&ËõìÑ÷c¶\5ƒSkÁ—+B‹tDBÕwc?7™U|�!F, ?£ÆKS(Ö£Úˆ£µvKñ‘¸Êô��ó·.g§¨h°“¸À“;´Ô@þ솵‚"l"èç.*«yvNØÂbäèÙ¡<ÄmƒœË× ží,ˆNV6ôÃçÃéW°ø=$2*¦24HÃÝ/3Ó·ßWÈ1ƒÐüXH‘µ‚ޮ̖MmAÑ©” 4€Õ Ïþ¨Ô-�·G„ð—Ý£:GѱÂ/CÛÄŸ¶^wz”_7‘’+®ßÚò9eM¬EuqÓýò'Pb´OúÕ¹ÝÀ””ðEAÆÁÈáaÖb?T#ÏÊÍ~ÜÁh”¡\ªâÐIã$O”„ 8ââk k?±ÐÊŸZSöÁ9hö£š£— ©È?˜Š Ö˜ãYI»؞+:µ�8�gÕ„íŠø�ÌÌ{ËT$ Ï%ÿ‹f†ƒewÊÜ]þqÁ8§Ö[�5>LØx€®õÌåV·W›õBÑKŸ7¹Þ'?6~ÞÌjzSË_cñÌ�.\$ô�O ÿ áR Øù‹üt;ÌçUئâe2%!º";6Xrd>§»ö ‡ (\¿gJy!tWîí�N Á†Í‚?òŸ§:¼ÜMïØÆÍ"F d࢛ƒÜ®pŒCãð󉑭|˜¬¯¢ºóº#q ö[�æG ²Æ ¼l÷ sçÞÇßÜOßîÞ_ᄌ!‘û‚6¬l$Êh,ƈ ;“¡ö�6·bNSlæZÒü@ �fävŽÜø"Ü÷b+3ÀŸo×™£uW#s^6þI·­<¸/…óëºßDÉÝ$¤]-‰öÌ»\ÊX©_csH´¿šãJÎÃÇTùˆÎv S 9 f`®TˆEá‘)X•ç5·OÕke[¿gJ(ˆy&�X÷3Qøƒ^o,‡oksRT«D�*ãâ‹ =͈1¥IGí¼+¢¿�Ÿ…´ñxŒ‰ëÿK¾¥²ãùbKB’/Œ™O8êM nâC¿0?Þëð2 w(‘/S|ÿiÞ~ œJ:¾ ÜŽÓÛÂdýq£ü!b¦dðüÞÉyÞ®ÔžkÔ “’årÃá;:Pä�¾ýás ÂÖZéæ`=§ª•s53u(Øl~sZõˆz}pÊÙö´ÓÜgZ¹Öƒ^]rÒŽÁ%·¬¨Ì7º˜òɹ@ãÓ´×÷Cà;U:‘Í÷éëwî´šòh�ÐÍx±°^33+2Þ¼qí»ö¼†r±‰D¦Q3@ÁChù<_�Vb›Ð‚¶"�ŒJ;×$0¬þÿôN½ûUUHâu’/O›˜µul ÿ‰KTi:(óÇÔãX@%¬%ölª¾ ²›øHÁÜO.gó_U Ÿ[Jñ» bv{Ä+@’ô`Ê[ZÜ�(ç‹{÷ÃŒ%_;ºñ¿j$¢�Eð†bôŒªØ:xçV‘»IñdÚ‰…Ž>vTcRž—Š oˆr«K‰_ד֪N²µIùã:]#ž1¨4A¯À¬dºÉ°ˆÄZDÒ¶0öä¼Ûgî¤ôDEUñЍE<¡Þ¼'£¬�«lý5ŠG§K”r„Ö†»/ÂH†:ÂHÆÁOÙvj˜�‘ rÇc=ܶ–>$F¤Î^3?ÖÚg½•ËkЦÓ¢i»Úv�?øH|‡ºøhÿŒÂe þN¶âÍ}ð¡*6“ÑXÞ:CÕëÜc<Ó†öQ–¤Ì´â0"8¤M nùdƒå÷©*|­6o¤ÀbBŒæÁƒ/s6â Ù†áDšPö¾¤vÚíÓxÞ¤¬`-;hþûnø 7§ãà6¸ŠÂ_ÏYH²R<ØE�ðÇø«KX,眪etâ'žæq»£T^ˆ‡é¿ç²âɸ"K �I•ß~–~ù€yÉÿ¿˜0ü (†…š_›¦mœéàÕi˜ìÿ­0:ç%Íoh×w”ÒžoîÆVòO€øjºM¸Úú4S±Š¤#ÐÒŽßñç>ºÔK¾öÞIì>Q¾RTmêþTÓµ:Ô²a#8Ä›ën_D¹­|eÛáivÔŠ±S”Š_øì;àÜ>’ÑJ>8Ì8– úÐk>îÇ]¤ß3â<È`ÌÊJ.ã ”º |gAÀBÈXìP‡jFÆÞÍ]1É_|,Z•©ä®™(ˆíŽ ö¤_~Ö#R¨±cŸ›œîa¥ôt“ưá\3>ù/×YhWŠR=Ó3�bš$#õoæË0¨«íS{$  È‚ÒâÓjªT\~<‘“-âZÃ3íö¼��cLÇl¾‹¥-·IÊE`òg/dÂýUÙ¼<œ€Ù'ÞÿGƒ"�­ÎÐ`‡%â -��|' XèugVMíñÛ°.TÈávýÍ…70Ð¥Ð7øE\‡ ¸³'AÙß…mìºY”ê [�¹H­J°Û[Le“£…—É×ÐÏC›êØs¿ � kåûHr ƒ‰k„ßÎJ¦•…µ“ê¹ßÁº©#à|€#î"w¼Š|RNVœÎ¥¨“g{`}zÝ_Å . Òk…g†wž…Ø%oç ÿ|„ð¥�x}àýÇ�)p(|Ö|ú|ÔÝqVN"•¢­€?¥Ò3÷>¦OF¡:‘O¥ynXûùQýÑ^ºö÷�`„‘¹)Wý/? çÚ=º>÷’úÍ|óÐÓÏÏÞpÀ$ºÖk_Oþ/þk(89>ÝŽ’M6ÍK½\!µCâ—°cWÓ÷¼€²À¾#+8n7_áòôÚ Î–h c±N#¨›~ ?îú;9@‘sƒoGö…@g�6wå8t/À*(F¡ŠÑÆ„å@