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  �8�*‚‚>1‰C"!!Yä ´€ ]T}‡(�wg��îü ùw¨_´÷Î:”ìÓeÿ#Ä Ð½‚³sæ†=ŠL*AáÝêó‰qI±«î"Õõ¢Ic[éÎÒ8þÿ2KH–oï£d*RÄø{˜d6¥�P³/"¾ý]±îCV>ý[ hóÎÔ\(c5ö´ÖëuÛëæLH�ZR-xĄǽ¬Aß7H(Ÿ ª¡Ÿ=ôwƒ©Ï1áAŒsp-uÅÂAØØ§8"À��Z@Vu1“S°¢„Ë� “QüÏf§Ë•F^™ßpÖQÛIvÆìLµKÑ…‹Q¢�‚][4Ð".Ð©Ý 9 ÊÚæ>;üÂ=}=,«6atK‹ò 8ü#�Qûþ Qßd<�üŸ»ì'¤pqn×Îâ;$��Q«Þ£õÿRÛr9W¢C¡[”32árbêš�õÓùØš±›¼8Ñ ­Oq…^‡Ó›høÀ¥±ã°nPv¶çl›B'¥_«¾/‹Î&$Z8�4y¥»‘�ÖùÎAÖá§í4&ÓiиáùÒ>Px[l Ár5±ã¥(Ë»fWÞÊÂ]”¬éL¼B�pxÂöH?ÞE-Z Ó=ê-¢åIÒ`xeìs¸nµT£"“V=iŠü¨ŽôÆMëNŸC0…yã`é�çþ6õGÌh€ÏeW h?¨gº½î$›µÖ"çí Ó±CÞdŠðÒȾ�TZÝß,¾»¢¿9õjSVR¸ÂNt³FãG—ˆ«ÙÿPpxÎÛ1y)T¯RÃhùP!µ™AÉ#M€D)Lž6¼l$7užê ,â ¶FNùŒß…?nuÁã^Ž/ýX½û9”§åá_JÉ·Þ©¯¼ùf›’#ûï¿»BˆŠ2j«Ž©ý3| ªñø�-�«£Tq-è‰Þ \ÅŠGhܰÿê÷_[ŒK;{-öNq^ü±½ Ëx…½û£]€}8޶›ú‡¡_FŠª9�Óc"±o$í’*?dž’8^f‰^o�Ÿt·S€`€¤ÜÊ… ýÔý°-Gb¼Ï€GÚ�àœÚ])V‘Þ C&,v¬=+7É”D¯¼>èÉ:Álý”¿ý?h‘ÏÕÂì{º¬6Ì|7�ÕœÈóª>ýº'ºrªŸ“¡¼¸^”µ}no”½]r·»�‡é�?¹¾ø�ḭ̂öjÐk,ä±FPô¹a€áqj0„ÑìP͹Xk/š�îîI_ÄõˆEYvË«æv$â¥N'þY‚™ÿ³uÛé“ó³èÆ{¯&ž¶~ÝÄåò÷K0morßš%SÅч ?ý²Kså×·Sh“®)LñfÑéy+Z Yß§It_T,äïè\¢ÅÁu9S¸ ±äÒ³úYWþÎå�ï;�??r=>ƒ�Å­�p&“'Sit’­BeŸ”‡‹*>Äôľ Ÿt -­6s!VmõÏ]5kï/Ÿê§ŽÓ¸.¹·¦—‚z¬nnÄ^ð îQ|Wì¾uG4œš2/‘¼¬ª6TÔáÂP#œ5ôõ|"˜†:’ެÆ÷$W…[ånÕ°‰�söî-ƒl÷ÓÐÙ»¬””bLEû]¨K,¶a»s!”Ñ7OS!£U÷«×ÀÁ¯ v�>̼’ÍQ î1Ž“Çí¤Qºb©LHžìþÊ—ÄÏ|É•îüÞâÊ¥ªôgΈW.�5/}S°ºÏì”¶TË[@Ji$ÅðÞ– ʽå*B‹dݺ瑂ΎìÀ¬‘¹ùÊ{c©jHòØMN–�ä9í€n*H©DßÈÁ©2³¼QwÌ;1w} �ÓÒÁmG6€y-{SÎ ¥zs ßDøñ�þ“vfä� •úX— `�¸ÍÄ,S½¼½^µ‘Kúð¸î°Ñ’@NæL/Ð: ¯ÑIj-`Y&€b£œ¬ÈÒÞ²”™LgãlTáC¨Ð|¬,‹×Ë[1I>-c7GgÖ„Çë>Ãù»æÑòlÖ{Lä—ð?éç!¢À¬Û^Œë™¨`g×¹ä/áȇxòŒ°µ¿»<’�µÐ†¯ šòn#‹BRÿM7û6dZ³©ª Kœô¬¥€ÙIm³qšW{ t² ¨èdn¨?”ö~qîù’Œø ˆ ÎØŸ©†`óË€B=VsÁü˜éíÌê/ðÁÏoYCðÝ)ê•'õVH�.l4‹è�!CMʦ胫-ÅŽ1âUÁþR¶[Fa«|Z°ÆÞ8Œè /"-¥ÝÖ�ûn¥¦àá�ýáÙím!pèf²ác®Fá «ž1©.¼%)”¦kŠÔÑ5ø £Bä·'vW 'ÇmÀp™6X=÷+W0Ì>H¶ûd�Íγé�Š— ”ôª°¦ÊÚiv”È6äÞ†-J=[Òwï”N'¸ž5@r¼8â3ÞhxÆUu@÷rXmoEm¬f†ÊÔ°„CBû„%Húäv?g¸·¸·",J… DÎ.Ž–ºjrBÙ¥3› 9ÉüŠ­ ¸”>ü �p4‚÷¥a5ufZôŠM²÷ïì­‡ÄVÂÐ^ã3,³žùgM»AúÃ0 &–L0bbŒicU”¨P¶&t­Élj§+{‰e{;FJçY°qb;†öö&5 Nåi›|2¿ÞÑ\s€#4sñ8m7]»½ŠÊ§ ÂŽ™w+uã幦x©˜Šñ·'ä]|§>÷´÷ \²*¾ç‹…í†tvσ7Ð é W;f=j.’�ÙÌÖ¸NF¢}²9^)?�fìíDeÂ…]<>³íøé¤Zgp,�Jv›R`–ufb’o®pÁ;»ÌË% Þ¸ù·sùdH'-ï¤ðf�^ K]*å– ÙU³Úò61¢ädS‹Ä…Ÿ°�ãÈ;Kk¥P_È0¿gý È`žúÉ#(z†Ûx? ³ƒ‹“ÈŒV£%U†„ä5 ÷ûÊU«{�L}Ò)ˆb=È�Ü[–¹>uM’W P}»Ç;l»,Ç|5Ú=”ggÒj®ž 2Ó åd>´[Þÿ䂯æ�?¹ê6ŠÞ>~%u�ÍZÉõhÖÞ�°àJÀ’æ{×¹Óe-ýaÇÎ,iÓ©+’RCÚXƒÀ÷¹ù˶�è�[jGŒ ¥Mµÿ¿ØÚiAÁv{uƒåH�mÞ>”czc¨¼0ùÙ¬¼owpYEœqªÑîÎÞJÜY]pOÆÜïá”…wÙÓÓ_$ç�R ½Sû†|¼Þ ßõ ²øßóóüÿÈÎk™ºw÷ûfGI3&€­±O1*Z¿!ê*0Ä7RîI*äùÃF.%ð)üDe¾œ„Úgyé‰WZGyhFx[š8µ/%xÖw6|üÖÙONlg¸}A„™y=ýç]%çZ~„:Xä(¦¼‰PnéL2µ²°—í«hۘϑD^í¶¯C'í­„@ŸvP T¿7Ïyg§]ïZÀÑ2üNæ¬ ÙÃj‘† O™ug#,Vt˜¼¶PÄÖ¹÷‘ñr�B—Q ¡Ë)åp9¸æÏeÞŽ÷,šE«û&Ìß"õ/�j,Ý“úU é“u\F¸WìÌ�ãS±³|ÔAé½\Þë||¸vÐ)x_¦P4½¯PKh¬ÝLÀyà$î n‚i€ú|ÃI·%Ÿ É€ÀDrÆý~)Çè¸OXK�A é• —CYQË‚ÜØÅ0*RéÉDÝ~9A+¡¿ÒäüÐ