ErrorException

HTTP 500 Whoops, looks like something went wrong.

strip_tags() expects parameter 1 to be string, array given

Exception

ErrorException

  1.         if ($record['extra']) {
  2.             $output[] = "<b>Extra:</b>";
  3.             $output[] = $this->toJson($record['extra'], true);
  4.         }
  5.         return implode(PHP_EOLstrip_tags($output,'<b><strong><i><em><u><ins><s><strike><del><span><tg-spoiler><a><tg-emoji><code><pre><blockquote>')) ?: '';
  6.     }
  7.     public function formatBatch(array $records): string
  8.     {
  9.         $message '';
HandleExceptions->handleError() in /home/solomono/web/solomono.net/bootstrap/HandleExceptions.php (line 32)
  1.         //ini_set('error_log' , '/home/solomono/web/solomono.net/sites/dev/php.log');
  2.         error_reporting(E_ALL);
  3.         set_error_handler(function($level$message$file ''$line 0) {
  4.             $this->handleError($level$message$file$line);
  5.         });
  6.         set_exception_handler(function($e) {
  7.             $this->handleException($e);
  8.         });
HandleExceptions->Bootstrap\{closure}()
  1.         if ($record['extra']) {
  2.             $output[] = "<b>Extra:</b>";
  3.             $output[] = $this->toJson($record['extra'], true);
  4.         }
  5.         return implode(PHP_EOLstrip_tags($output,'<b><strong><i><em><u><ins><s><strike><del><span><tg-spoiler><a><tg-emoji><code><pre><blockquote>')) ?: '';
  6.     }
  7.     public function formatBatch(array $records): string
  8.     {
  9.         $message '';
  1.         if ($this->processors) {
  2.             /** @var Record $record */
  3.             $record $this->processRecord($record);
  4.         }
  5.         $record['formatted'] = $this->getFormatter()->format($record);
  6.         $this->write($record);
  7.         return false === $this->bubble;
  8.     }
  1.                     }
  2.                 }
  3.                 // once the record exists, send it to all handlers as long as the bubbling chain is not interrupted
  4.                 try {
  5.                     if (true === $handler->handle($record)) {
  6.                         break;
  7.                     }
  8.                 } catch (Throwable $e) {
  9.                     $this->handleException($e$record);
  1.      * @param string|Stringable $message The log message
  2.      * @param mixed[]           $context The log context
  3.      */
  4.     public function alert($message, array $context = []): void
  5.     {
  6.         $this->addRecord(static::ALERT, (string) $message$context);
  7.     }
  8.     /**
  9.      * Adds a log record at the EMERGENCY level.
  10.      *
  1.      * @param array $parameters
  2.      * @return mixed
  3.      */
  4.     public function __call(string $method$parameters)
  5.     {
  6.         return $this->driver()->$method(...$parameters);
  7.     }
  8.     /**
  9.      * Create a new, on-demand aggregate logger instance.
  10.      */
  1.     public static function __callStatic($method$args)
  2.     {
  3.         if (!isset(self::$instance)) {
  4.             self::$instance= new LogManager();
  5.         }
  6.         return self::$instance->$method(...$args);
  7.     }
  8. }
  1.     if ($end 2) {
  2.         Log::alert('Mysql Time query', [
  3.             'query' => tep_db_input($query),
  4.             'time' => $end,
  5.             'SCRIPT_FILENAME' => $_SERVER["SCRIPT_FILENAME"],
  6.         ]);
  7.     }
  8.     $query_total_time += $end;
  1.     function _sess_destroy($key) {
  2.         return tep_db_query("delete from " TABLE_SESSIONS " where sesskey = '" tep_db_input($key) . "'");
  3.     }
  4.     function _sess_gc($maxlifetime) {
  5.         tep_db_query("delete from " TABLE_SESSIONS " where expiry < '" time() . "'");
  6.         return true;
  7.     }
  8.     session_set_save_handler('_sess_open''_sess_close''_sess_read''_sess_write''_sess_destroy''_sess_gc');
