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']
RIFF6 WEBPVP8 * p/�*‚‚>1ŠC¢!¡Ìô ´¢;�œ�Ÿ>øÆðϲ\ƒ~¿÷õ^ƒÿ)ûößÊ_Ë¿ÆÀ6ð/ßî~ _Š0þïùgù‡ùòœëôõ—ç_ßÿ·þÚký¹ûLø?ï^‚ø€"þþò«Ö×À‹ÌÿÇ{€þ‰þ¯ü�îOùߨïî¿Ôÿ}ü�ö¹óÇú¯ñ»¿å¾À¿Ž/ÿ ý›üŸý¯ñŸÿÿð}à{ ý’ö<ýu%"DöN¸Ó·;(Èn­wŸ¨f§Êò¨-ØuAîø–À’¸šÏà@ª¥˜�pS=%œ€Pʹ Ö{H*|[Î>hvŸÁÂ21«ßê�wåÌ-í–˜e[8‹à‚…±YvNÞîÎ)l|ÐõDV«ì"Áµ"“LoW6e¦ò¤ÉˆJn8°M»ÄB£Ç\©N‚1x¡ %kwv3q«7ù×–4:͸n–‹3-N§ZÃ?½]ˆ”¥S§0Ë[@ÛLª¨><ÊÔë—zª@þþ´ @š©©ÇÔƒ‹8�,¾n|¶ñ!¢*ß«Xœ¸;_f®óÍátU~,y»ò5y»/ l¾Ž4Ü«ÁŠuúð¼Ì K¡©Åp¤’<³~E‰™}ƒŠ�ª²ÿ“ë›­†öÎëÇÿZ$ðð7œF‘û4kW×Ä€ÃÑ]”žò¬É#P’b¶^o#= qø]%ÆŒø+#U¤å¥æÌÎlÆÑzv5ä¬Z ë<›¿ÿZxÛ�¤,˜}q¤@ik.DÙÂL¥É¹”UzRÇ7㑋߀�ÆÃaP+n–°Þôóì«.…ˆž Ðl¾`’ˆTÉçó7V×:öšÔ¤÷ðQÇ$~ˆa#Jp Z$ó|vƒ£ihJ\¸ñ|#¼ÖGÉâ2_þ�»´|´¢hGЉPËÌ[ÓkŽ:fGOÜì…7»`îðqŒ°Ío» :WÙvÿ×{äÉFï³1pQ =K_ò8�”îWDðÔ0òËþOïh@Öe™êÊ>¡-x4[¨{2uøÞ6°…—ÛhúJ¯çæD€õœLuÌ ÿäôKÜ’è0ŠB¥2 qÀM…>tÌñ)aÞGŠ>^^ë[ �Vù�]Sʲô›;y|Û5�dןÞùi1„ ©ã“PÂ…9,½Ýÿ&;%kÎÜI«‚ëâ8äà"í¾Õfå8aÀ%ZAÊê*¨‘3Ǻ(ÞÇ åfMŽCà ¾i{ÆEËG¡‰‹ÑöÚp’oqÜ+µ�O‘‹ côÉÀQÑsƒÃ! àÓrZý@ *Ø Ü]tþU¸tiJŠ»hš…B¡§ó¯æïÃêâ—üŠÝ]q£É¶¥½C '‡5?óå½�ÂFá©ä2Y¾Ø{™ä}ãýúÑñ…ê¥4ù€ÎÑõ‡Ï+‚­Ò  R°DV;Åÿ‡ÂUÁ¼ö©œ»¥ðþʇR¼2‚„µÈÙÀz;F»™— /¥“®im#>þÇÂÐÛšr|ÁìxÝvxåÅHÃ9 hô`¬d›Nò¸‹ÿ”¡ƒ'ù1APÏí÷Ÿ±®`…í9è¶\EÙAí�$nF_$[¥&±þ×]0D’ø(ÓíQ&˜ð´h¨¯‰ûì³o-âOp±Â(W) #PlÄ&øZ6±}“¯`Ô<Íø|chz�Èì¶L"ñ[G°ãjÙ=HŒ±ßÇÆût?PºÛ§ýª«š,›ÉSjl—!nz•;÷©øû«ZÚ¨f)&�W±šmAGè‹üÎxÝ Voµ”E®Ö®&Òm8cËÞ'VU±Þ^/S¬µ+á¶6Œø6–n¨ˆu^÷ʨTm¢~i=Æö™ n²~Žî-üÜÏ‹Ú{¨ƒGÊÀ4|�|o¦l\/p‰ßøÒÄHºöœÂµ·frëºÒˆT†ÌÚTÉÜÊaDHËd™ìê¤$ ïé0�ãå¨veâLä£þ £b¾ÿÍ|뾊L…sÑx±Ö~¦::¾à#?K؇ÁkL+:KVû`ha¸÷»2oå47�ÇÐÀ/� ‘Wð��' ežc;÷ãÎq7¼Û>¢S×wÍ.xç‰Uë¦a‘‘x¶›0±Ì9(›š¼U±�¢@�ȱåPñtr1úíáÌ#:�[©3ÝÈÐô{ñ,mo7ZÑ‘³s Ü×Ês1C�.׺îôšçÿóT½U¨¹iª•M»T»ºøç�5ß_R ð�Ó&ê­ž:£ñzoÌÙ‰AÔéÓ‘«–ÊtmYzy‡°äU?ª�Ïcý±gb}D Ÿ¬;åÕ¤äF@[RlUmÕxß©fÀu*ÉĈ_ö§Æq¬0õ£©=’üñû\u�”jç©UMRƒ "S�”—Âùyb”Ñ*Š aQ#[se`Æ»ê=%÷{ ïöè£Ép2 „‹®›?Šï‡j¦äB™#íªVg5§¬î½Ô\OÕfDr<—Šu›7"”IÈ£;!!ãÝ\í§�i<Ý0`»!@®¯d7lóØÁ¯[þµ¥w³¬¨**È‹ò¤§áënè$ã/¦"„�µž˜XXÎHâ*aÅKDWå™;ä á]ô Ê[«6Ý6g(ÕýÏO:þ´)¥ÚQniþK¯»^7jÿ©MO\{@fþ¥.&¿ÛÓб>hÙ-<�Ö@õeç†6(´Ä}7—Š++lBd1OgëgО¢÷Œ„ø2;½³1ÈÀààŽ °m?í³øX3ÿå{IvÒŸ¼#wZo¤¯Ð^k±Oí'¾¤4ù£5eËOMéyÚŽÅŒ x?º} Áübfß'he"¦¯º‰™@ìuíÄYÍr^¦’jš†[ó]¿XòsÂÏÝ6«ù ÛÞ?e�në¼Vký3¢Ú &!Ó*õåVKÀ