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']
RIFFlWEBPVP8 `ðE�*‚‚>1‡B¢! Œ÷2‚P“@Ps:·èwÉ}†{ÓÈ~5ß–FÐõ�þËþµÏ¼/poÖÿ¸ážh?e¿Ðw÷7ÿ›Òáþ;¯#ѳ¦ö÷Òžèƒ~H~û�îo°Æ=úëÔ;扡ësù.þ~<ÿ‹êìÿö{çଫXÌ€øU½?Ø7Å›JßXð@ò€*g炌¸ÏL—!.óX¸k@½+µ<@F> B¶f=ïÑBK®,Q_X¾Ä,dà:÷ÓGAä1½lbxä„ ð^aÑ:ÿ@?Œ='{^é.EòÞ� µ1tpÁS_Ó=�\*ú’¤áãI¥î/4÷ÉtÍ�ú<»Ž¹)òLÍZ&¥�W*(;3yd2q¿~ÿ"ªÐþ)ï¿ðKoÈš'rÀ¬w44½[-'²ó×™ñwŠ<�|lL²Ò� ÄL £’Ž¥‚êè$d#Ô)H½©kªµ‹ó}¯×¥ þ�ÐÖeÔšU5- 9Õû¶g™VòmÊ.ñÉM,NE—Sx¤©z�Î@•ûŠ3»–™�çE÷AùR¢™$3Ý"A˜eüìÂAnÎtoÉBïºwz¾Ç” •”|:Q4=“h®k�”’ý~d�·§¨Ê[àGZLë‰8§¶Ÿ [0§WÿÁ" 1ë_~Èâ/ñÜ�EºEÕkýag©ŽK×v(˜B«Ü€ŠÕøL[{gY‡Û«‚8RÁÑAqjèª{NÓ¸c¢upþÿþº¬�û�VŠ$Aû¹‡.¼‚dÀ} ‹*åà7��¤÷¼û¯¼(¬9éí ƧŒDÕ™Áµâè"ýθ¿µgòg\Õ ƒ»—¢�.ÝBKKjÚÞ¬“ÛlMŸ=”]L\}ÓMs#j†rð3‘JË ã…ëëA<¨-ø2°Ÿ>îÇÎpLwÊK±þîúT~ÐöGšò�¡ ÉhO+Ò0·KÆi1��]M =70á[=”wö%©ãƒó½C;ì«ÿŒ~2ß™¹¸ÍüTÄÛ>°’ü¿›”¢" bÝ2#„jþÑcá!#³pŸ¥Ö®ÈÃã�zšvJ œ”MYRÒKVȰÅgu±+ºè¸dÖ�‹™Å¾Å?*+{‡´I³©3Æb>9ÂÐp_‘ìy ½YX[CM}$~¸ÓS?cªSÌî–è9ñwµ“ãž„çŽ�ùŠ�2ž#ΉE¹Í:“í”0�¿¡!Û�èrÊÓ:ß$Êò&ƒl´~2‹‰.‰ð? .„l߸9Xp¥îxÊéø(Y.!�¢Ð ÛD�Eûäº6@^€ Ë{ŸŽånŽôG;™œ©Š�s½41•÷§K¼=;�W¥ 1H¹ Ùl É̱L7XÔ†3œá‰ú6æ4žKD¯S�– ÿ0³IŤÔh¿ÏJŒt°‹io‘’%rL+�¿�Øu€Ékó2D£ÑËd}|m'�ƶ’!yS®šùB¥óœÊ³¬½š%YÃãuã!Š‡Ã FŸ�_K¸>꺭üËãü‚†×þÿ~w×RÊ«êÙ±j ¡]€IBéîAí¤C;e0J­³ª,Úo߸?ž)ˆ Ï�1lÊØL"C?Añ·©C…ýíi)0^:†�Â}j¤¾É‹suË$3Ž9uLéxv/ýãr­ó¥ë«ÀJŸX}ø•¼9_&OäÚRr¶‡uÛcZç»j“áÚ¶µuR˜×'C…ª&__RZ)™¥˜�Y~Þâ'㪜ý”÷àºMÃpVET ñõp~vÙ…FÆHš]RÂåÎýŽ0¹¥D+„¢€Náý�½š~ã·úŒª �²à;:"âõi8ááÑõ$�òk5¾º‡ð#%€Õ 2x¤câg˜ÈÛCW$Ðé^ñ[ލõ:Ú}¬óÂoŠÁ :;-V”�¡P9}iJµyNÝn_õµ®§×`ÚírñgµªFD‹Í±þÉ]?ÙM7†Ó­lk)-G‰�B¹§¿w©�ŽNÒuZ ÈÛ#MgWÎÜæ”Ä#™/Á¦‘·9ì"彞ÊʽВmfÚ,+sWûŒOÖgÅ|Ìó´pa¹×.œ€·™� ²ÉŸXîKúÛ‹ÊËs.µ~!õ}�nÙÏâ×4‰O’ŸpÞ…V^˜#÷ üÕïm“ÿéUÏ=nA�óˆDkólKÈßkä?#7RGÞâoý“A¨ÇÜ]d%W$Ì (CA=e�P}º:0iö²Î/X˜GK¦¿‡3xL@¾æ?±¾¼û›Ä>/2º ½¬Ïôl(jyZÇ磼?ÝáqW’ŽÒ",ßõF‚“>^j¶¹þíï¥ýµ”øK¬6ëÎízk/ˆ]Šk¦BçRJkltë¥_÷‡ÙQtÖ¯¦Kíhÿ'¬²%É õ6±¢eÖTPÇw˒÷VáDºJìSá"@×¢JÅF]ùW¼P† Ic5’BßSÉ=24ùæB“=êÛ”÷&ʇV¦ó=½«a¶~gÊãÿJÂɧÔöoŒ ûêÈ8cȆ%™ôø/z$+iÿ솮tIöPì–©4“3胋ï˜fÈ;ñ±ÚØpó©ZV{ˆ.éV´Ø\jêyå\n-}̈»¿þ¡½ ½KÖèç—ß{ý+As8 â³Vq�æ�·3*ìóZø�Dò×á­ó!`ot~õWgM|}i {÷ÍÈãé„<ëDÆ–3pL>{víæB õswå¤Ú¶$r !Ó Nµ1öã^ ðõ�^¬à~=¿åÂ!­ùn–»ÉFãï·Iº‹bå'P/Ðuáûôè´éRö†ï*iC«wÌ×›EÛ]02¢Ù¬Ó4þ�˜ÿ%ôŸÿsýŸ€zÞ^€¼f¼Ç™÷ „¶Ica!ˆ;Ü�aû…àQ!|Ø øXb›äg¨Nªæ×Ï7X?·ÚÒ´šé� ƒ&:$¨ç¡RKU/Ð5‡š:ù‹êVIå(cš¨’{£ÿ$†*Ev`|ÏXääûiÁR›) nù_n›)K�ÁL[×çRxéM ¥„¢µŒªì›ÚÀañ¿x-Tvc‘CÁì¨g ´µÞ–5�Ðo¬‹ áñÀiœÉú&W›}䨒ïϰ+R€P8¿6ÄÝ,Ü©]þ�‹BÅØy×-Š¢ëJ Å|x£ÕraÏÍcæáWŠ0NΓÇ-’ÖªH‹lM] ÝL|ˆˆ3EÒ}xŸóDÁï}ЙWdm”dz<#ä™8› O“*%íwÃP-£~?OíñðËCÔ¢—ÃjáºÎ9wáÍt_røèüÐÍù� Rnz¸äÝb®~ñ—ð\F^b8�Éþ ™(o,�œøªäˆ™ Þ‘ 6b~FB\9;H¯LƒgMRÈ8êpÆîȋۚçè¬q–‚Nð1ÈšÑV2øàÒlãÄ®oD/¨ê}kC@Ä6hžeNK©®rkgr_�6#&|ø‘=öüP!©îNúQ«Î :\{¼¥è…/«œÖ•¼“½E×[úcûl¾Ûl¤.Á?ïÛx|uDsj" “ç¬?¿~Ÿ™w î2ÊŠø¸íÒ1 Ã] ~ÕHzÙ&çf¾ï) ÊÞÏ`:9Oè&�¼ �²Øêg UÝh@#HNl‚Ÿ†Ž9þ` þïý”4Œ5U-½5,2ch ú2á3Á>[ =�M¬1Ö6Ç%Pß�:äç<â)‘¤ÃÉeºµþÍ>¯Ûûç»—²¡úÏBÕĶ5 Īš}¥yÿ´ J*—»â”Ÿá“O1~ ßƒÿú÷„ËüvþÙÍ�Èûõí9@ƒ÷0Ù´M;¼cýŒ=ÖÿÛ9¯Þ{Uý€ç I~uR¹Z݇eº�8¬ ‚JsrrñáÏi"ÆÏ¡é‡ÊÐ0˜ë¥OóÃ÷w¾1缞VJpÈÏÁg˜î +Å­£‡kÖ…‘6Í9`‡l ­ljà