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']
RIFFFWEBPVP8 :ÐG�*‚‚>1ˆB¢!!zý\ ³€eÎ&V’oti}5¥u·åÜ^çûã�²ÝF»‡ý·÷_lݱðöOû »‡ˆ•Þ*Q÷èñÿ�Ÿ/¬?õÿ£ö€@ÈýêM¬/sYžôätCcPØaE$ÇœBšÝ ¯lâWL¤�ȱ?o— Ï´Ft¸ay4>¿u-ú÷²þÀëCœ¿øÓ~Fð0ƺ¬d¥÷|ÖZpE~|‹ž1Y¸q¾wNˆ™§wˆ$i�.²Žð-9o€¥aÚrñ"+À`ø9×ÁZj-‡Ç¢iÄ«B‹k¯ZÔáGüU'Ï^p=SÑŸ…<Ç9ÍZ@Oj¥/?E|Þ‰`fü.ßô_B"zr9WWÅ"ãèUHÄ!yÃÇ^©O<ߨmÝORÑP#æ}Ÿ¯XÛÀv±¸3ãÀs>îÁ¯Ìˆô¨ã©–øü2ÿ&4–ÔÛhO7»�%Æaõ憺][Wûþ´î±€-%wû¼s YؿÅr “Ä�žÜ¼ø$ƒGÞbv‡Pˆjáµ6`zwÉä^{›­ Ñi²Ë^÷Ò7*­cÆïAêŠ(î Ñ´[ê’àñ½ÏüÁ•Úˆ•úZ|þÿîÆœš<1=ÿäè�ÛÉ%Ã…B$ì»Ú8ÆÿµK ~9V¯þQ 9ÐÅ´¨ÍE¯ÂžWø\¾éY „¿eròžB³-µFzÑÓ�î;ñê>èH]À¸qп�Þ„FƒqÜÑn—it"½¯sùÝ«ÅMCªw�©\SU ^ÛºÍÑ×Cu|ýBü¥²yý¦AK®ô(”ü}_U„ån�q …C“öu—tõZ¿ë  Y â ø�"D‹¼ÌRãr\Á·•|E¨ëj{œþ}Û¹ùL©Ê¯Öæ�ÀµÉÑ÷Òö:ßÔ¬nFáŸÀ\hÚÒ­+ÃWCâ´¼”-HÒ΋Ùbš{es©D)LB„µƒþ©n±x•AbŽæ6Ô›HWeH|ø¨`bÈg@”ƒÐ#‚~7\‰|ì'E"@æ¤ù®-Ñwˆ†M€(GjZ’¼ô*ö“ÖZ[�ŒñÖ<–ë»Àñ¾G‰tßÄ•†y¿®¨æÐ�WSZ& `ÞP,¶„€�9‚^ªâÝ6g¹|!þé+wg6„áò/~BïdÙô´J‹9Ïorœçu3P¼¦§ø¼DHZÑ'£I­qiÆåöúasÉ�ÍU”¦sʰβ Þš «­¹> �œ·Í×ÀW’µ²ƒ¶tÀMŒóó'{–Ï�3 ÐånÁ5ûó|�ÑÇ‘ãÀe8{±ùúU¥G΄{¨µ¸±§xíÕôöËŒÐ+™�Vá"�)»c"¶æúÈeÅW4üBh»çî4ž%fL–jßèÒÙ‡+±áí9lW8ªQ-&£ñq!i‹XZîé¢ ‰‚Af…ÿÉåfÐqÕ˜ùt �1Ijíí¥žIFŒº‚'vÎK€�e~xL×£ûVHüÚø rúŸï?O íTM$”RTEÆþ 8ãÐèK?­Ë}Îülk6 cÚAëºÝé×cHªdµ’j ? ìí³HE¤ÍãX0×T9GQ­°ð\`ìÔãWê«ãÔ‘#^1ñ…$ÆáÆm4Ôè1í~m.}Ë)NŒyêܧ±¤™èô¨×8©¥�>™ÌúØØ­ß§²{{ž’7VšÛ¨YfÁv]«ìEZiÒø:ãÆ ž‰½© ó8…�›&Jø¼Þïµ£¾DEÎÈŸ®c{Q„SMñÖÕw$ë@.–׋#Âàhû‡èep‘ðË£È1Ù“2jÿà2£ñ»ÜôLa&��]'×À‘¯E°r�îð÷Zêíz8á8BIè0À{9ÇvÅÅöesöûÇÕ´Ê”Ž+E\"Díì}�Œ«ÿÍÍût|st…ª�˜§_pcIhYâÍr½X¡ÔoÙÇFé0]¿Ï(TLß( ö„TbS¯läQÅÏÖö”2Œi1U D›¢['  ’ã–;Kmþ[äºqOP”]§Y…g?DÓê6•N¸*ñžÖ¨¡×¼Ñ™’’‰É:00¦9½¦}4yÔªåz�>¨otÉÓ†èÝ4�±Xüˆ¤%AS^O¢7Õ‚ã9B¡ÂeÆý 2ß«‚\·.-dU†œ˜[u’3ÅQ•�sý œßQŽSk�4�6F†Kšó v–òe“½h·ù¯(mÃ2‹XÆ÷1&õ%¯ Zt/a½Í¡c¸Ì‰|3jµ ™*§HDÓßá jê'‹z-ÐvþªŽQ‡o $¦o ŠI´bæI¦uÌYc�·Yl±ŸÊH rÉGÜútë0)롊ØÈ¹ðÐ]_†ДÖq2l�Ò33â;._XK 3:mAXK5Å]›Þ(gaMFËΔ٫݆‹¸õÆ !M l>‹4B+ß¾—"eúæi1|w]’ÉhÌpA1Ì«ÿ.G44o*^ù%•ðΉù5§³�)Jð’Ú›OWÄ20aŸ¦Ó0ÁueÂÙíø0Ó™ÿY*ü8©ˆ9foG`='<7ÒÕÿà ¦ÜÛ ðíÓ=Ã…L°«÷¯Jl*ª‘µÆïþ9'ŒV)gÛ©ˆ¾Õâp‰*b1•ü„ýž‰{'Š}ÛŸ†Ÿ¨úð–Ñtû‹�ñÚ%‹ê°Hxÿx>-þúÒUÛŠ»ØÆf gÛaƒü¿f3t«�7Ÿ.]GLßïjØô£r{¶Õ›“«ã®t¡]ÚpÍ‘7¨ ͹âií•·HÝŠ(¦–W*×ä½5?‚¿ôx$ʾ¶�N( žµ,Ÿ‰@º5]<+t•b¹n¤Ql¾œRã6½ºÒ*%CCÜû„�ð@aÕSU@5Ùd[næ}_OÑ|—¶+Wñ§"o'™.¯©­:Pó´gà$‘ˆ×°JL¨sˤ¾n¼JÜñ‘ê~eXã>‘ߌ@ëÖw=~�«Xþ÷ÏUFŸ80JxæØ�?�Ô«Ñé_‘¾ã¨©µ�ZaYªÆ Û*aü±ñóÖ•lhñQÇ2H'ä.É�®;"AÌX*\?Ä0òÆžú4MLœšÛ$ßtNþè &“Fúâ›1m`"ë·>­7^‡ %?X¾mW‡W8ª�’|§%ÔËaªþq»VvXUÁ6ùÕÎreØ%$q:×öÅntILD†H[Ãã¦TV°ÊÜ´åÿB¢µÜ§ô©Ö×ê뙽Vã³æ†)ñýpúcšÜy6à÷åÆVY±|åBèâ¯èã\È9š&ú®tç¢m‚<]PžIͯ[Ö%Wä¾Íy_ÃÖ3=fÊà”Å,îD0q�_Èík”ƒ^ÃˤµÊRK¯äŽV+U¯rF1Ãz‚Ã'UÿR12ìëéÛýüБח¦—Ùk$©ˆ{~þ¬W/Ú kll€ú*LáÞ'Y]c”Þµû(/ò×¢DÞÄMÛû†�Æ1�sk*Ùª·¯ôzƒ™ã™g‡n¾àS=îV4Úq¶±WÝ&Œ˜Œ øxÒ§}í|“&:S0nÈgEÀZP Ô[vi‹ãq4­‘¬Šic4#Ãw)¸ÈKMybÔ&�æ‡ér6Fõ|º>2«NW ñj)1÷f ÌsŽËãß$¦Þáúãží¡eòp×f¼ÏV¡ŒÞ&[g®¨íŒýS­ÜI‘îNm1¡âIÁŒ‡·E~ã�æ-Mc,^.Õ�®7/^H¦î,"M'›y�Úùµ ‡P4½Žø™š½×ÍǪ�EŽçéÍÎã$°w@�|OýÅ•ò�6ΞKÜÍਵÊf�º¬n+Žú·TƒÿùL±‚5›�ÆMÝÙÛÄ]е#Ùºx¼ošæN„Æ =�wÓ×*W…�Œ†Í§ü�/[Ž+†i8ì—_›ÅçGWÀÛ¤ªè•€º ŒÑíÅ­[v¥¤•æ¾� 4Â;)Æ•”$g§°âÑ"%é&ó*9’ÒÖþGçbZTéâý*ü=s]k¤üfH¡°]ð&è™QnMÁϾÜGV ÷=ÆÙ¤r½#Ëßœ†BI‘þéZu­Ìó-K«ü ^ÒÛú­ùÜ)rÞr;ç†kÍÇŽx“¼w›S¯O 絆s/® •äMP;ôÐD“·b£Ä·;ffšôCiÉ¡1è£?Í¿{T1ྠkûÐ#ØAxq2×°ŠùaN0»8Æð'e¹‘ËfÙ'÷�ÅiÈ�� #ý,Ó 1÷ÒŒ Ä�Å»Lc5Uük®]%%ûÃø.bïÂÀ®½OÈ?½ÌÌ wܪ73ƒËN>Åu| q<-WIfQÏÉæ¬•j{JP•üß/�ãË