_sess_gc()
  1.     if ($sane_session_id==false) {
  2.         tep_redirect(tep_href_link('/''''NONSSL'false));
  3.     }
  4.     return session_start();
  5. }
  6. function tep_session_register($variable) {
  7.     if (!isset($GLOBALS[$variable])) {
  1.         die;  // Don't send any more output.
  2.     }
  3.     // END HACK
  4.     if ($spider_flag == false) {
  5.         tep_session_start();
  6.         $session_started true;
  7.     }
  8. } else {
  9.     tep_session_start();
  10.     $session_started true;
require_once('/home/solomono/web/solomono.net/includes/application_top.php') in /home/solomono/web/solomono.net/article_info.php (line 19)
  1. if((int)$_GET['articles_id'] == 121){
  2.   require ('payment.php');
  3. } else {
  4.   require_once('includes/application_top.php');
  5.   include_once(DIR_WS_LANGUAGES $language '/' FILENAME_ARTICLE_INFO);
  6.     $article_check_query_bad tep_db_query("select a.articles_status, a.include_file,ad.articles_head_keywords_tag as h1 from " TABLE_ARTICLES " a, " TABLE_ARTICLES_DESCRIPTION " ad where a.articles_id = '" . (int)$_GET['articles_id'] . "' and ad.articles_id = a.articles_id and ad.language_id = '" . (int)$languages_id "'");
  7.     $article_check_query_bad_t tep_db_fetch_array($article_check_query_bad);
  8.     if (empty($article_check_query_bad_t)) {
  9.         tep_redirect(tep_href_link(FILENAME_ERROR_404));

Stack Trace

ErrorException
ErrorException:
strip_tags() expects parameter 1 to be string, array given

  at /home/solomono/web/solomono.net/app/Classes/Logger/Formatter/TelegramFormatter.php:52
  at Bootstrap\HandleExceptions->handleError()
     (/home/solomono/web/solomono.net/bootstrap/HandleExceptions.php:32)
  at Bootstrap\HandleExceptions->Bootstrap\{closure}()
  at strip_tags()
     (/home/solomono/web/solomono.net/app/Classes/Logger/Formatter/TelegramFormatter.php:52)
  at App\Classes\Logger\Formatter\TelegramFormatter->format()
     (/home/solomono/web/solomono.net/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:46)
  at Monolog\Handler\AbstractProcessingHandler->handle()
     (/home/solomono/web/solomono.net/vendor/monolog/monolog/src/Monolog/Logger.php:399)
  at Monolog\Logger->addRecord()
     (/home/solomono/web/solomono.net/vendor/monolog/monolog/src/Monolog/Logger.php:676)
  at Monolog\Logger->alert()
     (/home/solomono/web/solomono.net/app/Classes/Logger/LogManager.php:92)
  at App\Classes\Logger\LogManager->__call()
     (/home/solomono/web/solomono.net/app/Classes/Logger/Log.php:17)
  at App\Classes\Logger\Log::__callStatic()
     (/home/solomono/web/solomono.net/includes/functions/database.php:93)
  at tep_db_query()
     (/home/solomono/web/solomono.net/includes/functions/sessions.php:66)
  at _sess_gc()
  at session_start()
     (/home/solomono/web/solomono.net/includes/functions/sessions.php:114)
  at tep_session_start()
     (/home/solomono/web/solomono.net/includes/application_top.php:199)
  at require_once('/home/solomono/web/solomono.net/includes/application_top.php')
     (/home/solomono/web/solomono.net/article_info.php:19)                
implode(): Invalid arguments passed (500 Whoops, looks like something went wrong.)

ErrorException

HTTP 500 Whoops, looks like something went wrong.

implode(): Invalid arguments passed

Exception

ErrorException

  1.         if ($record['extra']) {
  2.             $output[] = "<b>Extra:</b>";
  3.             $output[] = $this->toJson($record['extra'], true);
  4.         }
  5.         return implode(PHP_EOLstrip_tags($output,'<b><strong><i><em><u><ins><s><strike><del><span><tg-spoiler><a><tg-emoji><code><pre><blockquote>')) ?: '';
  6.     }
  7.     public function formatBatch(array $records): string
  8.     {
  9.         $message '';
HandleExceptions->handleError() in /home/solomono/web/solomono.net/bootstrap/HandleExceptions.php (line 32)
  1.         //ini_set('error_log' , '/home/solomono/web/solomono.net/sites/dev/php.log');
  2.         error_reporting(E_ALL);
  3.         set_error_handler(function($level$message$file ''$line 0) {
  4.             $this->handleError($level$message$file$line);
  5.         });
  6.         set_exception_handler(function($e) {
  7.             $this->handleException($e);
  8.         });
HandleExceptions->Bootstrap\{closure}()
  1.         if ($record['extra']) {
  2.             $output[] = "<b>Extra:</b>";
  3.             $output[] = $this->toJson($record['extra'], true);
  4.         }
  5.         return implode(PHP_EOLstrip_tags($output,'<b><strong><i><em><u><ins><s><strike><del><span><tg-spoiler><a><tg-emoji><code><pre><blockquote>')) ?: '';
  6.     }
  7.     public function formatBatch(array $records): string
  8.     {
  9.         $message '';
  1.         if ($this->processors) {
  2.             /** @var Record $record */
  3.             $record $this->processRecord($record);
  4.         }
  5.         $record['formatted'] = $this->getFormatter()->format($record);
  6.         $this->write($record);
  7.         return false === $this->bubble;
  8.     }
  1.                     }
  2.                 }
  3.                 // once the record exists, send it to all handlers as long as the bubbling chain is not interrupted
  4.                 try {
  5.                     if (true === $handler->handle($record)) {
  6.                         break;
  7.                     }
  8.                 } catch (Throwable $e) {
  9.                     $this->handleException($e$record);
  1.      * @param string|Stringable $message The log message
  2.      * @param mixed[]           $context The log context
  3.      */
  4.     public function alert($message, array $context = []): void
  5.     {
  6.         $this->addRecord(static::ALERT, (string) $message$context);
  7.     }
  8.     /**
  9.      * Adds a log record at the EMERGENCY level.
  10.      *
  1.      * @param array $parameters
  2.      * @return mixed
  3.      */
  4.     public function __call(string $method$parameters)
  5.     {
  6.         return $this->driver()->$method(...$parameters);
  7.     }
  8.     /**
  9.      * Create a new, on-demand aggregate logger instance.
  10.      */
  1.     public static function __callStatic($method$args)
  2.     {
  3.         if (!isset(self::$instance)) {
  4.             self::$instance= new LogManager();
  5.         }
  6.         return self::$instance->$method(...$args);
  7.     }
  8. }
  1.     if ($end 2) {
  2.         Log::alert('Mysql Time query', [
  3.             'query' => tep_db_input($query),
  4.             'time' => $end,
  5.             'SCRIPT_FILENAME' => $_SERVER["SCRIPT_FILENAME"],
  6.         ]);
  7.     }
  8.     $query_total_time += $end;
  1.     function _sess_destroy($key) {
  2.         return tep_db_query("delete from " TABLE_SESSIONS " where sesskey = '" tep_db_input($key) . "'");
  3.     }
  4.     function _sess_gc($maxlifetime) {
  5.         tep_db_query("delete from " TABLE_SESSIONS " where expiry < '" time() . "'");
  6.         return true;
  7.     }
  8.     session_set_save_handler('_sess_open''_sess_close''_sess_read''_sess_write''_sess_destroy''_sess_gc');
_sess_gc()
  1.     if ($sane_session_id==false) {
  2.         tep_redirect(tep_href_link('/''''NONSSL'false));
  3.     }
  4.     return session_start();
  5. }
  6. function tep_session_register($variable) {
  7.     if (!isset($GLOBALS[$variable])) {
  1.         die;  // Don't send any more output.
  2.     }
  3.     // END HACK
  4.     if ($spider_flag == false) {
  5.         tep_session_start();
  6.         $session_started true;
  7.     }
  8. } else {
  9.     tep_session_start();
  10.     $session_started true;
require_once('/home/solomono/web/solomono.net/includes/application_top.php') in /home/solomono/web/solomono.net/article_info.php (line 19)
  1. if((int)$_GET['articles_id'] == 121){
  2.   require ('payment.php');
  3. } else {
  4.   require_once('includes/application_top.php');
  5.   include_once(DIR_WS_LANGUAGES $language '/' FILENAME_ARTICLE_INFO);
  6.     $article_check_query_bad tep_db_query("select a.articles_status, a.include_file,ad.articles_head_keywords_tag as h1 from " TABLE_ARTICLES " a, " TABLE_ARTICLES_DESCRIPTION " ad where a.articles_id = '" . (int)$_GET['articles_id'] . "' and ad.articles_id = a.articles_id and ad.language_id = '" . (int)$languages_id "'");
  7.     $article_check_query_bad_t tep_db_fetch_array($article_check_query_bad);
  8.     if (empty($article_check_query_bad_t)) {
  9.         tep_redirect(tep_href_link(FILENAME_ERROR_404));

Stack Trace

ErrorException
ErrorException:
implode(): Invalid arguments passed

  at /home/solomono/web/solomono.net/app/Classes/Logger/Formatter/TelegramFormatter.php:52
  at Bootstrap\HandleExceptions->handleError()
     (/home/solomono/web/solomono.net/bootstrap/HandleExceptions.php:32)
  at Bootstrap\HandleExceptions->Bootstrap\{closure}()
  at implode()
     (/home/solomono/web/solomono.net/app/Classes/Logger/Formatter/TelegramFormatter.php:52)
  at App\Classes\Logger\Formatter\TelegramFormatter->format()
     (/home/solomono/web/solomono.net/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:46)
  at Monolog\Handler\AbstractProcessingHandler->handle()
     (/home/solomono/web/solomono.net/vendor/monolog/monolog/src/Monolog/Logger.php:399)
  at Monolog\Logger->addRecord()
     (/home/solomono/web/solomono.net/vendor/monolog/monolog/src/Monolog/Logger.php:676)
  at Monolog\Logger->alert()
     (/home/solomono/web/solomono.net/app/Classes/Logger/LogManager.php:92)
  at App\Classes\Logger\LogManager->__call()
     (/home/solomono/web/solomono.net/app/Classes/Logger/Log.php:17)
  at App\Classes\Logger\Log::__callStatic()
     (/home/solomono/web/solomono.net/includes/functions/database.php:93)
  at tep_db_query()
     (/home/solomono/web/solomono.net/includes/functions/sessions.php:66)
  at _sess_gc()
  at session_start()
     (/home/solomono/web/solomono.net/includes/functions/sessions.php:114)
  at tep_session_start()
     (/home/solomono/web/solomono.net/includes/application_top.php:199)
  at require_once('/home/solomono/web/solomono.net/includes/application_top.php')
     (/home/solomono/web/solomono.net/article_info.php:19)                
strip_tags() expects parameter 1 to be string, array given (500 Whoops, looks like something went wrong.)

ErrorException

HTTP 500 Whoops, looks like something went wrong.

strip_tags() expects parameter 1 to be string, array given

Exception

ErrorException

  1.         if ($record['extra']) {
  2.             $output[] = "<b>Extra:</b>";
  3.             $output[] = $this->toJson($record['extra'], true);
  4.         }
  5.         return implode(PHP_EOLstrip_tags($output,'<b><strong><i><em><u><ins><s><strike><del><span><tg-spoiler><a><tg-emoji><code><pre><blockquote>')) ?: '';
  6.     }
  7.     public function formatBatch(array $records): string
  8.     {
  9.         $message '';
HandleExceptions->handleError() in /home/solomono/web/solomono.net/bootstrap/HandleExceptions.php (line 32)
  1.         //ini_set('error_log' , '/home/solomono/web/solomono.net/sites/dev/php.log');
  2.         error_reporting(E_ALL);
  3.         set_error_handler(function($level$message$file ''$line 0) {
  4.             $this->handleError($level$message$file$line);
  5.         });
  6.         set_exception_handler(function($e) {
  7.             $this->handleException($e);
  8.         });
HandleExceptions->Bootstrap\{closure}()
  1.         if ($record['extra']) {
  2.             $output[] = "<b>Extra:</b>";
  3.             $output[] = $this->toJson($record['extra'], true);
  4.         }
  5.         return implode(PHP_EOLstrip_tags($output,'<b><strong><i><em><u><ins><s><strike><del><span><tg-spoiler><a><tg-emoji><code><pre><blockquote>')) ?: '';
  6.     }
  7.     public function formatBatch(array $records): string
  8.     {
  9.         $message '';
  1.         if ($this->processors) {
  2.             /** @var Record $record */
  3.             $record $this->processRecord($record);
  4.         }
  5.         $record['formatted'] = $this->getFormatter()->format($record);
  6.         $this->write($record);
  7.         return false === $this->bubble;
  8.     }
  1.                     }
  2.                 }
  3.                 // once the record exists, send it to all handlers as long as the bubbling chain is not interrupted
  4.                 try {
  5.                     if (true === $handler->handle($record)) {
  6.                         break;
  7.                     }
  8.                 } catch (Throwable $e) {
  9.                     $this->handleException($e$record);
  1.             $level self::RFC_5424_LEVELS[$level];
  2.         }
  3.         $level = static::toMonologLevel($level);
  4.         $this->addRecord($level, (string) $message$context);
  5.     }
  6.     /**
  7.      * Adds a log record at the DEBUG level.
  8.      *
  1.      * @param array $parameters
  2.      * @return mixed
  3.      */
  4.     public function __call(string $method$parameters)
  5.     {
  6.         return $this->driver()->$method(...$parameters);
  7.     }
  8.     /**
  9.      * Create a new, on-demand aggregate logger instance.
  10.      */
  1.     public static function __callStatic($method$args)
  2.     {
  3.         if (!isset(self::$instance)) {
  4.             self::$instance= new LogManager();
  5.         }
  6.         return self::$instance->$method(...$args);
  7.     }
  8. }
  1.         if ($this->shouldntReport($e)) {
  2.             return;
  3.         }
  4.         try {
  5.             Log::log($this->defaultErrorLevelMap()[$this->getLogLevel($e)], $e->getMessage(), ['exception' => $e]);
  6.         } catch (\Throwable $ex) {
  7.             $this->render($ex);
  8.             $this->render($e);
  9.             throw $e;
  10.         }
  1.      */
  2.     protected function handleException(Throwable $e): void
  3.     {
  4.         $handler = new Handler();
  5.         $handler->report($e);
  6.         $handler->render($e);
  7.     }
