RuntimeException

HTTP 500 Whoops, looks like something went wrong.

Telegram API error. Description: Bad Request: can't parse entities: Unsupported start tag "" at byte offset 224

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('/home/solomono/web/solomono.net/includes/application_top.php') in /home/solomono/web/solomono.net/product_info.php (line 13)
  1.   Copyright (c) 2003 osCommerce
  2.   Released under the GNU General Public License
  3. */
  4.   require('includes/application_top.php');
  5. // Redirect to marketplace for products form category 389
  6. if ($cPath === "389") {
  7.     tep_redirect(tep_href_link(FILENAME_DEFAULT"cPath=383"));
  8. }

Stack Trace

RuntimeException
RuntimeException:
Telegram API error. Description: Bad Request: can't parse entities: Unsupported start tag "" at byte offset 224

  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:67)
  at _sess_gc()
  at session_start()
     (/home/solomono/web/solomono.net/includes/functions/sessions.php:115)
  at tep_session_start()
     (/home/solomono/web/solomono.net/includes/application_top.php:199)
  at require('/home/solomono/web/solomono.net/includes/application_top.php')
     (/home/solomono/web/solomono.net/product_info.php:13)