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 îPB�*‚‚>1‰C¢!¡ù�ø ³€f -v?ا[Ðá*ªSáGè|óó?ݸrÄk½ázÕþÿÀþ�s´F Ÿ ÿÇõeç÷üÏ#oÃú†~tÿ—ýëÙËM_Rÿêõ~ôŠ_JÎײÞTt­€$EöÆCå²9ûþz î¬ïm£ÈS\Ôz5ÓèHwñ¥p9ëÉÞ¼ô=ÎZì½–í”›:¨-°À–¸‹‡ hpTu�«†fÊ{d•²H±eë €”S ÑÞ:õ`û ß]ÄómÍÞ¤8X’R«A¿Ø~ š7«f;ó½ÞÃÈDÞ2¼XG2.¯L~¸—ú±÷†£%ì+V€NQàDÂLØ¢Î×ï7ö ú£žAë £ü ’w®ºÛî‹ìÆÿm¿}™«2ª42‘|„†ü<KƒÍi'`­Gú©53æ0å¼·%l²¬b÷¦u¡CVÀ£¿Wº £kwxòÌIªæ+&­÷2Õ ¿û�;܉î¦á²1w÷H¶‹ŠU*ºÚ…õù) …Ø\çæI~AƒÙ?JÅŸq‚3v ¾ЋäŠ+µ)CŽàŒT"µÏÿ‹Ñ–ÞV n^ Y³‡8ÙeõVn#ßÒ爳»ø¤ä‹¯ï�x:1gôg¹?ês€ðf¼¥á�  ËÅ26ØŸx]V�(ºãêÂðsCØ÷îfÉ3#ðü_Dî:ÈDG™*‡�;�¯ëe\Yõú₹}8�õ~fa>oÒ�S†‚{ï„GÝJb<…}4ãdùñ�o”AT9ÌÔ‘W7¯ô¬£×¬äì‘�§�ïŽ Çç=Ojá—Hο=Ucú^g|åÚí§íÝÈxŒsN$äGeÊ=~7 iŠr1Q‚}»Kã]Ì¢·=/ÅÎ@¶¬žêŦ³v{ZV£H.¨ß"žkfy˜õÖlº•ìÆÉÐÀ$ã”Ýÿên}±ÌbXWoæ®ìDÿÆþü‚ $ÏM¬@º³æïf¾‹ƒ±ìÂ… fq þ1É¿î#uÒë1hŠ ñYȳ€kG¸…8³lv`w¥e"Gðú׺Q~DQZw?÷oÛì]ž¢Š#ö+¹€w$\¯Û³e⚇œ¥£g’ÿZ�Âið_,Ṥ½m?8$g›‡® 9ˆaÌáMv1£¶^?œóz7bhøsŒÏ|w¥l'{ ±ô䦉§^ S-±òY9�gÜM}ÐÔ7õãŒ^y*†jóIJíÍOçÓœ¢2Œ öí³v޾›�è$àEäsï:g ¶O»ó —*±H²œa^ »¥ÌümYµ&²èz9EU ay4à* ¶dV×èÆÖa̪¬ŸÕÝíÒ�ÅÎ#Þx—Û`öáÇä@£ÈþóRLúì¡é'ôí{8t�ýÆ!‚ºïÓOh€3Ú|pö¤W‰ò"Õüé—ØÕMaQ %‰ ÈϳãdœåŸ!lç3+±k×E·òéÀ®SKТÐ{EÔÓ?ô2ßθt7Mì¤Po¢Ì]Îê^ÿ‘ò6G„up�|“Öåõ‘â#Ç �Òl<¾È¬Š¶púíà(a‹ÆÂãÂi¨yìÿµë“ÚBF96m[ˆF霗.ØIÞó<˜&³ß2�Ð%eßyY'°¸º³)Â1*q­ž²[Á©\äáõœíº^ñП­Ê6¡ÿè7u,Ê’CJ#q¸lÅHÕîÃé¯h(þ;/@ùí®Þ¼ûJ�t;‡”P刖<)tvéÅA¡ðE3«4šQ»zó´J#|¼äÏ<†@Ÿ÷õ+2Üfþéle­ô/i_0òþÉæÎ„qÖ–õ»?06mö9·è ÙÅáÒòìä10Þ½u³Ä4Wúüh­„³§)f]¾¹Ðaî¯SñWº@ü´ÞQÞ’ƒYv®[i‘×�GÚû«#„ú/Üàì0ÞüÚmƒD‹ èö�HàŠæ^úžßg™©7äûjjí:Ü^ƒ ÷ŽÐ?ÙhëP§÷­‚Ð× £@P߉\±¢ÔÒ2°žÚÌÑÉ�Qc½â~Dæö™{I-p�r Bš—™ãòØtrû×ÎDõ1$§^þa½MCéǹWÂÉÉ'¸l—Çge~êTSÈîç\œÂPrÂĶþ¸™QòµqÂÃ;QÀ!H®Ð“¿+Ï¡ÁÖ^®+Sªm�öób5¨ú˜[·ûä…¯–9—þ5„´2´…é½,ˆY‘]ª¢áê"ÿ–6Œò³Biš^óˆM LìÇûð1(çæ$¶pðÖw�Y¾ƒ#qÞýâÇTŒ ¿ç8íè^Ž�cè“aˆ÷£ËÖaŠb¯Ÿè1µuypi¥ž®–<ö”i¹Î€:8©Ó% ©ZçDpxì¶V�`U]wTFRÒiÃ2ORu×ÊR$]°_MèhO²Ë0?ö\Qf5±2ÆQ¸ ®c¨‰å ˆ–¹4¦T¢w–ƒŠ#‰™bš_BÌ"¾øQDâwxŸ}½Ü‡¬ý12åeaNþÁÕí-ds8OQ!í7¡›„ ¯eÄo�ÒLwWJš5„%ý\”­û$Û÷weB´ís™)ðÉfa}PýõWfn{·õç.j¿K“™BuaqÕ}µ1®_Éö«·Þõb9„¢&’€Ñ7Í­˜•¥ Ú]K…³õ©‘àaÅÖê÷|:ôuš!�÷_ ÒÙׂߟä"j%ã\Ö>¿šâdOëD¡ÔcW§‰_d'¯®çf#Œ¾gíÖ0k'ê¦ÞÒ{›sô+FA]aç¶ÉwsíÂP‰ W§oø÷nƒá¼ “§RO¶´\"öwñ*6ñp‹±ßT­†×^<æ<È©± Ö<òÔû'îÜúÔG.Û ²ô¥•È(-Yíj±Y:žkÍÎ?æ�8ófžSw9ca¤êYÒùÖ«ØIÌz»TÔ@A7w„¦ CäÃxà'³w-TÍñR¢ŠÛ*èۀœ¬¹c*b³…ÝÀß¹[‹3’k@P«è޽ÒzwD�®ó º�"Æ.×ô³!®ð¿CöæÊ4�Ÿž³Ïñ–ç[û]$øÚHÏŒzRÞV ÙOæ³;t°÷›. fÍ 5ïFÅNÛR¡ÐÁ@çºH“´þ»`(ÝtšP"æãüb–q0è5vSè°ÜýVªqs×%ʧC[£½YÀã¸îL¥ÝÙ¥ðÔVq&ѪæyKê󎰃©{Šj‹!Cåc´[°à·Å ˉ(_Jòœùq��Rù·ô~Á2�ªìÚYvžªñØÍ¢,hnªh›ØM?¨*Aáù#^èX(½Šk“XK˜?:"¸0ÝÏ‚~K7Þj Ò¶"u#s¢£…¾¾Ç´u—‚‰‘ÐNð`vÜêHôA„š•‚ï;�ƈ@©T3Cò^ó"gq�¾š½+ƒÞÔù*ºo�÷jn®ø?æ•E‘ñËX£CG�˜‡—ý°ã:jUc»µ&ܘ Bã²!-:i·©þKxãa`´´éñè]Ùqø;ý(Í›YõÕ¶½}·±3èÚ#⸠òÙoåqò\`$Tžt$VîÅtá I¾2UDŒFÇB­{Nóf3Ýa¾5˜Z2øAæsÔºË ™hÃø¥ñø‰„C²³Í€á&P›yuˆŒœ÷ Åäb²ÈñŒHÕ¤MOÒùäÿ¦Ö¡Ó• ¯UUxg¼ºO¬‹¹\bŒY*Uëuðm½=Kùy¯^È1÷CÅŸ‘«Âÿ0ÿë¯Û"Í’F,ŠŠ€04þ(DK;À!Pr^0ø@×|œ yù 5Œ @ê�§-ÈÙÞEãL