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 t 06�*‚‚>1‰C¢!!øU\ ²µü1×0Äž0ÑXÂËÿ8Aî»Ç�•Ö7ÒøNøÕˆ×uyüî?ä¦S?Îp&€^å)ÁÊ+šŸ {x¿iQë?G¾µ¾Žÿ°O~_â ¯/™,ßžR$qh�î KÎÆ«] Áƒ ·¼2¨ÞŠ]Pgýý•¢ÏEJ~#}¥ÙãKz8Óo ܆’#•¼ós€+r±µ^÷¶2:ÕæÔ'ê²§õ­?¢”¡gL]I^DÚšáè›—qfÎCfAæ–ŽQŒ•ásQÂÏ>Fnå,b$‹+þè1cîbÚ¤±ŸBw@ ÁE¢ª!Uc\íý¤¡º­ OŽ<ÓvvB¹þßõènŽÌš¯»Âf&‰©¬&·4Õ�‹s€+qÕ’ÃÆ''ÕªÅß/ehÒèwí´°§úo @�K©¤øVmŒ¼�襜N–]g¬ ¤ ߨ¯x,_Íú¡E�ëD…îD%‹‰9!D¦.›M÷®Ð;6qí/r¢?Ì(ÔÅn*_r“¹?dÛ­W0¬JËX8xÜpª˜ðNF!Xéct¬þü8>~µÖpßò _ï¿þ‘̸ÛÙ%Xÿiú—<�ŸÕ úpübÂbÛ­:‡ûn6òË8¶@’ì®%°©ÍkèÜNp0È�r»nÁÀ W?5š�y»¬ FÍ"¯nÃOÞ¬#î(r%æ¨Ú˜z„bb0ú±ý6Ü—•}"'D§œÊgì¯þäï � :xŽo;`­c8Hœ³Á(‘ÓJ‘€yÙ=óÂÔjeÛ(?N¿ÞÒbÜØVr)v4SS…© J¤sáüˆÜÂ@›ý á2Ggx[ðþÓy–3ƒë3<´Òâ4õ#ã¶ôª²ï]-þÉNà’�:yÆþ�\¯ZQÕ»X¦]5„Ÿ²'µ.ðPh=(Ìr'e[Ÿ€‰ZEFÏ{P«æÓ2WßH¬õ3;sç˜B<®;žÈwé&ÞMIËí¬ œ1*S·0'…ûT!ÍxM{DîéêÔ´S�ÿÝê/-Á;ù|Ÿqç9Þ‘šsª“?Ë[í¢µâÏVîgnÇtAâ$p^ó™–ʳ2H %P ”9ðÂ/–5G°½žÀ9Êö%F«™�ä8^ò©¿TuAT‡ŸKD,ØËoS!õ�&¿`”ì_Q:ûêŽ7©•?*H½>À„üLÂlÄ‚ù²Ûg\™öÈ—Ó2äíúr£ ":J“OÃë3HP„�µ�ñ™¤�I¸-#«œ•ª6†QŽ·�·!²ÝyûøxIwó¯D…àf®‡Z""Αx~™?ÄÉíÁ³þ¥K×5T®ùtã3÷8ŒYÁ‹Sâ‘á2Qhš{'£Go¨góðBîõ›™´#² ôƒ2U¶\‘ñDõNì š¬­Ô•„ïßbnIÓ×T%“ÖÑÐKªœý®¦f·VØg€Ìÿ§ºh2‹?Û�›[(i�J¾ç|ܵ9D†ØiEÜÝ Ï˜ý\wÄyéØ(Š„4½W„‘Ì�ˆ#ÉHS”¿…åiAM@Ïö<Ý}21‘Ê�Ê-yøúªª¦Õt’¶9Bä]µî®ÇߥXKò‡{%4ŸŒ½ôš¢¥Î¿F/`ø!Ÿ„8 ï „°d>må@”�òî?½ª;®‰–’Z[¹6èn÷µÊ„`ÿ½ð6\E%©Œ—ÞaLbê5DÞÜ|âS3jÚ±á_P¡N”ªu¿¬² _Qü˜BüeHú÷9-Ä®.ÃoL¹í›ãáx»wünE^£ì¤Ò½ýÜBài,™û—7á™p˜É[*ª4¾1~iJªöD\ý<{h�ù�_–“÷Í\E{;ÇžÔ„Àð¦O›,è•/Elð‚”Üï¯U�Úqud:™Ù�AºF�I·�Õ±þÍè kMZ‹ÀÙ:a‘µPh¬F¬4ø/˜åâÙÝz V[»7Ë Ú�›³Tâ'Dܶ@$¥·såÅ( qÏpÀ.Y¤UxHyM/¸ eÊÑÑxpJL¹ã†�5³ä�qiæ ¬1�L&»u/»Ù*’£³c¡ÁÛî³ÂðÒ¦ûP„o|È"î��J5N!¹ið§z/1i‹k­q‡ä¥•s«p;Û;®bÏݪ^ªíÏ„  a"æ× wc›ö1ëÞy¯Rǹ»ü©ëÁS«éÁS,&nª5Bªò�kR®ÓÔ|•*ÛÌQ:‚A•ÙêÁ{Þú2ÑV¿?Q©˜Uá†JpÝÏOþÀÖEÉži·Â/ZÕ)�¦—4¥ü©’Y¾câ¾ •a2{ó>³aЇ´;]73ùR5�@¼W4–ÊÏ@0w­zñ²ÜºùÇÝ,·{Íö^9 þy.8%tqÖ<æî²+œx!ÕÆkð‹Iç'È*ÓõÙ€OŸæ«zVŠœ|KÇc©2ÉC ôª¤I6ßÙ L„›û EÒ¸ \Û°EVY'®)¡t$„¨<½ð”´O+µL¦iÆ©�P�|;f†`ÕöÉD’3¢ß%ãÊûŸW~BL¾ÿ9“Â&V'±�¡cÁCl1-åçj¸þ ÌeéEíIÒ07\ñ�Î#}¡qÛ\C\Kó!S3€'{ HO±–³ÃFÔAU �×e6R