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 ìp@�*‚‚>1‰C¢!!&'1ÊÈÀ bÃgÑ ÿÒ~Wû,ÚÉþ$ãÝ/]¡þßóCý?ΟKŸâ7sù«òÉõÝû3ìú“êµë�ýÕÛËkö;âŸ÷3õ‚âµ­» üËþNÑAïø¾;�Ä—Ww»Á�Vïy›yÃÿ[̯êþ†à=cÿÊòñõ°Çëïý?[/g~Œ²qí·æÛT†yèÈCfð+Z5Z‘í¦¹ ,­ùpÔ=¾†”¤ŒS ­Amù�®¨¶;#›=B‰¯8@ý€ß”¬YŒ$5¢ ¾-M†Ç8ea»oíƒ÷�"e±ìív¿ÀŽIÑ ×žã2îéãLé0›ˆœe3¯Í«‹Ûáq©~ À€þÿ©²†¨ƒîeð2Þ8ö–/ù¼ü|Ì«\úiÇÿÖâ*ýœ—îÄñ#Ÿ-ž’e;ƒ/‡ÙZ:mD¨¦P*‚Ü ÏüJÂ(ôBöÑ{C“Z&;´_'Gx¸$qÿ a�ÓÊr)Q1mk|ø>ºâM�™QA— _ú<ý’éG‹óÇî÷ñÕR9 çp°¶oc*íƒè7žLÚM뀭łWÔ£P�"su´TUm²¢ÆX�÷Ó€ðD@&É$9墊„d0šÔøMïȱ8Ne/Ó{õfÿo*‡ ­cWÍgÃF;HL öӉͨè¬Í´Á(Çòå>2ƒŸÌº’l“¼¥¾uë:¿¤�ÝTF¯†¡Ô{¶míÒðšH�nfÜø8æWéc\ Jy´ª�¡¼–ØÈþdc ¬!XF¾”On†ÌŸC(/L¨/X'<íma´üƒÃ�©VÓçÊoUºˆQîFª1t§Hª»9œ# øm¤HÒ*9œ¢ñt_ÀŠ˜=ƒ�€`ic–A4k†Û²ôH{×;÷Å{Œq_*WœT[¯íZþ)gðÁæ[ò¡2 Tz6f >0†R+›¶_¢|Í!SK¯Þư¹û¦¾¸œÐÕ…:ê´XîшýÀó2…< ˆùK £ù`F‹’6¾IU*p_‰mÉ™ä”7û¼–Áʽ5Vƒ©ñY¼E׺\+÷<‹t ý5<&¤ØWõêo–éWWçê!Ï‹J/?*[Üj"÷šš-|çÊÕx@pRfC蹆QõÀüúqeÊjžxXï ´Ò†òŸiãåò4]A)Xþ[Tå3•ÅšÄh@¸*Ÿß1tŠ½Ê°Wb åsHºm9� !¯Èrd™ò(௨Ĩ»êw ˆhKÔG/à¼a¤¤ cˆ¸®#ðCA­IÊè4ç;–ÛP0ÃKLÐܹ§‚¬×£ðµ¢ing9Á§ZÓ &§Ó,ðˆÈ[ÖIϳñ÷vWíY·Îs³Â+tÜSK9ǨÏÈc>bb73ësìmÝSJzÀS•tVÿ�GÓ'âpÇ?S�9‘Íagg9øv� »‡þ#;ÛÉ0ewûûoÞi!*éŒ]VÐíDÜ�›2>·ñ/¦$.ë:ŠÞŸ|›‚¨]zX”n’Ïæ(5¥ŒTìÑJ¥?Í—•FF£å„gMëGèLoÇö¿’*xǯ_<æÔÿMw,r®».˜e5úÿLNðeICGÛû¢ ­\Ä:ÝÒðéIÇ#AWz‹†ì\�kHG ü¼E+Tð›ì‚+È1iéoÐBÇ"ƒ„¦Ñ:øö††Í—y¹1ÈOyþ‰H²Ë]‘ÖK¶=öý»`gHø/wªñÌå}ïl¨DžsX�¤ÍçM¦É7ϲíwZD%˜¯ïßà~Ù‘·j˜¼»Ý«›'Br®h»YΖ'ˆÉ’%€÷ìyw%Œ›[y[ß‚æ²3þ÷œ÷Íʵ—…TÞ× h˜UVóç (Z9î¨Õœ§}T–bTz-ªk�º-k§%+Ñ%Œ^X}D=ƒäæ¢-k^©z•NQ±óÙ§M�%®s4�}„ésÈ4›0:¹8²¶ýÑí¬·ý`'b¯�&‹õ8Œ™ÝѺ(l¿€´QÏòfK°oi~•}ði‹í� •{EÚsiŽ—&‘áñÏ2>ågÇߺϓEÜê­¨• ÷·§5ö‹Â练Ôj*d2e± câ„c Ð`w‰=ì%A3 z0ǵ*¬PÐÆ=`®|r¬e“ÕÎi24~(¶¬/ùøÍœŒh`v©\î—ß¼N³{zÄ#m-Þ9þ—CJ³+5rÿ næL†íI�Z|áGŸ!Ç%/¼\”¿ÚìjYÌÔ€WþÅÙ ß[ñ�|6=3Ïëž12~gZ8ýþöéiðj_ä½>õ½£vü-Ïȇ�—l1�<ïïeTA%¶ Š®fÊúA¦›»õiÝܼ'|]ô�,'êµßýNfë+ñÒv}ŽQ�]ƒ{ úcülQ‡ûb Bì(·‰î4ëó�f[ãÜÅÚ?Ôi )»“\Ë…Ïù?Á!T]1˜Ç0·g|ìØœÀ°œþòÂAW‰SJÌW¥JHÆ£Êà HO�†Y³ÑÂ�íŸ^œè”@fâþ¯{KGÍÃ5Ý ‡}È!‹Þÿ 3ía�9¸ÜVÈ–S*ð’”¹ófºÌhE—Ülü6ë–Ç)a{m1Úd¸¼Ñ_ñ¦åܬȸîž`»ü©©”ŒÖƒi¥eø.Ê$­�Eê×!²ß‘Š‹ýÊtç�¡ç¯¨¡å´tžâu¯¥µª¨ggX³ÒýÙx†Ií°F”Èù%+Xð¾õ£þ4>>„š~ Õ?“�ëœ�·³Þÿ45_šèÐ_ÎMEÂã­¬Ý[¿ü™Ôך8È£?í²�~ânjFÊßèˆ~Îiêâ‘ÐÖ4Œ´ujο›ÿ–Xö¾;ðï K¥ë >#ÿos.�ò/k²}“}N>z³TÒïhž_ΤhF  æu5Ÿl<ï®g~f› �*˜¶»6N/ä|Yö÷›ôÐ ©ê[†®ÚÍ�û›ss²Âˆ—‡²êލ™Æ¿?f(ÍwÁj[cÌFŠù® ²fT@Ïö‘_Y Nj TJÜÛƒ*�ÝêÎêQ�ú^êÙµ,0bž;gyÆ2qY>ðL ®§Z;ø«Oø2iZšÞ± ùçMÿôUï‡\áoÝÞ¶’Lßä4¸Wîj™Ü‹�Ñᦜo§j“UÓuŒÎ‘Œz¹”/Ñ èåxTݯÝ'@üQI‚û%²b°¹ðfÔFë£ }ebICòÎv¿×lä÷n33T¥ …Bª@v¿c¥àd!üÈP¨&{¯“Wà ŠËÓŒIÜʹÀ$A�¢,ªó…þ¯¿Qwûš~&U¤xñ½˜ëL£b§¶c·Îì³”×M eüj÷÷šçâ”R Æ–$t�¾%=ªŠZÝoÒܦ)J–:f¥IÎ�…ôSöÏÜŒûRÒ¼¸?Ÿ¼†îgí�+W=>§¼šÀÈGؽ_3n›’‰ÆÚ®¿´ܺ`[XÚþTÔîÀà«âævÜ