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 † 3�*‚‚>1ŠC¢!¡*Ì ²µ?XcWAæ‹»÷‹ 'esøÛÞ·¡ÓßÀ&pÿ^k럸}«øÀÖþ/ûi¼±¼vüÇØó�ýOT_ø¿ÓúEú¿ØGõÓþ�coÙ’BøX ½ƒÎu=GѰË9”Þ´˜?¶©ÂЄÙå7•ý£M@D”IWI’ïJ%¿Äœ+¿C×áDúpÒT9áÅ kËÑ ž�ØÈ–—Y±³§éËþõ!oW "S¨cÜ*÷@YÔŒì@­Õå?ÙZÅ�5Ö°f°ò!E2‘öi†ØKĪ¿#k€ÓÆï ¼4Ѽ¤úø×èL×0 (X ;¡ÚÐÁ7µôTtøä)"Éœ�˜Ê^(Cì}€ˆjòO „¥<’öÚd¬àž±&÷xé­FßΠqçhhpöÑ’#ØX¼_.Áµç“$ÁW–”ÁHB÷̻ؽô;RëÑ&zѸ¸‰~Bbé¥W!*S³Oræ“BÏð´Ä_“Y¢ú -%"®áûy¼¾ÓDuJ¾A^ðè¼IêiJ9‰˜þÿ¹‚³ü#52]‹P¡ƒg\µžq*JR`®€¦$´`ëËtœ˜ó!R%rK^êLï! œ ñ’×)zQÖÙëXŒÔ]öåÂîT†Kq…MMmÍëE›g†[~?áí:L¬§†@œÌ*fæU„ )RÃäÅ@Äù!ÎÞ$}PêZÂÒ §ŽòDþk_ä?›¡dí:>–ÊD)ÝM”˜†™¶\²ÛAÿHŸæ¹~d-%` [/�°[Ù1U<¼×!³™¶¢ú´<Ëv“Öö( Žª·~Ü‚-›˜ÊZñßÝ`vYÒ¨46�è(9˜AOCéN^ï`«õ�2ThÃõ/ˆÞÃèõÝü)Óâ.ùg ÿŒºì­�pSHPÈ:nVG�¹rÇ´ì0óõ¤_Cyÿ +SíËFÕPˆuiG§r˜qgbB¥ïy0'ó}¨…úÇ•oD»rN f èVÆîÑâXæixÚÞ–{ö#ÅýÏÆ€ëæ©ÃˈžJ°ô�Oci×ûóÇJPcT˜nN‡T+Ô0m1uè<æíCG}%ɧؠj7 ΄P�]kÁëèI -�‘Õ%²ÎãÑ*c«Ü„ÏI(±x ;ÐN›QNe›þqtÆk8`ÖΨÃ$¸ƒò•hÛ¢Å}-î�û¬L ¿!L,[ò]-JcÆ©o7*‚æ2Gìü‡ìš2òa‡Ûàœ�x„lØÈÕ4�yUªÿì ½"µá&çK3ð/Ûü·á£§5¸8eÙ lº�¤%;c4��°ô§Â"aï>¡ÌühXq"íJØA›%o.ø‚á|C0wâæwAšïÊÕŠ*öGìÿÁñò¢Ï}à?4צB¬•Js�.Ìn1v$Õ š±$.òCsÃãŸîJO`Þ€’OD�—ñýöç Œ×ºib¤7”²‚´æƒážÐDóøm€ÕÂ}âkåÛþãÚš½6Bñ“ûç¯��¤ãÌÑn)GíjVJ“ŽÌr׌"ÞëÉæô¥Ðbæ9>ÚáLB�`0m€*RÒgŒéºÍ€g{5`a06ßÁ7ù{k•FyÅ*ÜËͳ|ÒÐ]0Û\!âZ®¦Äc´­Âé òÙûy 4s×Ö�=ä•çl™�…¾j,ss)§PªË7:»o²¨ÙÒ±BbžöÁ^÷îEÛÞìâJ ‘3+Q ®üngô-ì$üËê …èŠÕm*ÛPû¡Mì¯y!4c?¤ œÏÀnã׫ �6ëÃ}×5Sñ¾ŸêÔ΃þþQ†o=®¼䡱„š�i$!LÀ÷éïE£áU¹ƒáQ/ƒ¿u1{~,?”‰Tÿ2=vÊRýÉ=7½,±„Ï~…ï2Vh.è­®¹Ö]ëdÏ|¦âØpöš*K’„ùH>�F,–ÙônKp×UÀÛîø6À²d�ê¾¢ûÑ�†™^Ѻb ÕŽºÁ‰Z%Çm)¦ºf‚ý�èòà»9hŽÏr[”Z± h>[céν´æ+°ŽZmðÑÂE Æxg¯ÌœÊ/3… x{ÖÀ²ä/Ö]¶8u…n ¸¬œ‡2fÔùݱd½d½¼ÍˆHPµ67æ¦è$$øyº‰ì|ÌA©Ý€Ö³î£àZ6y/‡åÂ~†O˜ª:Ðá�¹tÁôpCXX\BlûMk–±ü©UðY†��m‡Rïì¿«P•°é¤ÒüJ~–Ûn‹Q¸°�K¿;yíï„£¢è ÚZ¢·±+“‘¡®t¥öQ4q¡î¯]Ï.E²§7åÌMþöÑkŸ%�f�ëåœâµl¿BÕ¥rwi0Ä“æzî)HG ÈÌâÆID©&�À1�Fú‚ÁUï®SXÊÆÀ72ºÂˆºEPñ¼Ï.,NóûAÕ^ŰB·^‰Çrˆ#œŸ�kl#…íJ^.�d6"‹(Ú'šš ´ 0“F¿½Ò“ìÒ,Ø®d[ŸîÃ…"ÇRÄ™‡¬îð߀’QsÕ©…ŒÖž$U ß‹þr (°