HandleExceptions->handleException() in /home/solomono/web/solomono.net/bootstrap/HandleExceptions.php (line 36)
  1.         set_error_handler(function($level$message$file ''$line 0) {
  2.             $this->handleError($level$message$file$line);
  3.         });
  4.         set_exception_handler(function($e) {
  5.             $this->handleException($e);
  6.         });
  7.         register_shutdown_function(function() {
  8.             $this->handleShutdown();
  9.         });
HandleExceptions->Bootstrap\{closure}()

Stack Trace

ErrorException
ErrorException:
strip_tags() expects parameter 1 to be string, array given

  at /home/solomono/web/solomono.net/app/Classes/Logger/Formatter/TelegramFormatter.php:52
  at Bootstrap\HandleExceptions->handleError()
     (/home/solomono/web/solomono.net/bootstrap/HandleExceptions.php:32)
  at Bootstrap\HandleExceptions->Bootstrap\{closure}()
  at strip_tags()
     (/home/solomono/web/solomono.net/app/Classes/Logger/Formatter/TelegramFormatter.php:52)
  at App\Classes\Logger\Formatter\TelegramFormatter->format()
     (/home/solomono/web/solomono.net/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:46)
  at Monolog\Handler\AbstractProcessingHandler->handle()
     (/home/solomono/web/solomono.net/vendor/monolog/monolog/src/Monolog/Logger.php:399)
  at Monolog\Logger->addRecord()
     (/home/solomono/web/solomono.net/vendor/monolog/monolog/src/Monolog/Logger.php:585)
  at Monolog\Logger->log()
     (/home/solomono/web/solomono.net/app/Classes/Logger/LogManager.php:92)
  at App\Classes\Logger\LogManager->__call()
     (/home/solomono/web/solomono.net/app/Classes/Logger/Log.php:17)
  at App\Classes\Logger\Log::__callStatic()
     (/home/solomono/web/solomono.net/app/Exceptions/Handler/Handler.php:33)
  at App\Exceptions\Handler\Handler->report()
     (/home/solomono/web/solomono.net/bootstrap/HandleExceptions.php:96)
  at Bootstrap\HandleExceptions->handleException()
     (/home/solomono/web/solomono.net/bootstrap/HandleExceptions.php:36)
  at Bootstrap\HandleExceptions->Bootstrap\{closure}()                
implode(): Invalid arguments passed (500 Whoops, looks like something went wrong.)

ErrorException

HTTP 500 Whoops, looks like something went wrong.

implode(): Invalid arguments passed

Exception

ErrorException

  1.         if ($record['extra']) {
  2.             $output[] = "<b>Extra:</b>";
  3.             $output[] = $this->toJson($record['extra'], true);
  4.         }
  5.         return implode(PHP_EOLstrip_tags($output,'<b><strong><i><em><u><ins><s><strike><del><span><tg-spoiler><a><tg-emoji><code><pre><blockquote>')) ?: '';
  6.     }
  7.     public function formatBatch(array $records): string
  8.     {
  9.         $message '';
HandleExceptions->handleError() in /home/solomono/web/solomono.net/bootstrap/HandleExceptions.php (line 32)
  1.         //ini_set('error_log' , '/home/solomono/web/solomono.net/sites/dev/php.log');
  2.         error_reporting(E_ALL);
  3.         set_error_handler(function($level$message$file ''$line 0) {
  4.             $this->handleError($level$message$file$line);
  5.         });
  6.         set_exception_handler(function($e) {
  7.             $this->handleException($e);
  8.         });
HandleExceptions->Bootstrap\{closure}()
  1.         if ($record['extra']) {
  2.             $output[] = "<b>Extra:</b>";
  3.             $output[] = $this->toJson($record['extra'], true);
  4.         }
  5.         return implode(PHP_EOLstrip_tags($output,'<b><strong><i><em><u><ins><s><strike><del><span><tg-spoiler><a><tg-emoji><code><pre><blockquote>')) ?: '';
  6.     }
  7.     public function formatBatch(array $records): string
  8.     {
  9.         $message '';
  1.         if ($this->processors) {
  2.             /** @var Record $record */
  3.             $record $this->processRecord($record);
  4.         }
  5.         $record['formatted'] = $this->getFormatter()->format($record);
  6.         $this->write($record);
  7.         return false === $this->bubble;
  8.     }
  1.                     }
  2.                 }
  3.                 // once the record exists, send it to all handlers as long as the bubbling chain is not interrupted
  4.                 try {
  5.                     if (true === $handler->handle($record)) {
  6.                         break;
  7.                     }
  8.                 } catch (Throwable $e) {
  9.                     $this->handleException($e$record);
  1.             $level self::RFC_5424_LEVELS[$level];
  2.         }
  3.         $level = static::toMonologLevel($level);
  4.         $this->addRecord($level, (string) $message$context);
  5.     }
  6.     /**
  7.      * Adds a log record at the DEBUG level.
  8.      *
  1.      * @param array $parameters
  2.      * @return mixed
  3.      */
  4.     public function __call(string $method$parameters)
  5.     {
  6.         return $this->driver()->$method(...$parameters);
  7.     }
  8.     /**
  9.      * Create a new, on-demand aggregate logger instance.
  10.      */
  1.     public static function __callStatic($method$args)
  2.     {
  3.         if (!isset(self::$instance)) {
  4.             self::$instance= new LogManager();
  5.         }
  6.         return self::$instance->$method(...$args);
  7.     }
  8. }
  1.         if ($this->shouldntReport($e)) {
  2.             return;
  3.         }
  4.         try {
  5.             Log::log($this->defaultErrorLevelMap()[$this->getLogLevel($e)], $e->getMessage(), ['exception' => $e]);
  6.         } catch (\Throwable $ex) {
  7.             $this->render($ex);
  8.             $this->render($e);
  9.             throw $e;
  10.         }
  1.      */
  2.     protected function handleException(Throwable $e): void
  3.     {
  4.         $handler = new Handler();
  5.         $handler->report($e);
  6.         $handler->render($e);
  7.     }
