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 â �;�*‚‚>1‰C¢!!ùž ²�¿:KBÀÇ×~¦ý Ÿgþ“Ìs˜ùúù„þ¶~¬ö#ók�cÐsÿWÚøúÿØ 7Ýü«ÚÎW‘)åG­®ÓþMdËü7žÁÝçý¯¨7i}Mí´äyñÏ`Ê¿Lß*ÿôùÝú{ÿ¸—óëŸðýp½Œ~ç{6~Èœ¡¥uRþÓð-Þ|§|5¶þ^ ÏD×—`Þ¿KÄURµÝá`KLj'å^)óì¾Aˆ«*fMGݽ¬f›T/‹ÄÆsvžX¨1%ðâ±Ñ=Øm<'¸9?ÿÓZ% ç,ã†×ÐGµ°€>á½€„ ýÏ)Ä”`ÑÍ*æ�t= @ýy%>xןÝ?]«írM OKMÜ£ËxXhÎás’¼%9Ó‰jú~ý¸y¤îëÉxƒN™g*·Ý&ðyOúrzÛ5]€£KÓd�VÒw™½¯½¥¦©ºà›4t mfçjxˆÇ‚˜bDS9Rê KŸQ«ÜBqÙÛtƒx¢*%tQú:ƒÚ„6«h›ºtù•åÓ´¹t‡34Ú §©ªj‚–Êÿu\`N.4‰ßgEÞ2™Æ‡æœhéÐè8-0ÿR1�e¡‚ˆtMÌü-þþþài¶äšú�|—à8Aâ:nËúGQù+‡Þþdâ7Råf½JLXôƒ·l¥$ñlA+^7cA|ÑÒø‰Yœé“¢Çkž'O;² æ­h`èÛó’ûÔïúçú?Æ|“Äc�çx9úÐEGUÿú>u‘O×*ò"à‰Å(KŽ‘b äæ6k5²PMäBnH²ªûÍòõ[5ˆß7aNRBÂ$ÞY#dž9oIi¡Œà±º>âN„ywK¢Ñ‰xïÍ_&¸þªño¤’g9é:  wS¿,_6“*@¤°JWJ= ~@Ì(£µÙÎÍ›ª2ÁyѹâÞôX"�!ˆÇ/Ûœ=(CTËìpÁéŽÇ©8 †Ó†Õ›‘oñvç`§Ïþ®·í‡-ŒB˜2à—´ûMÞ?ËqŒ0®ŸÌ“^QÅñ•3, y×à™9— ËPí†�|ß��ßþºŸuºW=_C.$‚èã˜zÛÊrÑ1höÖmØYt&T2®¥=(ÉF–{…zGçŽBYÙ f`�h,G…$Á£ð¬ö¡”<�¨µ5‰x>äuÀcJ@p zdLlõQ|ÍöÉ›èÛ^Žó‘Ä ]øþ_0–{í=ø6Ð5yN\ç�…–ý8™§÷Û˲ԠÓ¤1õRê%ÿý�8‘ÂË ¡Öc œl>f/bšRj좛0£&]`ï¡[æÀµÀÇ a-!~C^ĆäÇÓ~×£hˆ‰aج‰¨›î=ÿh>7¹aw!7%4Öö|S¶ŸMäˆ$hIîLÃ"¡+øÞ°¡DKﱂCÛÒã;`Vž"ä¬Ðëg…�)R’&)['Ñb’çÆGêÿTÎ_Ÿ]u0˺׊â÷ö_—ùf¦¯ã²\'ï�Û?Œ?ñ\t˜®pÌ42D¹I�GVöÚüµØ¤j~ï P–ê?',0[2X£&ì¢ ¢æ ¹ßN~Œ‚zæ†R,w�ïš}ñ›H 'þe,ÿÖ/©^¬F]¦êÜóà¶…r¯ÎNˆpþÜé]ˆ w*|£D÷g¹žQâË 2Þ8.¾®2„é‘áùÙ¸ˆ.>‰{]þÔì"Ò´Ox„ãÒÖ]2W(7 !1ši¢GŒ¾kþ_n1Š„aïí¾?ÀÒðÂkùfqBööÓ·¯€HúŠŠé jQ› î0äÉX�÷–žûh7´â~·] ¸ð¸áÕ>¯v÷Kq–$�÷ýŠÃhÊDÙï1ðöŒÖ&À8¾4kã‹´"L:Ú|>µò–`Û¾q3·¾šBƒ›Gìp°'ؾeêâ­öÏóßÞ§ ùÕ°4éßš¿hÀäyíH…Û5X€* ‰òu:š¶cð1Aaä0 óqÿ‘sc\úd„ŠQ¾#W?ÄǪþ¯òÝc×rºÚòNy±uñÏgºÐÁÆqƒ²Ÿa  ü¸#A–'Ež7$“·– ë¤öûZ��Å †“…)uÃã‰P»r´—6!«ŒEpk�M`Ï'Ãæ?…È#«ûï›'~0BAÚì½è b¹7û¡ÖUÚK'¾pÕžÖÄ?ÄyQ“™ e aNFG&#eFr4ž¸¥ik�W5°•@©Áßž8$ÚaLÌñ|Xméü—5)AQúµê›‘JwË)ú…Q�=ÉI,+ØÎ!ÉJšÎÚØ)ÖY%e‡¯ùúŸi�Úª:!ŸéØ'ýÿû@Ýäµ)oÅþ0X1À>õYLÁ)ÜÕ”õØQx'ìÑnyèò¸»ðêz”ègJU!ºtµ×%ÿ�ŒõWLõ’Ó±4 OØR‚/ŒÊÛwï…ˆÊ �˜“ƒ:¸š¤’ƒ˜°’$øÈëõú»}8{þQ%Kð€é„*è Á0&êpk'Q¹òÇpÐÑg fo a?BÚpÞKÕöq¼û-kFp³Ã …צҕ¦M£8(VsY›%°\P’1H£­„*0|¿—ï£þøJh¯Ý_”2éWè‰ â§QŒÎPCç§kJùG›b�Ô+uFLÖTíï÷¤ vÁ¦¨n§çc^»ˆ(Ä®äÛ•ª*ü±�†ÝÞ¥-{ûŒ‘¼s¾¡dúÛº™¨TEüFép\Ee�1h¸N{fI ÏîOI{W\ñ#¹9ãòj"²ó•sW`.ê'±§1¸™S�ñPÕöï Ð�À›#%䀙�½ñcKõ‰@U¯F™ 9ï6=X¼�°Sõø(}S›¡mêì_xMïmÑêbݼ\¾ jÙ¤_�i‚ \l¿, TŠ×°A4â£ÙØ­UaPriÂÖYF¬±�¦ºÉo¨ÀYxÉcŽ0íѯØÊ¦où*ZZéà›ô€Á$ ŒÏ1ëUT.sò6ñ_w›”–œ“1/:Ñr—Ž9y={ó�à`Tê\ cÝíLc"d…{pnÎHDa¬nÏÌB3äUËÍDÛ”¿¡‘¨fD1ÄáÍ[–ô¯÷ætxkJýør"Éªà –zÀ¾þGŸ;Ò“Ÿ’ü[ ªä{Ige³ióIÛˆž¦cV¯ó½L>ÁÐÓ”Hòô�Šxpº]�çá4ÂëCU»7ðëÚ)Ç�u ³²ÍÞ‚zÍ�W,i€¨q§õ”àQ®™ úÙ >¥Ä~õÌÍ@zž%ZWó·T’a+J/£ [j=wçûï›û£m©ÜÌ�¤Y,룮qüÕ_cýE¹)~\™VF±ì"9õÌEvž8ÉœšO¡bß[´­ì‰ÍÔ.Ûçž% _ö;šŸ¬×Ï"ÈÏå»Ý¶ØN¾|æÐø°¢×ÿƒrL¯Aš ’¹¯-Ìï›�o!·ð�RïÁ²(€«n &ÝO_ ¼ ›2� ;G÷wzÎîžf�v»ù;7/ßv��i�úÌLt†È|pêòöO`à§v0q¢ÃeP17'Ë¡ì6¯@Žâ#]A½qægó%Hº¥ék´zݦ±½rW=ÙÃ5 ÚË=^̧¯_åâ'Ûó‡UÓ¬¤ äÊHSþé"…{O$/S÷h•Ï�%7j8W µ¨�©Iç,-¼@;d±‘ro°²Î3g'À<+|£] gu˘4®¢ÈêêDÌhL ŒUßB²¢äp