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']
RIFFZWEBPVP8 Nð9�*‚‚>1‰C"!!œ¤ ³€i4mIßÌt|Û0x·yŒhðÏÈg©½œæ‡Öï} þSöÃïÿ˜_!þã¼oõ-ùî9üÓüWôïÛ®ëCèíÏÕ¿ÓþdxÝúAöØ ù7õ¿ô¾¨x}ÃþWëÀóë?ðÁ~Q|Šÿµþ§óÜOÒõ¿Çüÿ.þ§þëû÷µw±ßÚ?e?× ÛŒî{Ûfíò+׿½78@»°'@7v„�¤¤4öÉñB”¯ Ž0ôY®Äoš9¢º›k�vvç¬rT?ñ¹ ¹Ì­ê„CsÄbI¦�^º—<˜7,ùŠ€$:´ÞUkl:Êð$o*NƒÙû‡Z{ò#ëÀÈ,&Å8æšuYì^öï7õ¼Ø¡“v•Ýäñ>è£+ß%¸^›,ÌVw6&n�œýE¿ÿ¸©‡Ù(’ú¿Ó­•¡Ü+§>‚4™à5�Šë{xìŒ7 XS1ªýyíù›YXì÷˜âmÉÀv –ÍÕ�ÜV9<jð…ý¤ÞŽa93ᣖŸAý™ì5�ðDñHèjÜw‘Œ€\rÒÏ(è^±Ši-îyÿŸþ±QzÅ<´¶¨T�k€þÿÆ ‰‡2ÂÅ£@ZZ«.€]Œ£ibS6šë�Iù¸Ô•c=îY‹RtH’!"O?›ƒóEÂzÇ€Ž$åL”ZžŒ7BcµÒSþa”Ìß(Çÿ�|V£¤×lKϘh\Á¤ÃÓN`C¼ñ¨Ø¥Eµç8²"{  ‘³%>»Ýá ÈK¨dK˜÷«Zîé)Z‚‡ª�Ó:Öýâd¹l ƒ.‰oí�°ñ¥KÞd/ �Ü7n¾A4j—ù£«ÀFòÃ1÷ªíÈBG\!'»[Zü™JëÅùðéZ6x^Ú"sŠ?ýÉ÷”/Þ�†WŸþ(°­Û2“í*m[ÿ#K“\:*¶«ÏÙß\\€wG`™´§s*å¨-Ôú>:œâUྶž;~Xm,ýfùæTTnÇn1>Éß²™Ž µ?G§¹oŒÿ-Î8”¯í‹ Jú°1‘”½÷«Œ"ñ× -K£ù1iîì(›�* h³¹=ö�[…ü[¼:4çX“²æªÉåøœf«&§–¾#Éÿí17e¯›5;«ÉÄÂL æ ã ùÙv0råF‚ãb É �‰h‚P ¶_È„Œ0|ÍA>NÀºÂþaŒÅ4 Ñwa”ìl{$U#;Ç[]Byk£DÍîoœªxþó[¦%DÁš 'vi¿ŠÙÇ©ÿ �ú­Vt¹;;^¤˜ Ÿk“9)­šè+r AòLDÏ>ÿp¡‚øyÌ//ìË\q# Örú"‡9�YIF… þ˱’�zaâÉú~%Ÿ›ç¤Jg`Æ�.ûÝxƒH¥ž4�¤‚{!Ëp�ÇÂÅ�'ÇRoGÙ¯FcÎX�íîug覀Gà¤gÿûE¤e$þcvîÂ�½Pjcû9¿âÂ,ú켤Õ98?�>ͲÀ köª£{“7Œ=¿sÕ[غ+BdGZ@¹=€=)xA@é?‹•šJç3\¾á)”ꥈ]‰ VñØÏä ‹¾Ÿ‰Il„ÕÂÞ{/×ù ¯–`®/«n€KØ5Á¢—Ȳ¡{‚®=ZÅmW”“»ÛÅjI‹Àq©^ßsû¹ÝdïäÜ÷HZ!¼YEßHú ¶žeKWÝ8§CüD®À)\ ¥Ïê¢,ÿ}ÌbSËj2Ýr�tTɪÌn�Å~Â¥SÁ$5ŽXÞl56ûJÁÙ=‡”l¹þÝ @D¹Vmž@s vìið’þÑ·øî€Øc,©áKގݺüôÓügv©Í*ä—±q„§L«žF–΄Jö,Õ¨Fî�>o›„ÐT±ÜE®€�ŒN¾b¿·*,ó-ux‰|“§®tIäÙµ€0ò{Ë›jG'+ðH÷¬õ*0Mj=�Eo¥žàkOe¹1ä2Q�È¢-eY˜x…iL³³;äk³Ð›‡*~>ÛkwÍÚ X³Œ®o…‡3–Œ�Ùh0ñÉ‘á­ÖÜgæƒvÄ.ÿ ͨNqXÑ^¼—SÅâé¸{ºõ©˜uöÜ8�E’ÜâÍDŠ@}¼¾‚‘Üâ“fØN߇Ÿ’K÷“ 4\ÃŒ¸ñŸ€Þû»WÕ?Ñ%;f¤ïß¶r:دÕn¸7ü ‘b‰± =æé‹˜ZúU­ssS%¾q¥$èö)m™»2'oåúï+»Ckz& Ñ<’}Æ@Òf=‹”iïï¿*Lt½Ç}ôn—î%Ëçƒv1;ò Î_&U÷rî‚+&hĆ»k}ô‘”‘dS|viãúiæ'ýjùÿ›øT~Od1xo`¡ÿœäñbmM11.xn3 Šé{um…š4ÒšNô¹©ªDEK —ì Œë@µÊ™Ô¢þ¥°Éal0 >�ZácÍ^5x¤ÚKÓ(¤éšÁ&œå5ýsÒŽ¶Ä]3Ð]XÌÖý«�ÖÕOBxÓ1†goÓû]Ò:rš ÃÌ—Œ±‹¼}m¾ô*¿9ûÔKÞP²txž …D¤å®îu:m£³ö‰ÚC|ºsfY³Ñ´[ÇÆ:z¶NëpmñË–�ïЇ@Ñ?�9Ê�cœI 2&ïAc¯ ÙõŒ‚dƒ¬êH¯zÇ%oð¸·P$ô~yÉ^Оd¿`_Ï�ØÉÂ4c A0^•.$®„ºEw_–GRx&^(¯®Ø±Ú ¢z³ �XÓ´‡ûÚŽî<ï1Â\ …ÍÏé¼ wŸAINFO˜‰•VjŸsþ ¬ð—»é>©cŠ˜ƒBr; TÕŒ_�i¤©wä(ÓøiFbÚÔfvøk`ÑTÆR¯\MÐO%˜Gn�ÝæÞ¡ÄIæý»”\ņp/lÄC+Eæ«’ ´ÿRà鮩{‚òd[7ò`ŠËQÌþÉb^ÀlÚùyƒj:üú8 yì ¿Ö¶€«œ¾ØÉ ÈÕ‰£ïÆÈ­£¯—dÈå2rÂœå­ ŠÇJï;³ þMêøËõðÃÊKòJ¨¼c™°1eQÆÆ?:©7ŒÂpsegýÏ Fè÷ýNõ@ŠËÖ“x†,Ô½m‘<Öø'(|ãf½·nåhRðFýøˆïrG!Ϭæ#íÊo‡'ÉùOø­û`‰s<, ¬ ‚{Æ2‘"tx;BùqÀ®µw‡:¶¼CaÖiŽª5©Îÿe˜ð¨‡íä|Í}våò︓¤8ÒV_Ä4c„õ°î(¼ˆí‰J”Ô¾�°Ì¶g°rì ðå� ð«öQ"§R¸çSÀ‚ü¢Ö#¾ÞÍÊÚÍŠ­\íôo«T5²)õTÖNf.;EC&Dø<0"KøŸ5]œŸ~°”r­}×+žÄçÚ““�%Ç%&^d Æ;aAÐ$*Ÿ°ìýYc¬­ ŸþÇvá¯íÖ4ÅR×ÑXaüœqvÓŸß1Þ8`ޏ¡^yÛŽ6›ÑSéš*ŠšûÉ-•<4 e`"|¼�º>H«ìMF‰¾kžB‡ÌK-Ñ¥M`Ç„‘`k ðÒ@ä`·Êã¹ÂöÛîݭϵwý^kj÷^«Š�BžMM¸Qé`ñ¾ Ÿ…zöýÓ�}ˆb—°ÜúVd~î&1Ù V¬�™tS§ûñxý‚�z7,ïlk/�a=cÉ£[ÁöÐíª&Äh»1Ø8PA’ wÚÏ^IÏ÷í`±wñÇs¾½{Ék1úáµì¨äÙ$ef爂ѭ'ûÊqî§Tß¶„4M�lÎ;�It‘…Y”Ø’¶å£Žu‹˜Ûb{® 8‘5±mçðö$Y„ˤÇoà±Nyì}ƒe“o“Ÿ¬¶!¤i7ÌQϤÐG¯áÓÔD§+Q>K§<9>.Ï 6Ñ¢ÅÁ·l<ÉLCó&©‡kM³À�rÒ¤¬ËÕ‡&¦_Ô䜂ÂòéK$:°=I R” *@�(eÏ#9ßö’‰¶¨¡3 êñàn&÷))“ýTòè§I–üšà,‘¿ ©j�¼Ö‰{n