HandleExceptions->handleException() in /home/solomono/web/solomono.net/bootstrap/HandleExceptions.php (line 36)
  1.         set_error_handler(function($level$message$file ''$line 0) {
  2.             $this->handleError($level$message$file$line);
  3.         });
  4.         set_exception_handler(function($e) {
  5.             $this->handleException($e);
  6.         });
  7.         register_shutdown_function(function() {
  8.             $this->handleShutdown();
  9.         });
HandleExceptions->Bootstrap\{closure}()

Stack Trace

ErrorException
ErrorException:
implode(): Invalid arguments passed

  at /home/solomono/web/solomono.net/app/Classes/Logger/Formatter/TelegramFormatter.php:52
  at Bootstrap\HandleExceptions->handleError()
     (/home/solomono/web/solomono.net/bootstrap/HandleExceptions.php:32)
  at Bootstrap\HandleExceptions->Bootstrap\{closure}()
  at implode()
     (/home/solomono/web/solomono.net/app/Classes/Logger/Formatter/TelegramFormatter.php:52)
  at App\Classes\Logger\Formatter\TelegramFormatter->format()
     (/home/solomono/web/solomono.net/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:46)
  at Monolog\Handler\AbstractProcessingHandler->handle()
     (/home/solomono/web/solomono.net/vendor/monolog/monolog/src/Monolog/Logger.php:399)
  at Monolog\Logger->addRecord()
     (/home/solomono/web/solomono.net/vendor/monolog/monolog/src/Monolog/Logger.php:585)
  at Monolog\Logger->log()
     (/home/solomono/web/solomono.net/app/Classes/Logger/LogManager.php:92)
  at App\Classes\Logger\LogManager->__call()
     (/home/solomono/web/solomono.net/app/Classes/Logger/Log.php:17)
  at App\Classes\Logger\Log::__callStatic()
     (/home/solomono/web/solomono.net/app/Exceptions/Handler/Handler.php:33)
  at App\Exceptions\Handler\Handler->report()
     (/home/solomono/web/solomono.net/bootstrap/HandleExceptions.php:96)
  at Bootstrap\HandleExceptions->handleException()
     (/home/solomono/web/solomono.net/bootstrap/HandleExceptions.php:36)
  at Bootstrap\HandleExceptions->Bootstrap\{closure}()                
Telegram API error. Description: Bad Request: message text is empty (500 Whoops, looks like something went wrong.)

RuntimeException

HTTP 500 Whoops, looks like something went wrong.

Telegram API error. Description: Bad Request: message text is empty

Exception

RuntimeException

  1.             throw new RuntimeException('Telegram API error. Description: No response');
  2.         }
  3.         $result json_decode($resulttrue);
  4.         if ($result['ok'] === false) {
  5.             throw new RuntimeException('Telegram API error. Description: ' $result['description']);
  6.         }
  7.     }
  8.     /**
  9.      * Handle a message that is too long: truncates or splits into several
  1.         foreach ($messages as $key => $msg) {
  2.             if ($this->delayBetweenMessages && $key 0) {
  3.                 sleep(1);
  4.             }
  5.             $this->sendCurl($msg);
  6.         }
  7.     }
  8.     protected function sendCurl(string $message): void
  9.     {
  1.         $key $this->keyGenerate($record);
  2.         if (false === $this->keyExist($key)) {
  3.             $this->firedMessages[$key] = $record;
  4.             Cache::add($key$record120);
  5.             $this->send($record['formatted']);
  6.         }
  7.     }
  8.     private function keyExist(string $key): bool
  9.     {
  1.             $record $this->processRecord($record);
  2.         }
  3.         $record['formatted'] = $this->getFormatter()->format($record);
  4.         $this->write($record);
  5.         return false === $this->bubble;
  6.     }
  7.     /**
  1.                     }
  2.                 }
  3.                 // once the record exists, send it to all handlers as long as the bubbling chain is not interrupted
  4.                 try {
  5.                     if (true === $handler->handle($record)) {
  6.                         break;
  7.                     }
  8.                 } catch (Throwable $e) {
  9.                     $this->handleException($e$record);
  1.             $level self::RFC_5424_LEVELS[$level];
  2.         }
  3.         $level = static::toMonologLevel($level);
  4.         $this->addRecord($level, (string) $message$context);
  5.     }
  6.     /**
  7.      * Adds a log record at the DEBUG level.
  8.      *
  1.      * @param array $parameters
  2.      * @return mixed
  3.      */
  4.     public function __call(string $method$parameters)
  5.     {
  6.         return $this->driver()->$method(...$parameters);
  7.     }
  8.     /**
  9.      * Create a new, on-demand aggregate logger instance.
  10.      */
  1.     public static function __callStatic($method$args)
  2.     {
  3.         if (!isset(self::$instance)) {
  4.             self::$instance= new LogManager();
  5.         }
  6.         return self::$instance->$method(...$args);
  7.     }
  8. }
  1.         if ($this->shouldntReport($e)) {
  2.             return;
  3.         }
  4.         try {
  5.             Log::log($this->defaultErrorLevelMap()[$this->getLogLevel($e)], $e->getMessage(), ['exception' => $e]);
  6.         } catch (\Throwable $ex) {
  7.             $this->render($ex);
  8.             $this->render($e);
  9.             throw $e;
  10.         }
  1.      */
  2.     protected function handleException(Throwable $e): void
  3.     {
  4.         $handler = new Handler();
  5.         $handler->report($e);
  6.         $handler->render($e);
  7.     }
HandleExceptions->handleException() in /home/solomono/web/solomono.net/bootstrap/HandleExceptions.php (line 36)
  1.         set_error_handler(function($level$message$file ''$line 0) {
  2.             $this->handleError($level$message$file$line);
  3.         });
  4.         set_exception_handler(function($e) {
  5.             $this->handleException($e);
  6.         });
  7.         register_shutdown_function(function() {
  8.             $this->handleShutdown();
  9.         });
HandleExceptions->Bootstrap\{closure}()

Stack Trace

