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']
RIFFzWEBPVP8 n°+�*‚‚>1‹C¢!¡ùœ  ±·p`å•oìß„¸ O^YÞôù§ý�¸ê¯ù~¨_´£?U`=Ó¿Õ~³{³ýNünù þ�üÏ­ЋöÒûöïáköŸöoÚkÿ½Õ¿ üUx£Ùß6ì/î?—ßÒ~…~Ãþ;ÃLÞE¿±~D~Wr�r/æÿÜ¿5?´ó™õOýW©ÿçæ¿29«¼wÎ÷ýŸOßó¾í=½}#ÿWÜùõŸøÞ?tþ1½ˆ~æ{/~×­ý�y% —|;,¨×Ñ÷’F|ìR$ìcߦüúŒ!ƒÐësµ­7L‹cÖhdÃc¤�EèqfeûñgŲp”"ÇbZ•Ú}Fäõ)Þ7 �ï²?ÀÚC€,„àjŠ’y$á®qwE§*qo ´¬3ê<šðצaó‚-…¡@)DãèùÙeF¿dën�Û¬e™··|‹ÚJ,ÖÅx…€þô“Å °ðÓþÚiºÿ,?<´+AQ®ƒ­Ç¾¢HÌ?ù"©48®Íjñ[¾ˆÖSžº­ßå‚m¸OÈ&u\Å1ÇœòWyt )û´2³Ö6â�ÿReÅnŠ(–3’6ômû‡v¾NQÝùË�ZÄ×1ênLbR‡éfgš‚Øã‘Rx柖Ôi5`iRRâ¦Ùs/HÍô?5·xÆ’J$»ôì¿tÊ%Å+8wð‹ž$|…&iDÖw–Jôް/ª”*†Do†º+~ž~vSz“ xcyšvFG|ÂT+�™Ô¹¾ wÍù®Û'ߺ*ÇæG§ßHí®2¨ÜSÈṩÏêÂõ%ÕŠ’YÇø^LÂÅÞÙÃŒ�Údu?²ò–]tT?hºâ”�MåÁC{³€Ž»¤û¶oâ7ƒ× $'9É£d€-�Lƒ;¥¨³BärŒE—?P˜Äjpà‡ò’˜‰qƒçÙåç�¿Dšþ<}¦âØ'õ®¾Û‘=¼ÿH$û“_¶úz(Ä>�’à·›}^úóô Yû=OìïÆ¯}õ'ò ìq&íkÙ˜_s0±�3ßߥ‘¨IŠ!ÆÎtqL'±¢½qEdåL/X8Þq³ƒX¸´!žD ¡w ½¨Ýý Så[&vžáKÎÝÂÛß xB÷;°vü&�Mh5`¬[Q×ݺÊSù6®kÔÊ…í¸$å}1q�Äkù;ÍÚtÀ€ê^¦úèXú¡×ö¶}HË`éµßäföùúÜïÐ÷3ÛFÒâ.g�Nxžo®«�­ÂëþÍ["<,,U®7õòÒ­Ê^ºù&&q:õœ^Ï™�}‰ÄdyþÚàæ=~ß¾nßùôvB¯œ¦>ôKCŽ/#"N}wk¤þZR¸qÂİ-šT±­O2˜Ñ§\PeóÉž"Þ€IçÖk‘„�Ö3Æ ÉÖÛ7–2«l{ôß9/z*úÛºŠ/;£ÒA±ËQå«þa2V ¶­w3ÀŽ2P¬>ñv1Ô¹¥9kk° j ^ÿkÔq¦~ÍÊa&+#Ò:fó’'„�ŽºRîÛg°€Olrv¦‡Wí-!�Ïõ'­Z–>:‹ã2œKëýoP fèH„”íÂÞ¼çùQÌ[J’ ;Ay!¤wjÍ´ù.ûk)}Œ¾É5`kšª¯?þ@çY›S=Ý{ùKñWpNÍÝ>öSru¯ØÂ$²Ë— 1ééG7ß~|oXà…Xs7á¸\bñÑ›M‘LJ!§\¿'q¾CTÿ§ËXI-?“zº�ÙÐQߦû9¸O<´ï~¨02'ÕëV:¸'‰†¼;dH…­œ l³á–ÚTÅÖz-4Oǵa¨¢êš¤6zç—þÓØ¤�^2YY�󊟈F~S®rÀ…a‰k�,“{û-ïáŒH™¼ÀÚWÙU_•fQ7£ü3ì“ÇÂ>ÐdçÜäùJë#ÇŸ8 „®Ÿàä lLÛ“AdXhä h± Z„Øq™ÌM>§höök.Ë+{õ°ºgî¤çV…Û•éN4è6 YØ 7Éo1æ.s{йzdTž%8•Ù=…å§mã$ôÿî‡!{‚ï¶çýq–�FϪ‘þS¢F†ßÿ�TþÉ4¾@ÿβœ÷sG“ݸÁG¯„™·ƒMËÖƒx! Þ8ß¼ù@ꞈµ“()Îå¯!‡¦N}êâ6„‰h’Kð¥*äœîî¼J4­P¥Bû’ýÿ¹•È/�@8²÷· ‚P±Y¤3ÉBÊø¥ávJ‡ÄÂ19°³úiònŸ�ö;Þ‹<ôjÕ#­‘Т(tÂ<ý3û©qì3®Aø{T�Iî£ðÇF×ûù¬ «�œßÙJž jßïQ¥ ro|?W3Bý„kXYþº�dÎE�ÑÝ¢+%Ë‘NÝIÅlT º‡§¬ñºçîøEYnìk:ÞûÙ*Ìó ÿí”&s¿7üÝz÷÷FH€VRe¹Ä}.èÅzÄË9‹Å¹N¹ižÓS.È«ùvÍ8ó§Õ¢08·5^¤]>FÂØÉ‡or=XÐüû§!úîý07)½ ŽÈ€e°}¬|)Pðö§66JaÄRœ÷17Ý0öƒÏíu?�Ø8j_ЭRÿøNVªÉ¾ßå(›GƒY#²ФC$�’#²YÑ1m” 4®ÊéâJi�µâDà-Ý/®œ|•Ç]8ë(P>îÔ ÖÈ`_|Çÿñ¢?æ&wŠÉh¶ôŒã;ñjs÷‚óáfX¼nÒfs™¨–Ì ÎI,!ŸM³éÞæm“þ­Ì;…8á~<ÛþÖ0 ò…zÑÛóc�1_{äÍTòM{ÑÂQ3ÖžÔØ  A�+=’$ BAÛ©ö2æ¿À