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 ÆÐG�*‚‚>1‰C"!!ŠÍp ´€ ýBü‡÷Üí¼¶:›þg ÿËþö~—üÿ?¼õ ü¯ùïùÿì^J{ÛÀçßÚÿÝø¢ê•à¿`Õø^´øùÿ°ôïï?ó?Éþ`|†áþ›ÐÓú¿Íüÿ=þÛÿ_ü'´ÇÿÿtŸ³?ý½Ùÿ[¿î®ð¦wK;Xäщyø•NÄ ÍÊÅF'ìÐäqw HY–„?Š«9,£xWŒ}ø½…@é±ßŽ?šÛ+©^µEˆ$_LŸðp7®Ö*ßD»HuGhù½ç>d"Jƒ9Ýçq=§A°|áŠYF„n½ýýX@{Äâ�˜&ZU>ûÙúI»·ÃxL„Ê ‡fåùÖJ q:ŽXrgÈd€®Ž�\‰@ˆ=²OZçç�"Á¡Ç©?Dµ}ÞÁm<ûZ±ï9÷UàÜ„û²—ù™u£:ïxšfq!¦ ·¿ˆ Þ c+_g;×`ñ�¢‚e €`/17ÖL¦Òüe|9ÝT­/I ´Öj¾ÐÊv¼.éÁù7‰ǘ!&E(€ Ì{n §3i¯]/¦d6ùøÿ§Xj>ÍœGY$¤‰#²_MõM4VmØàí�œZó:Ùx.P¯¢`5­ìp!"�Süo/Ó)ÙíÑ`QÑùò�¼È?yº#¬Í d9I×ù«ÀeŲ–/­îéð�ã‹îØ�räð1í�fÄ!Ü÷ñᎾLm’‹e2�:åS"�2”ADå¶x‹[z5€þüà[ÔÅ™fö“',|ÇçGì"£ÖGž—@Ëdÿ�¤ÀÖ¨ñ–=ùgA5XT (X]ém¶õ’GÒ�»$�ñÉLÆv¡åø«·>õ-�\Ž ÿ1Vf0!“ØèMº‡‹¾m´Ó~@ =—Ê”~D× Ù¡L@B¡*£ˆ5b‡ÙÞ8Ýîgûþ“åá(ÚAó¾e‡zd1v“ĺãÜ:uz³I£Z£ô»óŒ™þDüЧYn¾c�œ@�V€æ¯‚£*�I€š¡� �EN+E™RÑ¿.Ôeù #®a¨í©?0Ÿ&;©"cR8È!;½ Á-äïel“4ëpw¨Ú&·Ì :ïqŽªG‹ˆ«uX1˜ÌŸXë¿Ü]üŒ ,xmA/P�I4îÕeñh𓣡ÿg5[–X\׬©uuC¼—íêÃKqç4,JŽý@ò<Ñp?¹hJÃ� +° „9ÿ°ÉF†»ß8·¹?O >;k›´�˜Œ0�Q.Æ¿7wN:9¡­ÿãxçX#g*„™Í¼Œâ뵺i¦òÑ,0^‰Â®R¯€P…² ÐèˆCÔùæV� Ý0çîÔ¦ühH¬Å lM$Žº­›`>ø¢UûûÍt³ß2½ª´öî7+Žƒ!ðç•7pœ^åØ=$YÆ\sWˆnå?í‘\(Å=Ç>O ÌpZ5”àÇ~þB%‹îü Uá|¿>ÿ…Bé2 "ñ}¼Òì‡bHº ·­îJY6¨ÃFød8`¿Šîà7¿ÿÎðj1 ±øˆÐËtõŒ½˜T9�+Lùÿæ2&X¾”³¢™ç Uê1GF @›º6�@IŒU=TÑÚìªya¸qT�úRêRÁ�:@ú'3uz÷–®;ålyÄÉ\Ž:f!/�<|ö"WBÅ9Æ£��‚zî*žîSª/Ÿ ³öq[×` C›³.U~ÌÎ'<Ær"|ùé{´õÅb¹‡îlÙ¾¢¯Ú¿;\L—ûZlø÷ŽÚj)÷'J€EÚk”ÌËF#QÏwjD‹gzˆþßaÜä}�ÛŽí\Õ8%!®c‹â öéuXk B&/éd¢É/±1Î ÷¦¨³”´‚–¡…ŸV_ÉF“«p›žQÄ¿ÿ¹rÒQHê?MóÜjÊu¯ã0kÈ×,ej°ëiz´y'4ä“%Ð^>¡?ÑÉëŽZú`ðo;Æ­Õ¾[µž¬ÑûCä–à‰%2¼5`úòïü+ÿù¿Û{Ô‘æbð¾’ßâ/ ˆÅžGî-}O„»—¶~ì»–èZ¸b¿ Fp½F é äSE�Ø`‚Ô�ðÒË­$?'äNE0�µÕ…úωw² Ó̇4@3?ç� _¥]¸‘ Ò#ç/@]Ǹ.1ÕÃIG&Q<�³|*ò¯1Ìõ°iŒY„·!Ÿ+ûN«I[ê_’Î�+k>ÊÖÖÎ qèÆÇŽ“‰ekÇêj]OèÊb8•=®yW"*(‰-\`ΙfO°M|‰@ZË�áûO/ÿ³‹…ÿ˜JàÍï-¹§Ðòî E¶2\1îR>Îú³*NÊE+ä›y™6í$ö‡ÇÒŒ¯=ÚV¸,0ègf1KÚ ~&€¹ ­.àpNO†úÈýåw;�5’¼<9?F÷ãWÞœMj³Á”¹ù{yÆ ï¥fÕ@xcDòWïI C4ybÛvÛÖ®3b•l)UEQ °g}þñ´[d±+æáÂT[yW‘fì;!£ËxOó^Ô(ñê<”�r…¾”ù@í3·>LIW°Ô& òA“§oß!˜`·it½­N(3å�ƒ·1Õp]�‹ÁtÂBl„7XO�‚ÈbÍ'à'ÄN£9ªáÇ�%&q¨( …¹jÕÿ¯wr.,&è…i­.k.¦cÈó$±–Ñc±F×�µZÔØ€”nÖøR[ê4µ1`X&¶— ÆŠ¯j˜Èzý$·ü“ÕóÅY™ì¬Km…Îu„¯ïô±%o·àéÌúr·>lÖÿµ?ˆ]‹[(1èúÊÏûD÷™®Yb5¶Mx^£ÇšõW¸hãlÃÙi1¼ÇýߤÕIߥ‰#ïî~b’©ÿï´Ï•¸ú"Œ©W[G EhŒ°À£iÍù¶�nø˜$GØ tN©¿�”3Ÿƒ„ï�ôý�]Í�$~æ%H¶ÒÍÓø>x�q<«{Ý(>¿8Êæ'�«»;ÑžÆ3´oj�cÖK†¨ƒ¼�QÜëЇüðJ·]äJ*ýªg—3øxàg�–ôU†“e¢�ˆVr‰Üï˹›’󷚢|Z}'F,Ýó^ŒÂ·©€TJ:— 'ã° n5'Òe�ÈËBí¥;\œM:òE‚PL,s5i¦1‹³;y­»Ø�´½âZ�BÌÆ]›Yçw…cqÚcÄ Ò'ÖZêÇÝM¶õ™zo¦›]´y*ÕtM�AH­`tg5�Ãü´>ª'•’Åö¸øð=>KœÄk¸N©R0C|O8äŸ ç)Q#`^ÒdßfvÉ5ǤgÆ*ÁvÔúú™†^rù·¬³i£�Çÿ©ÚÕÿæ?œ<Õ\ Å3¯ qzp@çË?¤„�M_R¶KÙg€}Í%sq©.ÌH[öeØÈ´MvkP=˜UGÕy1æ†(JÔª~@qº‡Ì JoìRR$ñ_zJ)ø»·êOÁ-_b°ÄšWBk³‚›7ÈÊÓ‚ \øIÜ-�˜–fUW8MÙJØ�ï(Ô¦ibjk=2ZÉZòx‹ àbÝ(Þ»ePeb8Õ–0l ®÷Ó¶¥S�ê€-¬ž”à¢à²�ú®µFQ1ñs¼­Ñý ½ôç Ò#va(ÉN·&î^²[^IçB$+a|Z¿ž'§AÑ\¥JÚr9Åàç�mÊß­·¹òGv@UŽw"+/þ±Ã†{¯~í�mX„˜ûE~Øé‰�ÑŸl s9¡ÝC{@Œ(–¶çµ6]yâMǘ¯ñÇ)šKR†–åsF×f ¡=‹ê ‘‰³VÕÝá½ýÃK:7 †Œ>kßr? ˆ�П2¿¯š¦@:›ÅôŒ_´Å®§AÒËV¾1ڼʗ¢ µ©ÒÄ–ÞAá.:Ç^=ú�C‘™=3Пœ»µ Lç+sG¯L[ ÐC¬`³‘ÜßÍ�(~Ï­öf5Ð)Ðî©k”O(Ÿ‚íü 3Ÿxǽâ“ô.ŒZwq€²N‰kŸk,»Ø8qè‡�¢d·ºüŠp1*IØùLS¢¯ãÙÞ–e˜«� sÑÅÿæœÃ¥ýÚ˜}®=eH¢R‹$z­‰—ŠBW¬{ãPuW×ûJdè—";nÖFqFv‡ðë_~V¡UÕJ%KÂ,H&°\-ûrEwY'®|«­…@ò�Ö8Œ[gÕ˜