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 0 ð8�*‚‚>1ˆB¢!!J}p ³€eζ$‹4 ìeíæo€Á¢eÏÃÞÉ÷R/âáùl²/(”càBÕšyYòy”‹ó›ÎÚsi% \•w­–ÑÍ£IûJ}eÕxðÒ:¥UͰ=TÚ/óF½*Œ-º¤ÄG}|/õEÒÈ&ßàh2ˆN”ñÂ&µãûÕ¡.™ASÁÏ–& ©Å<â}“c\ÊEÒ|3c úr\“¦€ö`Tœñž¼Óÿfðí2¹äŒ—çͺ5ÀpÑ]vY�»Ó¤î§ÞÅEC|ËLóÓ=½ nS¼žq��«ú�0Çb±fåÙ¼¢Æ³j*w³§ì]Èהʅ€WÁ³Iü¶ÁÍBuyÿ‹õáE‡·æ¿\~Âù=ü|Þ¿õ£až¼,15¾þtÄý'{´�Âä8S…Íaá+Ôo>Ù›ž(‹x³èÝ|¸Ùf,i.|³Ìp«-ë-ý õd ÞûR¶9Ž¿lDÂˤ”7ÉËφp™Ùã»cÇ�¸’lýþUaæˆdŸ?S¯UÆ'žû& ýÜ`Õ"óŸSLˆN¿ªÃ>e·³ŠUÇDÞ»W2 Ù¿c¥kTÜRÿ™ÂðtPþ÷¾£°FÔ^NÏy?ãd}ZM?Ź¬š’º’ò ­ØËŸnø¨'Ö­¯ÓÞ)  ®Ï¼*\#ÏfEç=AÖÀltœÓ ÍI­&»>Š{¤QÒøœS°:j¶õS™"]ëüú6ÙQ:�d%ýÞJP|Ø+2‰Ö²ƒŸG§žÍÁp*â •%À7z¬Iùë쌎¯6Ih28"Øu‡ƒho+iÐÊ ¢ª ùb�íµpRå˜ YKºð‹»ÕƒŸ�®Ýï³ÈΘ�i¾]*+áûÕ#¾¥Øj_´¼\”ëËö¬ð3ئødo;É¡ 0ÕsFŠ ê¥Y Œ“ä†cdãÿÎHyË?°† ¦:Pdq~V’Í#¦pÁ»1ê>O[ õÒ®o±Â/_DÚ/ìðÖC�³²:É«K$°¶j¿þHVèë2¸!YF´·•YX%k¨é½&ò.ò°Xïîhú’v9 á�€ükRš ðÞvM_`4,ͦxqÉâP?Y¾ç?é}ìl9ÛNáF�ÿ9!U|ÞD 7É\ò�n䌥´ù#'(¡i¯Jç>¼°ßöç<\ör÷5Ð"Ä!‡–ÖÖíÎß”~YT#Ó°ÀÃÅR~£ùb%2L”˜Ÿ@uó ‚‡ÂïÁ¹*s3Ü 5Ò’gJëÖ™'.@?u4"´LÃ!L}{?Ì·U~sû÷*t³â·¹ù²J E´™Üùp1¡)Ž÷9è1 þ¾^.l˜½©‰™õsRøÄ0×i‰j¯€`(úgã%XÇÑ‘U?dÿs…6Ü7²8[?ÒÅGþšú¬‚ä8ò_(`,Eèõ§/úÞ°õF±1ƒ�°!è ž4Etìá …_„]ÔæÅÐ#ëŠ&áÄØú6>^á5mÂã¹>1dJðe+Úq«FômÖ‡}ÜJOËaAUy:|×2*à ‚-i³ò™2Ùllñ¾{ó:m…s=ÔYìh|•üO‚ØÂ>ÖNC‰D<LëfýÒ’´vP¥ b}å ÿ#§gò®¬›ØÖe�„¤ò îý¼¸Þ+ÜË7辈�y_¡d�L'îKË‹B˜3‡”F¸$'�àà†Ú¦A‘Úñ~í¸Ùt ?#Ð~Ëp¾�õú¢ño–\µ+ Õ@·¿ðš�å�£áßF MuÏ¥ËåZåÐ2çþ�=_æ#´¡N—Æ+ÓUkl‡¦ÌÅ�×®gk}mÞH¯:Ã,Í›Å)´ë"U©FÅ}®n)ó×@´|;½ðÀù¾&¦�`þàV ajMÛN*'6© ÁäXPú4õL7(™?�GLúÅNýhî~––”[¥uFPUìÁÚ³÷�ÚT_Gî÷D›Uåb‡Æ@jêøW_˜‹@Æ'‚Æ¡gl»‹t¿àk!Íjü$KtzI“jk’§—‹�×êl¤Õë&öŽpÂAŒ¸åãàÑsxÑC$"èÙö?}± ©Â'žÚ*Ñj™êŽ«ýk.4ßúaï-%¿ÕÑe6°ÔëÈxß&2* 2�®$`Õíè£zÁOlþòùÿHiÃÒ—ï¡ø_#³Ã‘´Z'U—ä"Cøv ãšW@"'h·ø°Dkþ/Ž×dâ*”e ,ŸTUij? ’Õðâéì XS–Í}@n4{Ô²FyQñs&ÆcºÈð�ªzz.ûÎ…FÌë¨aCyù7éʆ®ZØÉJs侚ڢ,Ð{�—Ôa*ûmpᲠݰ?À4dæyAòGÐÈ>XYÙ¶Àsɦ�ƒ6œùeÿ2öÚÒ 7Xâ» …�I¯]»è–?u«-ߟ ×€IÐÆ4ù jÎÆe©>n—Âö¬©ÖËåõtùï�ìȪ Ÿ~¢Ú ú)¡¨;!³T¡o@ Hf$í\ª×Ëá1kwμ|'î¤ UF‰âûÁ2çvÈ÷CôÐðÀ´æh¥çr