Kint
$message string (64) "Error during image optimization. See exception for more details."
$level string (5) "error"
$context array (1)
exception => ImageOptimizer\Exception\CommandNotFound (8) "Command "/usr/bin/jpegoptim" not found."
$context['exception']
  • Source
  • Properties (8)
  • 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 (108) "/var/www/vhosts/shoptillyoudrop.deals/httpdocs/_app/vendor/ps/image-optimize...
    • File (1.85KB)
    • Contents
    • -rw-r--r-- 10008 1005 1.85KB Sep 30 2021 /var/www/vhosts/shoptillyoudrop.deals/httpdocs/_app/vendor/ps/image-optimizer/src/ImageOptimizer/Command.php
      
    • /var/www/vhosts/shoptillyoudrop.deals/httpdocs/_app/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
      {
    .../Aristoteles/Controllers/Images.php:119 ImageOptimizer\SuppressErrorOptimizer->optimize(string $filepath)
    • Source
    • $image->save($this->cacheFolder . '/' . $this->cfName . '_social' . '.' . $ext);
      } else {
      $image = new ImageResize($path);
      $image->resizeToWidth(1200);
      $image->save($resizedPath);
      }
      $customOptimizer = $factory->get('compress_image')->optimize($resizedPath);
      if ($ext == 'png') {
      $img = imagecreatefrompng($resizedPath);
      } else {
      $img = imagecreatefromjpeg($resizedPath);
      }
    .../Aristoteles/Controllers/Images.php:181 Aristoteles\Controllers\Images->imgResize($path, $masked = false)
    • Source
    • }
      $optimizerChain = OptimizerChainFactory::create();
      if ($this->is_social) {
      $this->copyImg($url, $this->cached_social_url);
      $this->imgResize($this->cached_social_url, true);
      } else {
      $this->copyImg($url, $this->cachedurl);
      $this->imgResize($this->cachedurl);
      }
      }
      }
      function copFakeImg($src)
      {
    .../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 xdebug_message -> string (3735) "<tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-c...
    $context['exception']->xdebug_message
    <tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> ImageOptimizer\Exception\CommandNotFound: Command "/usr/bin/jpegoptim" not found. in /var/www/vhosts/shoptillyoudrop.deals/httpdocs/_app/vendor/ps/image-optimizer/src/ImageOptimizer/Command.php on line <i>44</i></th></tr>
    <tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr>
    <tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr>
    <tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>0.0001</td><td bgcolor='#eeeeec' align='right'>365688</td><td bgcolor='#eeeeec'>{main}(  )</td><td title='/var/www/vhosts/shoptillyoudrop.deals/httpdocs/public/image.php' bgcolor='#eeeeec'>.../image.php<b>:</b>0</td></tr>
    <tr><td bgcolor='#eeeeec' align='center'>2</td><td bgcolor='#eeeeec' align='center'>0.0191</td><td bgcolor='#eeeeec' align='right'>380344</td><td bgcolor='#eeeeec'>Aristoteles\Controllers\Images->__construct( <span>$methods = </span><span>[]</span>, <span>$params = </span><span>[&#39;theme&#39; =&gt; &#39;shoptillyoudrop&#39;, &#39;module&#39; =&gt; &#39;products&#39;, &#39;image&#39; =&gt; &#39;b0cpkt5dkg-ello-pop-fill-22oz-stainless-steel-water-bottle-with-quick-fill-technology-double-walled-and-vacuum-insulated-metal-leak-proof-locking-lid-sip-and-chug-reusable-bpa-free-pistachio.jpg&#39;]</span> )</td><td title='/var/www/vhosts/shoptillyoudrop.deals/httpdocs/public/image.php' bgcolor='#eeeeec'>.../image.php<b>:</b>5</td></tr>
    <tr><td bgcolor='#eeeeec' align='center'>3</td><td bgcolor='#eeeeec' align='center'>0.0507</td><td bgcolor='#eeeeec' align='right'>383432</td><td bgcolor='#eeeeec'>Aristoteles\Controllers\Images->createImage(  )</td><td title='/var/www/vhosts/shoptillyoudrop.deals/httpdocs/_app/Aristoteles/Controllers/Images.php' bgcolor='#eeeeec'>.../Images.php<b>:</b>31</td></tr>
    <tr><td bgcolor='#eeeeec' align='center'>4</td><td bgcolor='#eeeeec' align='center'>0.2494</td><td bgcolor='#eeeeec' align='right'>399344</td><td bgcolor='#eeeeec'>Aristoteles\Controllers\Images->imgResize( <span>$path = </span><span>&#39;/var/www/vhosts/shoptillyoudrop.deals/httpdocs/_app/../public/cache/0fa37c14211e079310add6b390f33ffe.jpg&#39;</span>, <span>$masked = </span>??? )</td><td title='/var/www/vhosts/shoptillyoudrop.deals/httpdocs/_app/Aristoteles/Controllers/Images.php' bgcolor='#eeeeec'>.../Images.php<b>:</b>181</td></tr>
    <tr><td bgcolor='#eeeeec' align='center'>5</td><td bgcolor='#eeeeec' align='center'>0.3811</td><td bgcolor='#eeeeec' align='right'>2574040</td><td bgcolor='#eeeeec'>ImageOptimizer\SuppressErrorOptimizer->optimize( <span>$filepath = </span><span>&#39;/var/www/vhosts/shoptillyoudrop.deals/httpdocs/_app/../public/cache/0fa37c14211e079310add6b390f33ffe.jpg&#39;</span> )</td><td title='/var/www/vhosts/shoptillyoudrop.deals/httpdocs/_app/Aristoteles/Controllers/Images.php' bgcolor='#eeeeec'>.../Images.php<b>:</b>119</td></tr>
    <tr><td bgcolor='#eeeeec' align='center'>6</td><td bgcolor='#eeeeec' align='center'>0.3811</td><td bgcolor='#eeeeec' align='right'>2574040</td><td bgcolor='#eeeeec'>ImageOptimizer\ChangedOutputOptimizer->optimize( <span>$filepath = </span><span>&#39;/var/www/vhosts/shoptillyoudrop.deals/httpdocs/_app/../public/cache/0fa37c14211e079310add6b390f33ffe.jpg&#39;</span> )</td><td title='/var/www/vhosts/shoptillyoudrop.deals/httpdocs/_app/vendor/ps/image-optimizer/src/ImageOptimizer/SuppressErrorOptimizer.php' bgcolor='#eeeeec'>.../SuppressErrorOptimizer.php<b>:</b>24</td></tr>
    
    
  • 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 * 0v*>1D"!Y` y2< H$e {g Gߺzvu'^C:bI׻N؇Ru:v!ԝ{>jsN؇Ru9c LٶkSo{[^C:b>V P9ׅS3na5}Ge,_ @m5ޝ g3''Em'!d<&K ^C:bIף'ZCeny!GxCK! LJrQi^C:a`4k_I]TXc zNW:qOqK}U#H٦܏K.lE3gK`(Ngq$@Qd]S.Pj1z體ݚ"v$*N|٨I``T[<$L@,FٮRфbsZz|ֵAHy`am˪j:gD8tR3+|g?OsN駿#t(f|1+ 8)Q_bPusᭇ%L~ ,&E Zw 口QLR<Ͽ=!nٌgb 7?":A@x;2K9xnnx/LkI'8M;3ddwU&q\H B^ L,= ?N>qnGl@',8W(Hտ_6 <ҏٕlY x<+\nPphXÆ)d2۩Wv^ޫCՓNPavDq9x+ocK,?D?"Rn.WzxBa.IѥY&q(BokT)%8]y~ߓj^`&9 4Irtߨ` +al6u"r"aG|qFk1R.r[+Q`#<50wh?T^X{!A8=v F 1Yw YH,y:S(A_qn2¥HVp:^Ck;Fm08r;>$5|:t+UO7P}xJ;(&FŒ.rq / 3WP?ʡ*"ww6DL :~ k& RG$~@348 ؚвjKT0 x^,!' x. CqKV锍/zIOLpࢭVT(2ê5jX$\z 1c ̙hrQ 9O'G mw86UQD%pF#JCj@^G sʓn IR2ss GE˄|RW.՚ $GZ;EY!SdE `)﮻gTCBJ&ytl@`_DOq0NjB SeT$3{(\ذߑjYntvL,8# S17HJ0 d7|22`Y3 M%Mܣ:Iӛ;nOCh|ofY՞͠ǤR !ӁLPHԦw]x&uCyWpBiL 8p?W/8yOsu,wz'!nm42'պ3+2Z_S9*U1(