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 ¦ �7�*‚‚>1‰C"!!Ê, ´€jàTcxOäOÕþÖzåkãW§üÈþc÷wóŸ™??™ÿsàß_Ê¡¤ü°ü¹ãü³Ÿñ}Býžû�ü¿Ì�yÙŸx'Ígý¯åÇÅ?ï¼>üߨù·÷oû_â½�¾²ôUô×þ/ô_®?ñ?ÀvÀôŽý€<Óáë½%’H9bxëØ£QXMöéZîiÀV+Pêý†�ÆŸïa²aX ÿ#.¿dcè*ÓnôÐò&=„Å®íX]1ïqŠ›ë”þNXµ¬”Ç ©.ÐíˆØ>WJ Ë8î• 1ßpIº(Ñw2”1ðWã×å›5ƒ#K•õ; ³x‡î¾ ¸ø^m‡.ëСÓFË��èžžµÐ´¼.äz!� •UÖîF¡fò©«b§Þ¦EªÜ|íÃÔX[¥ÒÞ:%/CÛƒ‰›OyÙdtÓ´›Ç¶šqÌРÍ}[ ½í˜F˶ޔMyXÃOd]Õ‚xÉóx>+/Å•fhl Nôl’´ -Ë`šÛ˜#ÍÖ¾²˜–ƒw¬bÔäþ”ïÈ…?¡"ÖÆ£Œ¢=_"yÏê¬Qˆ§õ¨}rh÷\þÿôCÞ¹B-ìëT¿dåÀõrF …`JOFÁ·ŒÅ%WG'i59u\¶Þjß:-—�{¶ ±ä9ÃfñÏT+ã@ WÁV–#ì*½ìÍî®EG4Ð_ÚØÂ�Ó‰ÈZŠv³Ç“úÐáƒü<�†µ9?ðq¬!‡½ö?ýøË ?=~ ;ÁN‡¤þ éšTîx?—¢Ú9ÉÂ=‹ƒï,øÎÔ¹?9êÑ.潄ãÙ—i„‰úJ†ru-�¥Lw™� ý¯S¼á{kâjA<ÄÙÍ5‰¦Í#ݸF>‚ŸÞsÆQêf&à¯+nðÇ{)A‘€ü1Ôꨔ�EÜíƒ3ÑÄö׺ÔB`™ÒÀÈ“"˜¦7T] ˆ+¹\à¦ÏK?ƒÞût1£Žõó"µ& îë‚1=¶r‚ûNÁì˜ö1>ñËfë5ŒÈ«�&Ü¥h/ÆþJXeÞe‹f Ð Ís_S@a6SDZ$ÈBNœwkk½îŸLþ£ÙNY¹7*�‹úV>¼…'·5¾™Á?9 >½½ÛÚ0»8Þ>ýœ�¥4 ýÆ+ðF’*ª†yÇ%Ô¤áÊÉL$ þ=nÚ+s¥ªÑF\ÍÖÛñ¥Ÿ—�7-·¹L |Ÿ]+ÈœŠ+ƒ7Ø…W{ë™�²k¡gÀM{P�\àÒŸ»UQm3wz{Ë:œ‡¶ÔÀ)p³¼RÁÍ&>‡ ®©–8£åçÿ’ �QË¢Mräo‹ºYKÏÀDj½.䎪}Cɽ # f—V†Wkµ^º“r*ip:s¼A${éa cD!Â@C;Jgê§%ªÄC+ÝíÏ˽٠O§Kã‡3Ò~S2ë>$µ‹¨±OË<´°›Lò?óÞÓ�ÈޏA–{^\âÏ&‰è£ÂàÙÍF6Ëæ°€ŽÒ-ƒ>ø`D„¨�LY‡#ƒqµÿq\� úÖ\ [šä¡DD¼,Ÿ$¦QÚå.ŽìNÍøáf�²ñÁXt´ùÄŸXÈ)ú/�†g'p Ëœ¿á@;¹�—’5ZðúsްÍ23*šyúTd]éëÖìÀ9XÔ|Aø¨‡&ðá�»ŒªJ̸.ST°o‹Tþ¬,½ßþ¼UKÜÒ³Õ·U·Å]âÖÜiIfB„ta/¨[ö#Œ?g±sÆ�‚®û&4UìèQ÷:¡±¹3åfºŽJ+³¥®|jS k)ÿ×=»ê^ôº»S°EâLxÃ�ç'Ð}%˜CˆÓ[Ê_õ¦l\ùpì,Mxg†x�›âü1ê©GоÖÿ{&ÆŽ_O&�¦¨Ü†]ï9Lc²ðËé°ªéñFB »1‘Âð<€ó™j ‡ »‚Ê›ëÍþ�ækzîÞ0ƒ±càÿ¦µ@¡ÐðRojÿïu±–x·ïðÑ$Úg3*é­çמ%ˆôz€ÄÛ*©fcSŠ žëAÆuå{W&› :ÈxÖ'°\ïÛÛOÂLW¿M½W¨[®KDÈG?5»h�WÚ"@áâ¹Í¤áöfØŒ»Ò�£¼—¦•éÍÝ•Æo{=pÆ-¬ˆ> Lç¡Tsóö%1Q7Z:XU§dÕ\.ü‹+®VòSO ™Ïj{eMÖ…o�å´ßÛäSÙ“,pŸÄ–M.]myù´¨ ]gªDûƒͦÜR~ÜqúT©Ðv]F=íÆ¿.HŒÿ¬–òƒtÄ_Íuýaí¸ˆ'®÷ˆÖâ Æ0ã«›°ÂMJu˶E}Zu†—ülÒðø ’>'.Í~Pu‘Q5‘EnŽÆÌ„Z_™LOÿh5äahFg³Xé�ÀÂZ F}ë•§žD>]Ù–èñ’ÁôS’50”’¼Lñ>µ&Ū�²™g>†à€ü‚‰Ô£äH[‚OSÿ`ؽ¼f«‹À»sØ]ý˜ð+ Pqü¿o�DžQtŠfzE' VÈ·®Ìj"ŸUl'ƒ)S¬{�Ì�”› °Ûkeåq!<î"ªáb:4X†%yp`;凸™^7¥ìÞaTùr—Ã!tÓŸümh¯ƒ§rÈÄ¢7é�ÉÜË *õ Ï5bøá;°égkûu}J�»!Nß+S“5FéXù0¥È&½K�é?häç Ü€lŽÄ¿Ÿ>g6¹ØË¦ ð?Œ#‡šJÇBÛæåëæËu�æmª¬ÂO" È¡‹­ÈäLب‹6qó²x$ÃLñÁ1.Œcbă Ô¾îeDhöö/øˆÃìæž—NP°ˆñÅ©e͵‰¤vç—‰)(¼,æ "�(‘²k½ªr„ŒÝ÷³ü2 a¥”+N˜¯‘ ¹á{G¹uM?d6 h¡+ã½³ê=>�kQgÁÝ´ÿ™p¿rìCΫĂ-2 |EY#Š‹åµÍM΋V�—ðî°ŽÉÞa�¶?®A²7Ü\Ôj(^¢Ì´‘hÜŠ²ã Y„W–:BXŸXòyÉy )Ä?ÏÿdÀZÇ@RÜS-O.É8MŽB1%Fr»zÿÉwѶŒ¾ &{��ó ½Íçï²_+\{‘#åéãd½³Â“ÖÀï�z½®@¯A½�­ã¼�Ñ:ãëºêüz)ó¿f”Ž#­ô¤1ÅlB‹>˜“]#–ÊÈYÐòbâ‘9Å#¥©·¶¾'LðGü�˜Ì͞ɻ¤!Ø‚¾@Ê]¥ S^4 =)à?Œ½8—ü¥cö¾S×Íp5±7M쨿ĈìL¹ø•»Ü†/zÜ{Õ�0è'µ�Eñ$âðF¿F¤dÙ*•¾UIœÅÚú�ŠÛí’hrW … x… Ú«×䛢tÛäõ>É\™¤Þ]/’šÐÜ )¤Vs�Oßz‘¼/–†¿˜m†"ÿ]黌ÎÜd 0,Þæú§!Üà¨, R¼`®–>•«: òWDà©›ºkt‰š'„ l Åv .ÜɽŸÉËÒ>oO¢µÙ-«Ø�wAñX€2°°ã÷m=|Ç¥³'°‡«x×6ÙJÐLÆè… :�Û/ÚU,üPtè‘eÏDAºÜà/œ,üVÝ`k‰©J±Þ÷#©? •!a׊ÖyÑŽ.ùåäÖ QÒ­ô²$Ï]l° ÆGh­º³ƒâÉ'…Ä Òî¡¶/ŠÿsÚ Žƒ`Ì[Ô5 ðŸÉ&ÅrXFåÜ„æ")ÒÛc Uˆ�£9æ] š+�}æ\¦ESš~×%k[È|\wû¦EçÜ"[Sc!¨Âv\8~Mµ‹Ô³+Á£”kåGa* iÿ¨vƒî‡Ð~³“xÂÀJÔÊT4›(¢0wFt}å»°B75gë,®~l‡h¥©ÎýÁó¡F|Dû1í�ÃÕÞ÷fÏ>V�V4"TânŒŠÿ­lŽ÷­pÀ