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 P °5�*‚‚>1‰C"!!é� ³€dá�lGxôhóÍWä UU“p~–òkpw39\É�^„x|.¯ø£ôü€veJ—°C*÷°ubŠªb•Ä{ý…<<—‘þɯ %[c$mê<¡ñgøÚŽÍÏ’îÀEánþù]^�AÄ�E´º³jûœÅŒM2k�„~B2þÇi:o�•&Æ×ì–ØÖU8¢Ÿ†íz~óW®íÅE:~Ç+¥E�-&Âàí5ÍΓñµê`Zeö>ï³~ð¯*D.LïkÚwÒ~¼–Fhp o´¾›Ÿi 0_ûMg/VǧˆT(Y¿3¼ÚŠ ü°é)üNèÜ7P6Z O<žâü¾ðoy›@ßNò,9÷h3?¹sôõtµ²×ÊØ†ÙsÏv¡ÜäâVÄ@Æäà…kaÛnŽ–©cë¹b*ŠùZ¬÷mèzÓœ†BìÙç`‘»L&ẠxÊ�¦P!ØÊwÉí¬å¬8w¡.ذM¦{ „ö&­~m=è¼å»Âì@£K ï.Å)‹ÖFãû)»Š÷”�›Mdþ÷‰¶mŽÇßwÕÝ´*sD*ÇŸtéÊt²(ý³mã)%@]��»ûj,Ü™uù  !°e‘*XÎrŸ2=_8·û›ö`½’€»'ŠñR‰÷)r–¤r(èí@´›“kLi‹Ü,‡‚ò�$êÎË¿ Ût4~ÛlÖ0…ÀVñX]h­ŸK˜ÝØ…›#¾- ~T�ì|Æ:7%B­·Í%ãÐTUâJ¸;6 EaÅlt •“b6¦ùÕ7P‹ /Úû|-§õŠ•J ÑUŽ<#ÚâsÂ:£ÝY;/ÒScÛ¡‹ÜS3ëd�5݇æ\Èš¡«;I_¶*^™¯/#þ×°ÕæÄóƹ(›±Ër9ÏÚv!£L<,ÏE)™ýT!˜<«ñ‘:`.–/ÃZ¨+Ø5!2Rõ7X€™mÝÿ�6 ègp?|Ä¿2'À1Ý)Ü£´Ò{¥þ0ç-ÎLxVË3ˆêá�„:ˆÊQñ{uüI°a(ÙÞU” .ÌÓÝ:pw/–5öš®Š«õýõ�—:üÓ?[¶Ý§X>ß�tÒ¢Ã\º!(ø©µx©ð»,sÓà0”»mq¼óyøBl0¡ý Ì�€ß,ô5¹ SXõû(€«K;ÑØA¾¿WóÒ¯ÛJ² uØZª»¦ZÚÄ,?| >·ïs…2M6Yþ\ý×"¡R]ŠÝ´át÷WÀ�sjZðo›^Ð�SlÐòàuÏ‹nŠkÍÆN;¦$©à,ÈR�á3„ÍŽÎßáQl½0&̤V‡GÆ™š¤Á °ä‚.P{@¨ØCð Ì”¦í%Þïºg£2™GeŠΉ³®ø*>±ÕÈðä�’ÏU;÷“´&×hÓzÌ~DÓEþŸt»U­(!\¯ÖÏñ—±I|°L^8³V?I*áDÓ‡˜ÖŸå>åƒzëÂé¦÷e·ÜÝ/ðþë4vʺÀ­î—›$‹æu²ð9­}/äËIæOé{·_”Pþj ¬Ì "Vì°ZÒ¢²Ã: =ð+ÐeÀè¨y™Ü¢Ì.zߨL`NætVW&�JA“VJMq˜¥HÜÛ§Ub1¶% 7íËäˆcháÙLɼ³ÃôuR™�Ý[çÃczJXõÅ%¡Ø’5/;eãû‡••D P‘{ï{ØÐïߦ‚ÍEÒ¦{Ô–?D­¡Ôùv“CÚ¥ôÐ-×'hbÁ{,…Ó� Å&" Ù<¹áU¸@éÚa”ÃùBžÒzlöÁ­“PÇúq±�Ÿ�qΆÊƒŸ»Cl\™í`Á’þrî¦j¢AñÓŒ�¿½4HÏÜšën¥ßg6e8»:¤xN]ÂJù²h�+ä! Aô8¤ÖEiã­Òµ¯Sí¸dæ‡<é¯÷b#à]Ÿå(,Ë@™<µOËÒûï½Dô'}¿™[´Ï'·åä.¢ÌMƒ›«#x#Òç¹Ôz®Ôã•ôn1¶ï˜´LuYÍlÚ1ÁŠ«ÚNøŽóÿ@QÅxÚp—Sòò£'­“ çîèðÿ+Û•çmömSç$ñ‡1W•Zóà�b¨G˜ ú˜éôŸÝLÈã­î”þTm¸4Usí¨ìŒ¼m@°Òãʱ³`ŒÚ^½`ºëaîì,‘φEM¦êž,¤rÖöŵ¥ pºQ™�TgIªzqñ]‡ùߤ�{Ü(Ã¤Ò ,ç/RèËf/YZd«ÀýÃ×Ó×E¬…V`e ø¿|Í«ðW�¬cz<Ðh&Þ6çƒ �j=‘è”Ò5®P ì‰NmÖ§Æ{K_O<½ÙlÌ\¯UªjA †”ÁgB�ÒW%1³(àÝÆ`ÇÞ®ü|ßh€b@øRO>¯ÌgÚ^’ôr þ§D?±ˆÕ}ŠÅ ü Ø\4î0¹mU&úcõÁ·¼Jþ Šð?õ%ô‰áÑN¬DOâè…ÄôTÑ>`§Ñ“”%šÃÜ”áÿyX±¡B÷õŃöç¥Ä-¸;¶2ºyD')_èÏ`Øî9 ž¾ !~a-“$ÿÕˆ~Q %"ûæ÷Ó‘èênÙV”’àòo’n�Àw)¯¦P)Ëo¯.áì©qŸ�ó0 ÁL€øRêÌHÅÓ¿ÞU‡+oÊuJª&ÂÓGwèTˆ˜ÑyëÚ+Àé&qUƒ{€Y¬“$×BXÕI÷JT?.I0 ö3쎵º&ïÌ£��¼ô2DñWÒP´'ÙÓ,³+-"»cæ €?ÎÏØ×2Ö#00’„ -C¶{ô–æ€óɃµÁK÷p^