RuntimeException
RuntimeException:
Telegram API error. Description: Bad Request: message text is empty

  at /home/solomono/web/solomono.net/vendor/monolog/monolog/src/Monolog/Handler/TelegramBotHandler.php:256
  at Monolog\Handler\TelegramBotHandler->sendCurl()
     (/home/solomono/web/solomono.net/vendor/monolog/monolog/src/Monolog/Handler/TelegramBotHandler.php:230)
  at Monolog\Handler\TelegramBotHandler->send()
     (/home/solomono/web/solomono.net/app/Classes/Logger/Handler/TelegramHandler.php:19)
  at App\Classes\Logger\Handler\TelegramHandler->write()
     (/home/solomono/web/solomono.net/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:48)
  at Monolog\Handler\AbstractProcessingHandler->handle()
     (/home/solomono/web/solomono.net/vendor/monolog/monolog/src/Monolog/Logger.php:399)
  at Monolog\Logger->addRecord()
     (/home/solomono/web/solomono.net/vendor/monolog/monolog/src/Monolog/Logger.php:585)
  at Monolog\Logger->log()
     (/home/solomono/web/solomono.net/app/Classes/Logger/LogManager.php:92)
  at App\Classes\Logger\LogManager->__call()
     (/home/solomono/web/solomono.net/app/Classes/Logger/Log.php:17)
  at App\Classes\Logger\Log::__callStatic()
     (/home/solomono/web/solomono.net/app/Exceptions/Handler/Handler.php:33)
  at App\Exceptions\Handler\Handler->report()
     (/home/solomono/web/solomono.net/bootstrap/HandleExceptions.php:96)
  at Bootstrap\HandleExceptions->handleException()
     (/home/solomono/web/solomono.net/bootstrap/HandleExceptions.php:36)
  at Bootstrap\HandleExceptions->Bootstrap\{closure}()                
Telegram API error. Description: Bad Request: message text is empty (500 Whoops, looks like something went wrong.)

RuntimeException

HTTP 500 Whoops, looks like something went wrong.

Telegram API error. Description: Bad Request: message text is empty

Exception

RuntimeException

  1.             throw new RuntimeException('Telegram API error. Description: No response');
  2.         }
  3.         $result json_decode($resulttrue);
  4.         if ($result['ok'] === false) {
  5.             throw new RuntimeException('Telegram API error. Description: ' $result['description']);
  6.         }
  7.     }
  8.     /**
  9.      * Handle a message that is too long: truncates or splits into several
  1.         foreach ($messages as $key => $msg) {
  2.             if ($this->delayBetweenMessages && $key 0) {
  3.                 sleep(1);
  4.             }
  5.             $this->sendCurl($msg);
  6.         }
  7.     }
  8.     protected function sendCurl(string $message): void
  9.     {
  1.         $key $this->keyGenerate($record);
  2.         if (false === $this->keyExist($key)) {
  3.             $this->firedMessages[$key] = $record;
  4.             Cache::add($key$record120);
  5.             $this->send($record['formatted']);
  6.         }
  7.     }
  8.     private function keyExist(string $key): bool
  9.     {
  1.             $record $this->processRecord($record);
  2.         }
  3.         $record['formatted'] = $this->getFormatter()->format($record);
  4.         $this->write($record);
  5.         return false === $this->bubble;
  6.     }
  7.     /**
  1.                     }
  2.                 }
  3.                 // once the record exists, send it to all handlers as long as the bubbling chain is not interrupted
  4.                 try {
  5.                     if (true === $handler->handle($record)) {
  6.                         break;
  7.                     }
  8.                 } catch (Throwable $e) {
  9.                     $this->handleException($e$record);
  1.      * @param string|Stringable $message The log message
  2.      * @param mixed[]           $context The log context
  3.      */
  4.     public function alert($message, array $context = []): void
  5.     {
  6.         $this->addRecord(static::ALERT, (string) $message$context);
  7.     }
  8.     /**
  9.      * Adds a log record at the EMERGENCY level.
  10.      *
  1.      * @param array $parameters
  2.      * @return mixed
  3.      */
  4.     public function __call(string $method$parameters)
  5.     {
  6.         return $this->driver()->$method(...$parameters);
  7.     }
  8.     /**
  9.      * Create a new, on-demand aggregate logger instance.
  10.      */
  1.     public static function __callStatic($method$args)
  2.     {
  3.         if (!isset(self::$instance)) {
  4.             self::$instance= new LogManager();
  5.         }
  6.         return self::$instance->$method(...$args);
  7.     }
  8. }
  1.     if ($end 2) {
  2.         Log::alert('Mysql Time query', [
  3.             'query' => tep_db_input($query),
  4.             'time' => $end,
  5.             'SCRIPT_FILENAME' => $_SERVER["SCRIPT_FILENAME"],
  6.         ]);
  7.     }
  8.     $query_total_time += $end;
  1.     function _sess_destroy($key) {
  2.         return tep_db_query("delete from " TABLE_SESSIONS " where sesskey = '" tep_db_input($key) . "'");
  3.     }
  4.     function _sess_gc($maxlifetime) {
  5.         tep_db_query("delete from " TABLE_SESSIONS " where expiry < '" time() . "'");
  6.         return true;
  7.     }
  8.     session_set_save_handler('_sess_open''_sess_close''_sess_read''_sess_write''_sess_destroy''_sess_gc');
