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/pngquant" 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 (38) "Command "/usr/bin/pngquant" 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']
RIFFWEBPVP8X ��ALPH©pÿÿˆˆ uû?ÅV¾sý^äXB‡ÄÍ�œ+�tþ ,ºËl;‹¶�Lwwwg.9RlÙ_Ø9¿/N�èÿÝû_5Æ�0"½„K(Ë ¦[U@29ßm,’1x¡!„¹P#¼¤F5?–@•ƒ·Ò£Ìôª |L^Äh\ DâTƒÀÂÑ÷-= s›½ ›�*H4½œ¡(J9n0$Š^Î" ‚Ž ùŒÉØV嚊\(ùR*êç¹*×ä� ¤œhÆ2wAå~�WI¦Ê5u@¢ëåˆ.D„.¨b�j š’ó¢°@$]ƒR�ÐÔáÅžÞª Þ-Ïy]õØòoħc§×_ÒÝ9{zô²îج£•�º%«G®Ou€7LzêS`š5SUyhêz$ºwȧºë9XâklËÄý\yq`ý—�¢Ëmù²ˆ(7«K‰÷IëÓÜx’°›`Öˆ‰8wà€BÄx¨03Gç×l~ÅÔš/¸7ÔÎÌšÅ�‰±™•ëL|ÿ>qþ¼¼'Dý�S¥Ø?VP8 4 °>�*‚‚>1‰C¢!¡kMp ¤Gy�QZ˜ßOürð¿�Wòò�æÆýï�”ñýËÐ_Œ?Î}À{õþ‰ì“Ìôßü/Û×r0Æ¿©¼þÉïþ7üwó?qÿâ=@? ÿˆëý´öýeô±ý¾ø>ý˜ý¨øýdÿÚ«Õ»ñÏÎßþwûŸäÆ�_Ê>Ò~òëÙoò_Ž^“ú‘õücù'÷ïÊßëÿ¸ÛŸ?Õz…ûôòŸ×¿p<Ó? î™÷þYü¿ü—æ3÷þMý/ý×÷Ú¯•ÿá?áÿ�ýÊÿUíç_÷¿æu¹ý‚ÿ'þ…þsû¿ïøïÿÿûé»ëT¡Õ5É»XúÀË{€ž<¤�p;­¶÷}‹€[ñ¼•€R¯wèûÁüðôûxǶ½�,ݰ/j4¯sM¥eEyΔþÎCa5-\fI¨:Ä\ú·žÔ²ƒÞù= wÇ)¹‚s$¬wY =**ÈÚÑÞzä½üHXIA*ŸÕúèý$ZÃöŸsc >€2uÜ;Ó¬å~xþ˹ņóT­ç�¾àIJ.J+„û5©?JeoX"ÕfÇ[:ÌùØÀ`¦»hïmêùóä�m ƒ[:ßæÕõ³,�ºÜ6&,‹‹cÚŠäPœWkØ8kXñåÄVP8n÷¢/�ö‘‚ÈxHæNæù‘ (Û^×z“ü`R‰Ú[fêÊä£'K¦8£Î€qÉ‚¨TNl.Ù#xŸÓÈ‚´¼šÓo¤ø ËÓR¥ŸD:ÏÑióì«fË3 ؉^ì.Ô�Ò�x¯­ªÕvw&±š¡$¡AÑ8PèËÄÄ(‚6°Î9ßUú½^Go¹®UõC=›åâ•gcJ -—Ý>%MáiÌ™–übÂóóD›H ôdþWE!Á–Uì�玂’¥Ép½_!õÁ…jW—ÏŸ)0IÀLeÜrk¦ÄÈ=ÌóÕÈ¡ñÂvþadu[ñN”¾P_„ŽŸz3M†à�¬À·ˆüõ ¬&�HS¥Ý7é!U’ ã{JÕ”ÈÓ—é¢iæm¯õ€}ŠÎ¥±‹:qÉfþYV[ÝyIÄ>ª—ŒG©�ìß%²Òõ@”Ëøúè,¬<¿QZòߥž?ý &8 ¼¬�EãöµimYRTÍ`Ð,®EÊAÐñ]¾KkÖBçŽw¦lgÃû/º³ô`BAtÿÆÓSÄ@†�G@ÂE2Èiã-$xÁC�ë¢WQn­ÎáÀhÎúÆôÖ ®1‚׌èH@;ç|[‹• E'óÀÖšŽ:É9òÀ ‘æNá×{IJ*¡äw!a þNi¡�›¹Ì…”îlôWþ1s‘ò¹^TÿwŒRð�h1.ݯ-ö©¿¤ü0Íp¦)‡Ö¡Oåw ç@R6Ÿ>ÆCß3ï€�²ö+K Mb –-31‡çÛÉÖÏhˆ>ZQ×óQrÎx ¶ÁýýÇSÖµe§S7é{[öÊI–¹ðØNÙqOüÊ©œü;;ª!Âzêk8È`Ü^…B<[ dòïÝ'ÞQðrу©FÀF-ÿÿŸ“½F 9kÖšóÔ�Ò{Sþq ¡w¢`@gÏìZNF°ÏÛDE ´s_4åê”­–ƒ®§,ÀÄÝÊhȬ›}5¨ø3ûœº‡"¿§:Ô¸>âㆽqä�®) JaŠüÙ½^z¼"o-b´êø…Ÿw¶;>_èþ¯ˆ—1_Z•XÆþ¾ð,ÉH:fBøãÊZ&ni§¯/ìüË'úCßCí­1f ö&{£êé·–Ãÿ=9RWÆ'kLù2IÝ�Ìûc˜£šÈºÄ:Òó ¨”vÎwmS;û”î óŸˆL/^g„£WŠz‘ê�AOèå%zn3_c ý²aíM_Õ©o°fðl⥠µ¢dø›Pq€CüËUâW¶I¡2&ô^ç{êÛÛI(÷4ÔYo´fLå#Án¶¾àV3ÆEþ×d’I™dÒƒœe|J>5Xð¿2)Í|®å6Wÿ ß-áà{,¾�XNÚ†ØUÞ`¥¨×'8�ësí9*ƒéZµ�­;‡6Úd+eL,¸·AÕaÍN”üy� õ� Î[×~HÉqºá~*-r7¡˜“_ßWÿ½Ù_:3²({ùÇEÓùEˆäÅiºË@�ª½tÛ\–E€jY?1¿¡×sbŸ>a¯*ÆaŸ2•u-Yš•l‡Û‰Î8@Sñ—)R†,s-c¬L�õåÀ=?}þ‡¤;žhGà:ñœò‹ñ]ñL©w©…£!6¼ oøË7´€öê¾h;–&ø~M×WW³È4?‹%»öKúbÿÇ^¦�¼Íž9õ�â’þÆKþu$Þº<\?èàžuâU1ŸžÒ½„DÁÿ™â; Õ'ºÄŽ¿üWîŒ.$5…ãzk>V(t–öËá×à‚]ñMU¾)ª£‚uÛ×}ö0a.=§Ý•¶ýÆ3ü¬ÈUþêo0Q¸˜€|/}Ç s1×cÅu¾È´XyÅ e¹­‹dÿ�rv…Ǽ#Ì›¥Ê W'Ö¡³énéó�¯üc‹óI¤Ø(ïš«ÿµ,_" )ŸËËØ@ÐñíÅ0‹E5U&5sðìË<§sy¬Ø®ãGpÝÑÝpvÍaÚ“ÙP()‹Íœ‘qÂÐ�j¯¤·ûNË�LâXVcøŽáûñ�-‚%Ò­úÇ5ïeà‰ãOŸÐëÖt|õ,Jle¶HŒößþ¥uoÇâK~,¯èS^Ñ�}ëä…8Y0¦²·+�r¶` Ú}¸Ù6PÞVrø0°:ñÈ};аý Cî|ùš¼zÉùÂ%?²K޼™á=}øE%ÂjØ›JO×1è‘v´»3kM�Ü`»l«#1#‡<;ymËB´1Øààë�IÇ©Òú—&F¤ ¼ïd