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"!!™]ä ´¶3„Þ¡~ÇòË×÷+ýej#ó?Á_ªõçý'|?+õö×ùÝí°õÛþOˆ¤ öýWÿ‰éÏüO _»¼ö þ�þ öGØÏÿ/õ>†þ§ÿÓî+úãÿcÖÚ/îg³w왊-ê^²™•©±x…ÂáòÛö ¿BŸ¬‹¡ƒzÌ»!Ñu¥ÄÅÄu‰¡#ê°º]·�x“¹G¦°lÑÒa™Ñ…Ž©0Z1!±HÍ?×´ãP§µ;¤õç¡ô¥�±ùX'�´ˆ¤²iL`øÚfJtý×8à#ÏuÖvùÃzBK“¡óɦ\�ª‰ «ñcQiGgÜ¿¸}š`~ïí½P)’“$5·cPTäJHžÜå¦f#÷¨b¹^�¸æ" "ù¦7�ÿ¥>�çúYýçµ^6¨ßpð÷?%ö8ìGÈdLz)P†ù8¢?:‹CU"¬4<¾Å~�aÍ~ëóþ¤Qæ4†;–¸G^›»»ø�Ëú‡C³‰’Ž®\X1õòê{e[‰ ¿àî¬ÑÕl Œ|ÅâÆˆ‡,[-°Í«>q7y'p]dTÄQ*†ïDŽ�;âïǬ¯ºâ 2ÝC±Ÿ²ÎÜÈVð÷:꾡%Ç}õ¯ïÇC-»•«Èe¿È�—Ä<_[lm�‰Âåú/êžUËeÃy• ‰}HŽÍVëÊóSŠÇsSô’Œ$ èH£ß_…�z•®¡Áo l#¡Ÿ%ø(0V³»u„aNŸ„_Í‹#æŠæì%Oš—‰¿†N+¤G˳`ÕÄŸn2b«q�çÜÞbµtÞó¾‡s0h½Ob[ŸDó÷ÞÈwÉ@3|tÝ&4Rj½�± Eo­ÃFQRV#Ðm‹{:?öÒ( /†²@à©!äØÚt6mMp­«¢YrîS†]®7èò¬}•9E½\S"³‚Ùkœ²ÌÖ£Ý{·vn"=tîÞûvîV]¹#¤{>'�÷)ðˆ(52w5m¼!Ôj )Ak¤•kº5¨hàÓ]ÕtPŸ‚¬Ì4«ttü0Ès$f‰�˜Üs½%ÎŰ;ž®R@^ó°ù˜ ñC¥(edél³ÊíÆL?Ÿ.&öØfH°¥¤Æ�S t;­zÝËz&0õ÷p­úýµÁ2Õò½!9ÐRÝq#lÄ]Ž�¨ásµíLÿëÊÚñl>]È;ñÙ4�ô£÷†ÙÉ̪‡¥­¥Ò¨o¸°´<”œ�/ç‡^qÒаù¸Ü䇈4ßÚøû®¨ýM‘Të’tÇa^¤aè¿æ)ªID~‰“¤�í/~9Ø·Fíkûƒð{ÆH{à‡Ù:²ÒJÐQÏydyw¡11ÆjÆÁ_hÜ?—V³¦™Ú aµ™a&} áãný|†sEëÇ!¸NükV+Ázr+'AsAÊO•Œ$«×XÎ ·Ù¾¿ú¯ O§Z�ªcNÀ¬ôŽ{¿#ñ†UÒoD©aG�ëeŽ.Ú½.Y݈覭”£ÏW�RNPì”On“iô¿Fw…²�)9ä› ¿|Ù5FMõ¢�.—ÑÆÙyPó0?ÜæŽ Î3�þBJqð=ÇÄv“âÕ˜–ãgÙ7«ç±Ó¾¿ò ŸÓ5WsÎäü¬;xoÏb¬ö±%})¿éÒXÇ#™ëpÆŸî$K ø-³‘�ÐÚ¹™²cœAõ·ã<‡Á-nîM32€/ ù…Db¡`€º:ãŠOï^ë ß»¡ð7Ä’XT.U ø³›izAâQÚ|ÖÃTadÿpüË 6¹þ%]]F–Ëû2m½–'µa£y™¢ï¢y‘T03ÛbŒ�VÁ')ãñš’xGBl×{…�¦îÒGj¢`¼mžÖ‹D¶žé)…ÜKSC­’•6VìS+…Ç:ãžÕ(‡‡˜P…1‘z­t?¹C≅€ád÷c¥‹ùùT¬HG»C��WöõÁêFøhU©ˆ;vØÍdñÞ`lŠSû�Qïr÷þ¦;Ñ,î …Ý+ý4õvJ#D?³eï Þ„ÿ´¸àA0ª5ùŒÇÍ÷ØØÙÀLÏ‚‡›¤‡ò›€,h ¯ä9¿Îƒê­œúü�A—„Koƒô’Dó�'´éŠüg”[û(_Ž�aEtÙ>tný>ÿå tÃwaÈqúÚIpMÖíHùÈ�¤Ñáu›ö^6Ù€|ùRwJâLøcÔ€-öy(¼‰…¤ùt.²\Æ=£±1¾Æ%o4=�ðg©®$Óë}¡ )í` «Ð1È™ð@‡¨L]š”ÓÙ�Ðzsˆ ‘LŸ}õXWZhÀÿTujg–Ÿ¢Y{thß6Ú_“þl£©a$"Láò´—ŸÒ'0ü2âÖ‚¿|9ß±˜iz^œ,n<™§ºä {F¬NóGOXþž§¨dÐã–TÉ|µèDÒözÂõã32£×Ò/5ˆuü …б{�–ÕùÃÃQU+DH÷X’‘±Qýîú3åßÁÚ‚r]çKÅC®p[ûaÅ ^¢’ÿG¬ƒ…WJaž�«W}¯m  š*/bèa­w9ìäéî–°ä÷ôÜܲ¼¡Œ¿²G,x•ŽÖ–þ;[Z)ŽïÓIã�'Ë TUmñ­ @9eh�-Ÿ¶>TM2$'×X4$iÉÎ pµ)àoŠÿB'¦7k7«tct“«#Š¡×hÇX²¸í¢âÀa/È…’‡Ú4Ûø�J@þ9´LЦF6B Ó”üà9)Ÿ7ÂúÔ .ˆÊÍÔc˜‹0,‘¿©�Õv‘�e8'[g| àqú'˜aí\ef…Ô‰Ò²†]JOcÊW× /ú¨J3²U¡z]ÜÀüÙ9V.¸rrÞ†‡”§Ûm¤a°ëöåŒN^ƒ³v7«Þ„­—ygÙÍezž Ú_.À™{~$pkÕá’¹¡­bK3í‰öô4p©$Zûv+ÏfõcHr0Á9»dº #"ß–Å ‘ -&ŸEƬ\Z”-¯ç–«2¤/ a–f¤©¦¤øÁÓuÆÁñº°KÀfiTœ(õVàž»Ö‰¼Üûméhƒªn¶†÷¥†Õx¤îºYDÿY¡bk}I�û}]Ú÷{Ò„s$x‘:]ÁéØ >yÕy ?nQÎäŽEÜ�óË>º—„þ…/=î3)|Ulåð< …9ð{ÃÙNÔ�ªì'¾_ì»q0ä7`gcöm %ëôº£œÌòVùËàHâ� Œ §ºÙèZHƒ”B¼�³¾Þ—õº9m�Gtòù!ä°öÚ¤…ã1ÁÐeƒ“Æ\ßÒ*6QœP�Íòì°1g›„7Öô”¥� ‹¢Gó[Ou×>mÙGÁñŒÓo…¯mùjQkm_{[EÖFƒcœ‡1oʼáz*vÜ º}²Çdz‰Ò»„[�ˆ~LöS“Þ�’ÌéTê­IÞîp´ë0yoÎŤ™V7µŒ®*A”„¬2—ªÑLžðþ§©~U 3x�ÚÁ¼öÄâYÍ1ÖÍQê'¨ÞIQ"ék¼yÒ´bQþ°ÈçÌÝ�ØÓZ•ÿ)üªÍ&r‹ÈÕj–FËfSËMZ:¬ýLcj†'C{Q1´RjS|ÁyU§ø4FÈœQº˜'Û2L3Âü½Uå·}6ÔŸ ý’��?jJwP7§Šç>íŒâj‘‡Â2ë–ûKrù÷ÔàšIí¼ôÍ·t&‘¯p¢Vøü�`’üëù¾m|�‰`ÐŽñмÊ׿�ËUµ´�òÃN¾ÙUíŒÂ¡^ÞÕ°§=wçµÂVã݃ÿh[÷sjߟŒ Å8£ˆ`‡xåiBG¸ÒA ?ÔµæJpã?‚i®&‡‹€ÎˆMÓ ¦Ç>¾¡}]þ0¯¦�ßÓÂéý�ø¼Íùpn~FYGŃñÌ@Ž�mL�Aªt}—·–*” §å ñþú�祥‰2AdÛHÒöƒôãÜ–%0(QB·çÁñÊTóõÖ8,>¿6T&Ú�ƒrÞ`Ö �kuU]"ÓaÖÊgÎ$£ì£�ï Œ‹ãµr÷Žâ%·"8\µX» —¯‹/¯Bí¥XkÐ(gÛ�ÎîGB[%M�³u.äÏFÞeŒGQ[ ´4ö-¦m×ìÈÕp1bµ�îs «O¤a¹‡"ž„~䊰Šy˜