_sess_gc()
  1.     if ($sane_session_id==false) {
  2.         tep_redirect(tep_href_link('/''''NONSSL'false));
  3.     }
  4.     return session_start();
  5. }
  6. function tep_session_register($variable) {
  7.     if (!isset($GLOBALS[$variable])) {
  1.         die;  // Don't send any more output.
  2.     }
  3.     // END HACK
  4.     if ($spider_flag == false) {
  5.         tep_session_start();
  6.         $session_started true;
  7.     }
  8. } else {
  9.     tep_session_start();
  10.     $session_started true;
require_once('/home/solomono/web/solomono.net/includes/application_top.php') in /home/solomono/web/solomono.net/article_info.php (line 19)
  1. if((int)$_GET['articles_id'] == 121){
  2.   require ('payment.php');
  3. } else {
  4.   require_once('includes/application_top.php');
  5.   include_once(DIR_WS_LANGUAGES $language '/' FILENAME_ARTICLE_INFO);
  6.     $article_check_query_bad tep_db_query("select a.articles_status, a.include_file,ad.articles_head_keywords_tag as h1 from " TABLE_ARTICLES " a, " TABLE_ARTICLES_DESCRIPTION " ad where a.articles_id = '" . (int)$_GET['articles_id'] . "' and ad.articles_id = a.articles_id and ad.language_id = '" . (int)$languages_id "'");
  7.     $article_check_query_bad_t tep_db_fetch_array($article_check_query_bad);
  8.     if (empty($article_check_query_bad_t)) {
  9.         tep_redirect(tep_href_link(FILENAME_ERROR_404));

Stack Trace

RuntimeException
RuntimeException:
Telegram API error. Description: Bad Request: message text is empty

  at /home/solomono/web/solomono.net/vendor/monolog/monolog/src/Monolog/Handler/TelegramBotHandler.php:256
  at Monolog\Handler\TelegramBotHandler->sendCurl()
     (/home/solomono/web/solomono.net/vendor/monolog/monolog/src/Monolog/Handler/TelegramBotHandler.php:230)
  at Monolog\Handler\TelegramBotHandler->send()
     (/home/solomono/web/solomono.net/app/Classes/Logger/Handler/TelegramHandler.php:19)
  at App\Classes\Logger\Handler\TelegramHandler->write()
     (/home/solomono/web/solomono.net/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:48)
  at Monolog\Handler\AbstractProcessingHandler->handle()
     (/home/solomono/web/solomono.net/vendor/monolog/monolog/src/Monolog/Logger.php:399)
  at Monolog\Logger->addRecord()
     (/home/solomono/web/solomono.net/vendor/monolog/monolog/src/Monolog/Logger.php:676)
  at Monolog\Logger->alert()
     (/home/solomono/web/solomono.net/app/Classes/Logger/LogManager.php:92)
  at App\Classes\Logger\LogManager->__call()
     (/home/solomono/web/solomono.net/app/Classes/Logger/Log.php:17)
  at App\Classes\Logger\Log::__callStatic()
     (/home/solomono/web/solomono.net/includes/functions/database.php:93)
  at tep_db_query()
     (/home/solomono/web/solomono.net/includes/functions/sessions.php:66)
  at _sess_gc()
  at session_start()
     (/home/solomono/web/solomono.net/includes/functions/sessions.php:114)
  at tep_session_start()
     (/home/solomono/web/solomono.net/includes/application_top.php:199)
  at require_once('/home/solomono/web/solomono.net/includes/application_top.php')
     (/home/solomono/web/solomono.net/article_info.php:19)                
strip_tags() expects parameter 1 to be string, array given (500 Whoops, looks like something went wrong.)

ErrorException

HTTP 500 Whoops, looks like something went wrong.

strip_tags() expects parameter 1 to be string, array given

Exception

ErrorException

  1.         if ($record['extra']) {
  2.             $output[] = "<b>Extra:</b>";
  3.             $output[] = $this->toJson($record['extra'], true);
  4.         }
  5.         return implode(PHP_EOLstrip_tags($output,'<b><strong><i><em><u><ins><s><strike><del><span><tg-spoiler><a><tg-emoji><code><pre><blockquote>')) ?: '';
  6.     }
  7.     public function formatBatch(array $records): string
  8.     {
  9.         $message '';
HandleExceptions->handleError() in /home/solomono/web/solomono.net/bootstrap/HandleExceptions.php (line 32)
  1.         //ini_set('error_log' , '/home/solomono/web/solomono.net/sites/dev/php.log');
  2.         error_reporting(E_ALL);
  3.         set_error_handler(function($level$message$file ''$line 0) {
  4.             $this->handleError($level$message$file$line);
  5.         });
  6.         set_exception_handler(function($e) {
  7.             $this->handleException($e);
  8.         });
HandleExceptions->Bootstrap\{closure}()
  1.         if ($record['extra']) {
  2.             $output[] = "<b>Extra:</b>";
  3.             $output[] = $this->toJson($record['extra'], true);
  4.         }
  5.         return implode(PHP_EOLstrip_tags($output,'<b><strong><i><em><u><ins><s><strike><del><span><tg-spoiler><a><tg-emoji><code><pre><blockquote>')) ?: '';
  6.     }
  7.     public function formatBatch(array $records): string
  8.     {
  9.         $message '';
  1.         if ($this->processors) {
  2.             /** @var Record $record */
  3.             $record $this->processRecord($record);
  4.         }
  5.         $record['formatted'] = $this->getFormatter()->format($record);
  6.         $this->write($record);
  7.         return false === $this->bubble;
  8.     }
  1.                     }
  2.                 }
  3.                 // once the record exists, send it to all handlers as long as the bubbling chain is not interrupted
  4.                 try {
  5.                     if (true === $handler->handle($record)) {
  6.                         break;
  7.                     }
  8.                 } catch (Throwable $e) {
  9.                     $this->handleException($e$record);
  1.             $level self::RFC_5424_LEVELS[$level];
  2.         }
  3.         $level = static::toMonologLevel($level);
  4.         $this->addRecord($level, (string) $message$context);
  5.     }
  6.     /**
  7.      * Adds a log record at the DEBUG level.
  8.      *
  1.      * @param array $parameters
  2.      * @return mixed
  3.      */
  4.     public function __call(string $method$parameters)
  5.     {
  6.         return $this->driver()->$method(...$parameters);
  7.     }
  8.     /**
  9.      * Create a new, on-demand aggregate logger instance.
  10.      */
  1.     public static function __callStatic($method$args)
  2.     {
  3.         if (!isset(self::$instance)) {
  4.             self::$instance= new LogManager();
  5.         }
  6.         return self::$instance->$method(...$args);
  7.     }
  8. }
  1.         if ($this->shouldntReport($e)) {
  2.             return;
  3.         }
  4.         try {
  5.             Log::log($this->defaultErrorLevelMap()[$this->getLogLevel($e)], $e->getMessage(), ['exception' => $e]);
  6.         } catch (\Throwable $ex) {
  7.             $this->render($ex);
  8.             $this->render($e);
  9.             throw $e;
  10.         }
  1.      */
  2.     protected function handleException(Throwable $e): void
  3.     {
  4.         $handler = new Handler();
  5.         $handler->report($e);
  6.         $handler->render($e);
  7.     }
HandleExceptions->handleException() in /home/solomono/web/solomono.net/bootstrap/HandleExceptions.php (line 108)
  1.      * Handle the PHP shutdown event.
  2.      */
  3.     protected function handleShutdown(): void
  4.     {
  5.         if (!is_null($error error_get_last()) && $this->isFatal($error['type'])) {
  6.             $this->handleException($this->fatalErrorFromPhpError($error0));
  7.         }
  8.     }
  9.     /**
  10.      * Determine if the error type is fatal.
HandleExceptions->handleShutdown() in /home/solomono/web/solomono.net/bootstrap/HandleExceptions.php (line 40)
  1.         set_exception_handler(function($e) {
  2.             $this->handleException($e);
  3.         });
  4.         register_shutdown_function(function() {
  5.             $this->handleShutdown();
  6.         });
  7.     }
  8.     /**
  9.      * Report PHP deprecations, or convert PHP errors to ErrorException instances.
HandleExceptions->Bootstrap\{closure}()

Stack Trace

ErrorException
ErrorException:
strip_tags() expects parameter 1 to be string, array given

  at /home/solomono/web/solomono.net/app/Classes/Logger/Formatter/TelegramFormatter.php:52
  at Bootstrap\HandleExceptions->handleError()
     (/home/solomono/web/solomono.net/bootstrap/HandleExceptions.php:32)
  at Bootstrap\HandleExceptions->Bootstrap\{closure}()
  at strip_tags()
     (/home/solomono/web/solomono.net/app/Classes/Logger/Formatter/TelegramFormatter.php:52)
  at App\Classes\Logger\Formatter\TelegramFormatter->format()
     (/home/solomono/web/solomono.net/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:46)
  at Monolog\Handler\AbstractProcessingHandler->handle()
     (/home/solomono/web/solomono.net/vendor/monolog/monolog/src/Monolog/Logger.php:399)
  at Monolog\Logger->addRecord()
     (/home/solomono/web/solomono.net/vendor/monolog/monolog/src/Monolog/Logger.php:585)
  at Monolog\Logger->log()
     (/home/solomono/web/solomono.net/app/Classes/Logger/LogManager.php:92)
  at App\Classes\Logger\LogManager->__call()
     (/home/solomono/web/solomono.net/app/Classes/Logger/Log.php:17)
  at App\Classes\Logger\Log::__callStatic()
     (/home/solomono/web/solomono.net/app/Exceptions/Handler/Handler.php:33)
  at App\Exceptions\Handler\Handler->report()
     (/home/solomono/web/solomono.net/bootstrap/HandleExceptions.php:96)
  at Bootstrap\HandleExceptions->handleException()
     (/home/solomono/web/solomono.net/bootstrap/HandleExceptions.php:108)
  at Bootstrap\HandleExceptions->handleShutdown()
     (/home/solomono/web/solomono.net/bootstrap/HandleExceptions.php:40)
  at Bootstrap\HandleExceptions->Bootstrap\{closure}()                
implode(): Invalid arguments passed (500 Whoops, looks like something went wrong.)

ErrorException

HTTP 500 Whoops, looks like something went wrong.

implode(): Invalid arguments passed

Exception

ErrorException

  1.         if ($record['extra']) {
  2.             $output[] = "<b>Extra:</b>";
  3.             $output[] = $this->toJson($record['extra'], true);
  4.         }
  5.         return implode(PHP_EOLstrip_tags($output,'<b><strong><i><em><u><ins><s><strike><del><span><tg-spoiler><a><tg-emoji><code><pre><blockquote>')) ?: '';
  6.     }
  7.     public function formatBatch(array $records): string
  8.     {
  9.         $message '';
HandleExceptions->handleError() in /home/solomono/web/solomono.net/bootstrap/HandleExceptions.php (line 32)
  1.         //ini_set('error_log' , '/home/solomono/web/solomono.net/sites/dev/php.log');
  2.         error_reporting(E_ALL);
  3.         set_error_handler(function($level$message$file ''$line 0) {
  4.             $this->handleError($level$message$file$line);
  5.         });
  6.         set_exception_handler(function($e) {
  7.             $this->handleException($e);
  8.         });
HandleExceptions->Bootstrap\{closure}()
  1.         if ($record['extra']) {
  2.             $output[] = "<b>Extra:</b>";
  3.             $output[] = $this->toJson($record['extra'], true);
  4.         }
  5.         return implode(PHP_EOLstrip_tags($output,'<b><strong><i><em><u><ins><s><strike><del><span><tg-spoiler><a><tg-emoji><code><pre><blockquote>')) ?: '';
  6.     }
  7.     public function formatBatch(array $records): string
  8.     {
  9.         $message '';
  1.         if ($this->processors) {
  2.             /** @var Record $record */
  3.             $record $this->processRecord($record);
  4.         }
  5.         $record['formatted'] = $this->getFormatter()->format($record);
  6.         $this->write($record);
  7.         return false === $this->bubble;
  8.     }
  1.                     }
  2.                 }
  3.                 // once the record exists, send it to all handlers as long as the bubbling chain is not interrupted
  4.                 try {
  5.                     if (true === $handler->handle($record)) {
  6.                         break;
  7.                     }
  8.                 } catch (Throwable $e) {
  9.                     $this->handleException($e$record);
  1.             $level self::RFC_5424_LEVELS[$level];
  2.         }
  3.         $level = static::toMonologLevel($level);
  4.         $this->addRecord($level, (string) $message$context);
  5.     }
  6.     /**
  7.      * Adds a log record at the DEBUG level.
  8.      *
  1.      * @param array $parameters
  2.      * @return mixed
  3.      */
  4.     public function __call(string $method$parameters)
  5.     {
  6.         return $this->driver()->$method(...$parameters);
  7.     }
  8.     /**
  9.      * Create a new, on-demand aggregate logger instance.
  10.      */
  1.     public static function __callStatic($method$args)
  2.     {
  3.         if (!isset(self::$instance)) {
  4.             self::$instance= new LogManager();
  5.         }
  6.         return self::$instance->$method(...$args);
  7.     }
  8. }
  1.         if ($this->shouldntReport($e)) {
  2.             return;
  3.         }
  4.         try {
  5.             Log::log($this->defaultErrorLevelMap()[$this->getLogLevel($e)], $e->getMessage(), ['exception' => $e]);
  6.         } catch (\Throwable $ex) {
  7.             $this->render($ex);
  8.             $this->render($e);
  9.             throw $e;
  10.         }
  1.      */
  2.     protected function handleException(Throwable $e): void
  3.     {
  4.         $handler = new Handler();
  5.         $handler->report($e);
  6.         $handler->render($e);
  7.     }
HandleExceptions->handleException() in /home/solomono/web/solomono.net/bootstrap/HandleExceptions.php (line 108)
  1.      * Handle the PHP shutdown event.
  2.      */
  3.     protected function handleShutdown(): void
  4.     {
  5.         if (!is_null($error error_get_last()) && $this->isFatal($error['type'])) {
  6.             $this->handleException($this->fatalErrorFromPhpError($error0));
  7.         }
  8.     }
  9.     /**
  10.      * Determine if the error type is fatal.
HandleExceptions->handleShutdown() in /home/solomono/web/solomono.net/bootstrap/HandleExceptions.php (line 40)
  1.         set_exception_handler(function($e) {
  2.             $this->handleException($e);
  3.         });
  4.         register_shutdown_function(function() {
  5.             $this->handleShutdown();
  6.         });
  7.     }
  8.     /**
  9.      * Report PHP deprecations, or convert PHP errors to ErrorException instances.
HandleExceptions->Bootstrap\{closure}()

Stack Trace

ErrorException
ErrorException:
implode(): Invalid arguments passed

  at /home/solomono/web/solomono.net/app/Classes/Logger/Formatter/TelegramFormatter.php:52
  at Bootstrap\HandleExceptions->handleError()
     (/home/solomono/web/solomono.net/bootstrap/HandleExceptions.php:32)
  at Bootstrap\HandleExceptions->Bootstrap\{closure}()
  at implode()
     (/home/solomono/web/solomono.net/app/Classes/Logger/Formatter/TelegramFormatter.php:52)
  at App\Classes\Logger\Formatter\TelegramFormatter->format()
     (/home/solomono/web/solomono.net/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:46)
  at Monolog\Handler\AbstractProcessingHandler->handle()
     (/home/solomono/web/solomono.net/vendor/monolog/monolog/src/Monolog/Logger.php:399)
  at Monolog\Logger->addRecord()
     (/home/solomono/web/solomono.net/vendor/monolog/monolog/src/Monolog/Logger.php:585)
  at Monolog\Logger->log()
     (/home/solomono/web/solomono.net/app/Classes/Logger/LogManager.php:92)
  at App\Classes\Logger\LogManager->__call()
     (/home/solomono/web/solomono.net/app/Classes/Logger/Log.php:17)
  at App\Classes\Logger\Log::__callStatic()
     (/home/solomono/web/solomono.net/app/Exceptions/Handler/Handler.php:33)
  at App\Exceptions\Handler\Handler->report()
     (/home/solomono/web/solomono.net/bootstrap/HandleExceptions.php:96)
  at Bootstrap\HandleExceptions->handleException()
     (/home/solomono/web/solomono.net/bootstrap/HandleExceptions.php:108)
  at Bootstrap\HandleExceptions->handleShutdown()
     (/home/solomono/web/solomono.net/bootstrap/HandleExceptions.php:40)
  at Bootstrap\HandleExceptions->Bootstrap\{closure}()                
Telegram API error. Description: Bad Request: message text is empty (500 Whoops, looks like something went wrong.)

RuntimeException

HTTP 500 Whoops, looks like something went wrong.

Telegram API error. Description: Bad Request: message text is empty

Exception

RuntimeException

  1.             throw new RuntimeException('Telegram API error. Description: No response');
  2.         }
  3.         $result json_decode($resulttrue);
  4.         if ($result['ok'] === false) {
  5.             throw new RuntimeException('Telegram API error. Description: ' $result['description']);
  6.         }
  7.     }
  8.     /**
  9.      * Handle a message that is too long: truncates or splits into several
  1.         foreach ($messages as $key => $msg) {
  2.             if ($this->delayBetweenMessages && $key 0) {
  3.                 sleep(1);
  4.             }
  5.             $this->sendCurl($msg);
  6.         }
  7.     }
  8.     protected function sendCurl(string $message): void
  9.     {
  1.         $key $this->keyGenerate($record);
  2.         if (false === $this->keyExist($key)) {
  3.             $this->firedMessages[$key] = $record;
  4.             Cache::add($key$record120);
  5.             $this->send($record['formatted']);
  6.         }
  7.     }
  8.     private function keyExist(string $key): bool
  9.     {
  1.             $record $this->processRecord($record);
  2.         }
  3.         $record['formatted'] = $this->getFormatter()->format($record);
  4.         $this->write($record);
  5.         return false === $this->bubble;
  6.     }
  7.     /**
  1.                     }
  2.                 }
  3.                 // once the record exists, send it to all handlers as long as the bubbling chain is not interrupted
  4.                 try {
  5.                     if (true === $handler->handle($record)) {
  6.                         break;
  7.                     }
  8.                 } catch (Throwable $e) {
  9.                     $this->handleException($e$record);
  1.             $level self::RFC_5424_LEVELS[$level];
  2.         }
  3.         $level = static::toMonologLevel($level);
  4.         $this->addRecord($level, (string) $message$context);
  5.     }
  6.     /**
  7.      * Adds a log record at the DEBUG level.
  8.      *
  1.      * @param array $parameters
  2.      * @return mixed
  3.      */
  4.     public function __call(string $method$parameters)
  5.     {
  6.         return $this->driver()->$method(...$parameters);
  7.     }
  8.     /**
  9.      * Create a new, on-demand aggregate logger instance.
  10.      */
  1.     public static function __callStatic($method$args)
  2.     {
  3.         if (!isset(self::$instance)) {
  4.             self::$instance= new LogManager();
  5.         }
  6.         return self::$instance->$method(...$args);
  7.     }
  8. }
  1.         if ($this->shouldntReport($e)) {
  2.             return;
  3.         }
  4.         try {
  5.             Log::log($this->defaultErrorLevelMap()[$this->getLogLevel($e)], $e->getMessage(), ['exception' => $e]);
  6.         } catch (\Throwable $ex) {
  7.             $this->render($ex);
  8.             $this->render($e);
  9.             throw $e;
  10.         }
  1.      */
  2.     protected function handleException(Throwable $e): void
  3.     {
  4.         $handler = new Handler();
  5.         $handler->report($e);
  6.         $handler->render($e);
  7.     }
HandleExceptions->handleException() in /home/solomono/web/solomono.net/bootstrap/HandleExceptions.php (line 108)
  1.      * Handle the PHP shutdown event.
  2.      */
  3.     protected function handleShutdown(): void
  4.     {
  5.         if (!is_null($error error_get_last()) && $this->isFatal($error['type'])) {
  6.             $this->handleException($this->fatalErrorFromPhpError($error0));
  7.         }
  8.     }
  9.     /**
  10.      * Determine if the error type is fatal.
HandleExceptions->handleShutdown() in /home/solomono/web/solomono.net/bootstrap/HandleExceptions.php (line 40)
  1.         set_exception_handler(function($e) {
  2.             $this->handleException($e);
  3.         });
  4.         register_shutdown_function(function() {
  5.             $this->handleShutdown();
  6.         });
  7.     }
  8.     /**
  9.      * Report PHP deprecations, or convert PHP errors to ErrorException instances.
HandleExceptions->Bootstrap\{closure}()

Stack Trace

RuntimeException
RuntimeException:
Telegram API error. Description: Bad Request: message text is empty

  at /home/solomono/web/solomono.net/vendor/monolog/monolog/src/Monolog/Handler/TelegramBotHandler.php:256
  at Monolog\Handler\TelegramBotHandler->sendCurl()
     (/home/solomono/web/solomono.net/vendor/monolog/monolog/src/Monolog/Handler/TelegramBotHandler.php:230)
  at Monolog\Handler\TelegramBotHandler->send()
     (/home/solomono/web/solomono.net/app/Classes/Logger/Handler/TelegramHandler.php:19)
  at App\Classes\Logger\Handler\TelegramHandler->write()
     (/home/solomono/web/solomono.net/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:48)
  at Monolog\Handler\AbstractProcessingHandler->handle()
     (/home/solomono/web/solomono.net/vendor/monolog/monolog/src/Monolog/Logger.php:399)
  at Monolog\Logger->addRecord()
     (/home/solomono/web/solomono.net/vendor/monolog/monolog/src/Monolog/Logger.php:585)
  at Monolog\Logger->log()
     (/home/solomono/web/solomono.net/app/Classes/Logger/LogManager.php:92)
  at App\Classes\Logger\LogManager->__call()
     (/home/solomono/web/solomono.net/app/Classes/Logger/Log.php:17)
  at App\Classes\Logger\Log::__callStatic()
     (/home/solomono/web/solomono.net/app/Exceptions/Handler/Handler.php:33)
  at App\Exceptions\Handler\Handler->report()
     (/home/solomono/web/solomono.net/bootstrap/HandleExceptions.php:96)
  at Bootstrap\HandleExceptions->handleException()
     (/home/solomono/web/solomono.net/bootstrap/HandleExceptions.php:108)
  at Bootstrap\HandleExceptions->handleShutdown()
     (/home/solomono/web/solomono.net/bootstrap/HandleExceptions.php:40)
  at Bootstrap\HandleExceptions->Bootstrap\{closure}()                
Uncaught RuntimeException: Telegram API error. Description: Bad Request: message text is empty in /home/solomono/web/solomono.net/vendor/monolog/monolog/src/Monolog/Handler/TelegramBotHandler.php:256 Stack trace: #0 /home/solomono/web/solomono.net/vendor/monolog/monolog/src/Monolog/Handler/TelegramBotHandler.php(230): Monolog\Handler\TelegramBotHandler->sendCurl() #1 /home/solomono/web/solomono.net/app/Classes/Logger/Handler/TelegramHandler.php(19): Monolog\Handler\TelegramBotHandler->send() #2 /home/solomono/web/solomono.net/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(48): App\Classes\Logger\Handler\TelegramHandler->write() #3 /home/solomono/web/solomono.net/vendor/monolog/monolog/src/Monolog/Logger.php(399): Monolog\Handler\AbstractProcessingHandler->handle() #4 /home/solomono/web/solomono.net/vendor/monolog/monolog/src/Monolog/Logger.php(676): Monolog\Logger->addRecord() #5 /home/solomono/web/solomono.net/app/Classes/Logger/LogManager.php(92): Monolog\Logger->alert() #6 /home/s (500 Whoops, looks like something went wrong.)

Error

HTTP 500 Whoops, looks like something went wrong.

Uncaught RuntimeException: Telegram API error. Description: Bad Request: message text is empty in /home/solomono/web/solomono.net/vendor/monolog/monolog/src/Monolog/Handler/TelegramBotHandler.php:256
Stack trace:
#0 /home/solomono/web/solomono.net/vendor/monolog/monolog/src/Monolog/Handler/TelegramBotHandler.php(230): Monolog\Handler\TelegramBotHandler->sendCurl()
#1 /home/solomono/web/solomono.net/app/Classes/Logger/Handler/TelegramHandler.php(19): Monolog\Handler\TelegramBotHandler->send()
#2 /home/solomono/web/solomono.net/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(48): App\Classes\Logger\Handler\TelegramHandler->write()
#3 /home/solomono/web/solomono.net/vendor/monolog/monolog/src/Monolog/Logger.php(399): Monolog\Handler\AbstractProcessingHandler->handle()
#4 /home/solomono/web/solomono.net/vendor/monolog/monolog/src/Monolog/Logger.php(676): Monolog\Logger->addRecord()
#5 /home/solomono/web/solomono.net/app/Classes/Logger/LogManager.php(92): Monolog\Logger->alert()
#6 /home/s

Exception

Error

  1.      * @param int|null $traceOffset
  2.      * @return \Error
  3.      */
  4.     protected function fatalErrorFromPhpError(array $error$traceOffset null)
  5.     {
  6.         return new \Error($error['message'], 0);
  7.     }
  8. }
HandleExceptions->fatalErrorFromPhpError() in /home/solomono/web/solomono.net/bootstrap/HandleExceptions.php (line 108)
  1.      * Handle the PHP shutdown event.
  2.      */
  3.     protected function handleShutdown(): void
  4.     {
  5.         if (!is_null($error error_get_last()) && $this->isFatal($error['type'])) {
  6.             $this->handleException($this->fatalErrorFromPhpError($error0));
  7.         }
  8.     }
  9.     /**
  10.      * Determine if the error type is fatal.
HandleExceptions->handleShutdown() in /home/solomono/web/solomono.net/bootstrap/HandleExceptions.php (line 40)
  1.         set_exception_handler(function($e) {
  2.             $this->handleException($e);