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 Œ�@�*‚‚>1‰C"!!‰fx ´€ Ó> ù6øg¹\{úóÌ?­_Àÿíóûþþ]ê#í_óûø ç+ÅSXi=ÿÐñªüý_Cþ�š;z¿ÿWù_goùþ¹>·ÿe¿ÿÿìøŒ7%Ð KF7ÿµËþ,;å¥I÷º¼†ò7Žf“‹Êàèjò\=®°X"AëR¦zòô¤Ž;)?ì6ÝdRŠ•ó»1•\Yc蓹1òïI´³ç­Khê'Ñø=Õöaê�€¨|-Y¿Tˆí�“EÂcÑÐ oI¡Öûx®è#êè F×$vý2zY1R5æÛ¥œ½áû Ç(š‡€jel¼;uÚ?6)?ºR˜Ó_ÅwÒ`ž(¯©+-i%ñ‹ÌL|–h§iŒ°t‰ù} èš>õ§ÿɰééÉé&¬ç”=Wã�—vŠ $‚€–©I2œw":L´uOôƒÇw*Õ»ûsÓòÌ=ˆ�òß86ë¿ o=ë씎ˆ�›¾ð¤{n`d8x·¯³ýL�ZmØnå³§¯éL�H¢í…�¥ô|t Ûª˜o•ÿÓ p Ò¸AWE C$7y¬&3—ŽØÄß­'W±/ŠªË±» SÚa£ŸüE8?0O溚OáÿU± 0�gäÛDRÑd7ð(WªÄ,c7æOÓÓPþê÷ 8`Õ áÚ$+øá'ÆêŽ��η}•:µ¾žÎ¦7äoŸS<8#'ÿ ÈKVú�ç zp=g°¡D’wl£yàÑt% f -÷÷‰b0޶3pÓ‘¢.Þó.Õ·‹)žy×\(@À–¤‚‚\CɽYö� ´þÍûó“•õ¥Ùs9JmJ‚%Ž[@¦ jí£Ìöàžâ‡GƒòÔh¼¸ŸÑÒ° çÉz´þŽ5BˆÒ yE$]:1>*˜T¿þóZ!ØåyÖ+Ú¦©µO�ÿk“/RŽpWùb:1¿z“YG=�ئбáÆ`vº’®)àQxD^àvmÆ’ÑDlº»»³´ÓDµ"ߌ­~Ú_ªn5ùÕï×=Ðç'Û´¬®ÉÓ¥éœM¢ùÌQ¢ã»ŽOX±€:›ƒÚÞæÞ¢°Í×ÀÂã7®¼+Ê¿«pþA0ð³zxxÊaÃï=ˆ¿Õ†Â#Îãbf«êݽ˜p\Àð;¿B—z?Ù§¨EØâícY×|rýO¨Â¤§Iºà·"¹'÷Ñ.û€8ƒ>l÷ËIôÊÑ©AgKÚÄò°%ä@=Îä4ÃÛ÷ØŠ¼®Ø9¾€ønì;myç$šíü؈Ò÷Kö忉‹ÄÇ2ƒfDñ ísîÞi´ušä:äe^ÐZH­ül5žíOlj F2Ñ•“í{鯵¨Ê½Ì�>ÉVc;tFÌ8Å(ŸR4cý†þñЊ@Ñ^›òbzp!ìe€×ƒPÆ{Ìÿ fâ°‚%ó›ì‹¿ã;ÝcÕ=û4:B>ÖÀÚ™»ÌØ¥ÄVWìÇeÑ/TWØqS‚ùÌ–;“¦ã´ @ˆ‘èú--îL�Jš-¼lÆ}@BÂïY+ÕG’.óµÊ–lpߘC´»)‹Þ§6Á›.k'ø®cø bpeˆs±D�1Â=BGÒ›pMYEUÏW FOµìˆlÜ©ø 8’~þFyè}¾Âï-i¡-¶áÌ€ßá<¿°¦º#}BlÞîO‡Ä€î¶ œ¶R� c÷wËÌÛè¤æ Œÿ%1l~¬î[.c"þM†ƒ�M3•û³�,ãj§;/j—¼h7•á „cx�–Ú¤–Ù ÆiÊ Æ#ã@aÙ|Œ—v±\˜!ÍÑ`p6§a4××*ô¸äã»ÉÚ6O–a±j �aO\Å9˜4Xã1ÇÓa/âñ§¿Bë“É" "2ƒÌëe ©Õ9û²té…Ñ£…¤Òí†@Tø¡v óMa~6jvê·Bý×OQQ¼txï}ÔU’Ñ�GÊ�ÕgÔ½—¼úC5mQXÆEÿsð kZsiö.bò¸¼ëªÀžšn) bú±ü3=?CïVa䎙B[™kA÷ÿº à¸qÒâW{?8tÞ¥2:�>|ë›Ö;5ûê�œø…SÙ9‰¬Š!ÀQäû†praÉÈRÜ©_ð±”Siü \`q*߸ ¶E\ï³GSú||lj»%¡7bü, {�‘š¦ó`µFíéËyb\Zæ„cjq.âl^¤ÍÓó˜Ÿ@Ð8•1®)eÒ‘þÁûÓB^"4Nýöyˬ4’ …pqÃÎWò<€íOÛ¯4 Œe±õ@ÂÚ§ e�÷j‡T~²òñ¦ÚÖø(zšj tÊô¸ öõÑlÜ8hØFÙú^nR¤'ßì(ñåJ‘§ƒÂÀi[7 4%¨úêt $ðÃÉV�"àÃØ´ò†”¡Ðã2t¼sƒîÁC6ntÑ[<Ÿ4B�úõ®i•ceÓ]4ÈÎÏ}‰¨WÙ±úTS‚¬xQ|h5?<Ü<àg–9e¬}"(ÕN]_   Zì˜ÈŽrGm²u×)pY²ÙÁü¡À�°·º÷)—¬t§[ÜS/ Z