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ˆB¢!!ºž ±€fÜFNü›ÜÇËbDïç½ÿ•ë›pW6GN«å„þYþ,W õîoøž¶{kàí]ûŸ‰è7¿“¯£ûþ…ôlÒ£×ÑEY[£ÿ¾ã/äÊ:‹�ÌÍøð`݆q0èø3¿wÌ©¥êׇ ðËOØý‡jö šƒù™Ê1ƒd?Í×< Þ H·2ç-§\’%–Ôds<þvÝô‚ÓH–�»¿öfÕz �$R,ŽŸ¤®Õ_°·!“-¡ôRókhZ#ÛܹˆA޵’¥gøBÔ&llÎ/ýÜ…R^—=úçpïÎk�Ó¼Ý&í ~ñ¾«¼xß¸ÃØ'( ¾ë~йÉ$³çVaõÔ_ˆ&‹¢†7gS3;‹ÕW=µå>B"%H¼wFãÕ�ˆo(ßÚ%UÖ—æ7ÃÁÝ.€(}M$)7/P«FSóU%Äö§í§’ºq´üŽý Þâ° ýÁ€à^¥üÙH€©g¾½ó¯Ë[é)MåêžúºdßvºUX56êa#æÛ,ˆyz ¯ãZ±2w¯Û³æ ’1ï¢oüBqØ/G”®íšq¿\˜§¬Ó`€GÇ6#·‡R P±áÇôòËÁ £Ïرôè[?ÒŠJlM1“ç„Ûï¼à/ð$¾#›üúY±ý{’>¦BIã+³~^¢°þþôK½`*Èb®z£ ‰ÆÓ˜Šï(¬ ªÿ ótÀϑ؋ë%÷ñ4îEï”±†_ô.‡E®8Ë»_TÑ£O/F£8»©ØZHKÁ¤ãðCkc°Æ /«×æ“Pû1t‹�Q¬ûôÏ7dÑô¡x¸×Oðé>ÆFPwjŸéÞjÂÉüþU=Ц_^¹÷ä{Ré³ ?íÌhÆS"¦O¥Ä.œ2óÀÚ*íò!ü¹�B'3NÞ<~ËnkJù¾¬Ü:ý2¦´žµ÷)ެž;x³€Ýµ ss È¢X¾4|é¯?ARZ�=é*Hé?üL<ê0åª}jÂnUµ¹¼¿þV}+f´gø?*o™O c‹²œxÿÏ;ð!éV­SÓ¬‘ )AÓã Gmfͦ‹2®;3ƒ�Î%` ½:>«ŸÆü°k×¢ÜC¹j ºä`¹ ­À ®§a†‡ñŒm*ÕYl–ïôÊzDì_4„y0 øØé«nã�vÕ:•ÜÑÝãË­P¢…„EÖ§\ƒ0×e¥ñjxÇŸydô„s·2ð©�ÿõ™J¦D+$nljž�lFJ(/Ði>ÆYÂxÕöÑò!™hc`Åœë%»Ïpe Ü: I³à%yÄG�2.CB¨Ò¿hD` ©”˜éЋ‡‹ŸÈU‚ sVâ÷rVÕÞ"65�Î7”ñº.C”XWû6ØÛ(Í�"0À(Èè÷äÀ/ƒjÄU¼$‚êSL8‹²´€­–+<�.�e¦nmaŦºhYÔl-Ðkoö|•øg^ÌúË# 8Þµô¤7Åêr¾)òá%,PI[å f‹(€˜Íö0j½{�â”Ñz»'7›.™oDs)Óé>(“M¤eøªƒüP!Áèèø7Šˆ&5�þE—n Ùæ‰D|^äš¿ ü›ÀF#?H7ûÐçJCë{‘ˆÔ<·l£?^X¨ËµŒ0í­ä“ C@¡ˆ-Ÿ³åÅzS¥Åå �ÃÖ⦼‡B…@^χ>É» *mݨè'ÁºÔ˜°×¢ñdG#AµÀˆ/BÕ7LmÉ8úQm?Ç—fPÝ“Áª°Rj vĤ†Œ{‚ù/Q]WJŒ³'µ\É’lª¯K£Î*e� ~aÂTV¸w zÝPnŸ«ˆžjlë};ÞµÏñ �õÃñKÉÁEyrëÅØ0N*Ÿ¥zœú×_ñ»î%y͘T·ë¥Fœ3Ødü�pøÍû`s´ö\0À拾z�˜¬ G‘tçt…½–SÐ5õË+H™n˜ýéǽœ&àÀ°:Põ©l¸ J.ëÀ^�ö¦u‡/b(Ÿ7JL‡ þIŽïŸ,‰%À¸FH§ Co?N w’�:™ÓÇá‚´¸¾^Ge®‡Ù§R¥[-Å Ú Ó�o°ÕL§C™œ~D�mÙH6>ˆ%Ka}¥ýí‡øÙq$V* ÇcFºÎlEÌÄéÞ²m؃Ùd3s\sV�¼ƒ§t)‡}®LÈh×,�Ég´ùGãÄ3ªTÎ1n×mÐ.öø^œ,A$þ§p“ÐIêçóò{ÄÏ·„´@f·BÛýò|Õ&üÉÊ=Ò³„’«ÆW€ëdv]cä“<½¸ÌënÌ\W0ñ½3;(z³až?—[èI¶½™%É_b+T-Òy>fUPíûw%Q¡^‡HÔók¢øì‹5'=ÍšåDÅuPcO0;¿â+Èì·ø¿Ãn��ìRr5W»ã$.«ÒÛë{ãH¼ksŒi*× i~äß8ê‡PÄiX–2õ±eêß ‡ºõ~T0ÈHZѲגÏä8J%æ'¯M— uTQ¸¿3¥´…_<žVé'ºä’¬N�»ŸXöÔv32{FÑ 6¦´S™JHUk’ü2öÝÉ\Tð^´ÆgDͽá=‹ß@ e¿øIkp›H,(´ýä�)ÍþÇþ°_@ é/ŒNX^}xF‹îlÞïöf¥Ur�Hp5w ol þŒêd³ìq‰î0uh5y'—nÃá24·«ÐˆƒŠ7yàãX˜p .i\°•Ï hç�\|?lLM#¶~PžK6Ù8’wmRv!2Âò[*(Â*„·,¢Çÿem«Å=Ò~Æëÿ¯)¿�ýè±Írå×a§8m�fø(6jˆK~Ò^Kžš¡:®LÑ q€_ žx4údÎ>bºÉuÇ'Ë탛é¿?9ÆtÆ {c\¦ Í‚«À�ÿ‘ü{Cþ—$•­03µ^{Õ}Xe…‰Bhe}Cˆ#YðTVõû�fÕz3U½%Œ gAýž§¥}hm%ÿPVN�9êÈz vwHÖUÕÖò‹aXì-Òa÷¸²Ù~¦cܹ0»âÊË ­Ž©ø´~¨w&=ˆ�ÓÚÇ Ø¹`­,˜Í-ÿ%^ïuáxh!¡´sòJùý–À€Z±�jXùÔýC‹Ä;a™-¾HðHѧXxôϙðÇ(Šë‘ùkYôr7h8ã40_M‡ð°×ë€Öi1‚_çH¥ÖÀ:AY| ˜¬Z+ÏÛeM;¾Ìþ±°˜Í--(¼ÖN^v$cÁ¨Ë¯*Ç44)¹­W»;üûÕ!¶�ðˆæXRìðàw1›†Ú.°^wʰÊÜ. ¿ø™[=­óm?œáÿ!ÕÕVOølšrõ“W(ÎbÎË–m8)Ì¢3“ Ëü–”ˆ °š(¤\ÿë3µ è]<îžÊŒ•~Mþ=Êó8ÁN•9žë…œèûÌü² ‚—gªùÉó—›O°>~Ãø&¾ë:Ö.›Ï›¦*-Àq(2P=º9t3W¨|bˆðaö•ËplTSq<æF%dɬ/1˜R9ÉćÚxgøµH‚� ºtæ–ºvÃ_)x·Ðã-éÚYÌØ�¼Ô†Õnp¼+Y&§�®ï> •“%Þ4-jûˆðMg:‚”6ä+¼b 8Ój(`YCû[ø*_{™q=†Y;§j^º6ÂÜ3)^E•*ýŒ͵‰0ÚŽ ,Çžã`Œ¯�Ï]ß"¿ÕùôX#¹u.dy­±:)fÏ#ó×]¥þ‰ý¢D褶nNÓ}�!'zª2¥kOâ°^Ê€ÕEÝM¼Xb@vOPr�¿ Û°ô¢}1 ÌÃzí�Lð\ K±­C=«¼¨”óı6ï ‹ÔEëºGpHc DmÂŽA“¢uX·äSv|œ§'€Vç�º€Cäÿž08ª€h�‡)$ËzýJè­s