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 €0G�*‚‚>1‰B¢!![Ýx ±€a˜àkO+¿wæ½É>qþçù‰=ǧÃôŠ7Ö2·àå?!|Óò³õ±i?g߃ëSû~hjìýñ˜‰ÞÇÏ �Lóñ軥GÛ?Úð 2¿bÀþ?L&ïCÎ`¾�܉(XÑ_šÕpôþ�÷6™5Lv`|ã"ª¥©è±ûÑYõþ§ºøÀ§ŠÅ!°‘š”—ÂÄÖmÒäŽDÌÜîIŠ…QËWÈ:î"„Ñ7wÚš}5æ­Ó€ZgÌSP#¥˜¾m’wÊ€Ìc7­¦ûD‚LH¾åŠ”kŽ�ZÉÞIœ˜j�rÅúÕ {mz#H¼)E‡PzŠãOì!ì,iÛK—KÆ€:èxçB¿®í/¥Û‹»=²ßhÃu XNÑé8ЦG’Ê‘æ±i¨�¯ˆv-É—Ùlºy1½oÞr_°!rƒ0¨´.ØòÌ|ùVh9¶NH.AEà0M½ã‹0Z¢ó!›ä9@’Y:°iQ�¸B29¯w¬Ï}Óæ61÷^ dTDŸÐÿZÇhÅ)áz ³äL®™FF­ê­›îG»“œ(‰FÝf­ÿ ²?8»�ÍC}Í û¶“±Òó oeLWBsmK¥'X|V<³LZšA>ЉÙEÌ $üm|õS‡þ[ vÇÎ'€«—ÿSI"äü·È˜ é*¼Ùyw*J× ÞØYG¸B¯.Bó²øÓŒ…ðUÐZ¬åKí®žó²þý­;‹´¾×ä+|Û±D¯û‡¡#…‡<3¶ø#‚ 0›løtI…6„J¯KðuÇ?W ¤ÆåÎ�Ì‚Ç?> ÇêäCè[Øy‘òº{×òfÐܤ~‚`Ú¿õþ=d¥ÛLgÚ7m¼®ËͼºÆúç²v&Õ�ÛP_ìc®_È1©Æþ ¾al½æè¥Üe·¡A� Õ²ø5¨-‘ð'*ù1ÉWá×éÆ-ž?‘_ÕØªÞM™ò~a$`e\¡½ôYu(…{➟á¶(ÏEºÕHeýðr!Õq*†Eð¢S\ƒyUx-S?�“¬ã¦àÆÄ°X[Rõ&ã¹ä§ŒO‘QO±9"1DU‚ɵ�+Ý‹6êy¤îfŸ‡š)@ö-pƒå…ÒÚ94Dö"hCºåµOO3/<„&Ê;#í–êq§[í]0jü} Ç�åWÅy–r÷︡a}%8šÊÐoù­‡ßcc¬”f&í±o’�Áã�4ÒJcbä ¶“€h·éÃêÕ4^­oôúÍ’ªj„zG‹Ë\:˜ÐÁS'•m͉Wz4À17ðFËZÒ[Gĵ½SYKÓn©\ŸcÞ=R'  ©HáÑÜžÏ�ÓAù¿n@ÒÿYû‘O>Ãá׃¾£¬¢6ow:-sÅØÖ Ž†—Š“¯i$'ó¨Bǃýáð­é¨˜„È.Ö�)’L�&L†þ†Ž81C“È@ÿMrãÇp¦/V÷•A–Ycá%í©«îE=>�á6ÞÍ(òRõ;°*ž”†ÙÂàÆCï¯èh|…DЃOWòÙÿø²LFCÔ7°Å梀Ô™õØHZT^—]0(åÊ­}>b{høÕÉÓ‡ü*Z˜À¿¢uÿ}òRÓ4Ž�sf�‡ÿb«½þ÷_ÛCމŸkËÿÇ2SªYWÉÐa`K1'Æ'}+FŒ¯és½/K!ã‘‘†° L¶Û�tˆ<<¯/»V­Éïq¹ è3ƒQѦçB#sfèsžúŸ×ç*gj‹9ê�,4H�éô@JÀgµ�%뵓|©­¡&åÝøZ›0kT\H9®îì­«Ä{z�šãÕ ÄRÚ­…”v$=xó’o3-Žó³¹CÓCyßê<ô™ZÎ^Á¿ˆòM�á²x•èwŸÕ¸«Ô¤´§å.ÇòhH|‘*875¿õKÉó¼u÷â0ënAI¹SÀNúû.Nóài†Qe„Í@@çv1È~7îÒ“êD±ÈqXÇИì΄ \^¡$Ì*%QòïV)è«1ùšå}µ 9— È@ø+ð[AUœsºŒ­5¤‘¡QÓ(Å ï­m4ñP;Lë”'”ÿÁ‰Š�ﵸ�3�g]€I—Å»(éô:˜û’¿qIÕŒáuxä|8×™¡¦!tâÑž—�Kï¸Æ«f $*¶%YVtê¡ê¢ÿ$‚ˆšÀx“ú–pûõšé¦t"äí¶Õ{©é7t%éŠ*Ù*Ù43?$újºbCœ÷3aÒï{ÑÒÚݱ2ØLfÔ·»?Íy‘ªž(:¸ÉÐüÞ%;Ú>Wò™TK8Ïî'W ¡kÚ³42"�æH×9h}�O@�ËÇœ�)¼XßÖú–ħáRæQHP²¢A^k<ˆH¹Y 4‚2vjL-v{9˜;鹚šáB K¿bOäûþ÷†.Ë"×ÑOzó]ⲩ¾µ%P†fϦ7Ò x».Ýû+o•ÇAà6³BüÏ=‚Ò»²êò#§¯¹¶˜n3QÙªá-±°ÿâÆÄØK±<Ì%—ðŽZ�ó‹Xõ/1Ñ)L1}»‹ò¾±¿í&°µ5“Ä­ò¶aÛü„RO6ÎÜ#¾­™‚gm�9¯|z(P;ú¤ÓÈnðvt‚ðkȽ€‘±p8µè|Сa6$…UœÏ˜.IøVïyÎöòPš?§øó7Uç§ ÁiÕZ8��=3œiH÷@"^™Pßà ¯Ÿ´ ´V½•þ¼µuÕvçpût?I…«[‚¬Ôtæ…À+ÏJÛ-˜Ž‚LŽB!Õk£òÅ쇙©Ê´$!£·Ãa'ÞdÀ¾4³ô£´”'è©â8צë‘k‰Ù#•»Ÿ'þõê0€CœëØêÒÞÏ÷ŸÃ6ýç�p§.Âf2R6å˜Û÷b¦¯.‰¿Ør�óþJðÕ»¡u6ðe%ä06zv7Œ²h²¾4¼¶7jÇ`�R·Ü³?Wz+r)7\Qnýn²—¤1<]þN+)š˜Ðú sÄÃtr?ÍÜvÑ¡­à}ú—/ 1Y —Ù€º·aèNÇ&*çEÖKÎ÷aÊs9£�•G |lšgèVÉ=Ú cÝ„·É"+o´öw„~ÈI¤öÇlª`ˆ>cýïSO½Ëv:ñ7u†´KÿØ¥g’GÈÐd$hWÓ‘ÆÁ9 kÂsLÄ*+˜b~za£ºôÕ]Ó®ÉÁÎî~]’™ª»[8˜ê[u²NXï (-ŸÄ†¾hòéHÖñØï(+ö™ÒcEGÎ5{œ=Þ¯ä�mŒ�îÛ%wã}ã¨ÃˆžË}ÜJù8/þ÷(¦/F[±�[¶ðæ"YIdTMñù¶Œ-NVÌÞß”m´2|5BHðÓíÚ«Äûf¥"£pÜ´ÿÝ·uÁeèÔr(΂‹Hž¸_ÐRÍbm=bÿç#k3Tf6·qÚ4ùgÒ'ôQÒÝoâS*oѤ;' ù!£…/¹¹üfÆÀ4îÇ©]èÿíûK:Å�U³ÎôÂú0�{â�öš5Óƒô»‘Ÿ‘p¤.Õ.C¯Ð‹«¦rcTF„’^„ƒþUOf7†ƒ´|ES�1X×– µÊf]+Ûrê?hQMn­wÄyŠ�åå} qd¡ÀÛ…+zª Écü='txøÉÕiØÔ\Z¸åGýœQCH$Aëj¡ï‚®"ÁqHÆJ4Å¢¯mˆ§Úq9ç× »™çÞ ‡·BæS1 Q˜VƒÑнŒŒÈlüG6Öí|š6—3åL�Jfî…l©4¢*8ú‹ƒÉc\WÍy§Òbg¬¸›˜£¡V·L3ž|º ÕqžNA~4¢[ê~øV´j—ž¤õú¹÷šI{ýçôõMyÍ2ßì8ÙÒÉÖ[´ ã´ãØ=x~©˜#t Ä2�3�ÃôC‚[¤%k[ò þkóÕ½‡‰"ð�^'kØFížÓ¿k/‹nTe𥠵ÈR±&½EœÈÙîf:Ý{çŠÍd;Zô1Úb¦<½6:áæÄý�Sß$°ûwÚûëH6°nbj_ˆP�ùÕ›´Vh*ˆ"‰z<— ŠGe^~;ö¶¥×(rö�kœäs7!Öµãð ÆD<ðÙ¸ µî ö&Wr ŽæÇÙxãérÒœ@Äô#šýCþ´?ÉÉÅ™f2×Ý h7±<æ°I©�w