throw new RuntimeException('Telegram API error. Description: No response'); } $result = json_decode($result, true); if ($result['ok'] === false) { throw new RuntimeException('Telegram API error. Description: ' . $result['description']); } } /** * Handle a message that is too long: truncates or splits into several foreach ($messages as $key => $msg) { if ($this->delayBetweenMessages && $key > 0) { sleep(1); } $this->sendCurl($msg); } } protected function sendCurl(string $message): void { $key = $this->keyGenerate($record);
if (false === $this->keyExist($key)) {
$this->firedMessages[$key] = $record;
Cache::add($key, $record, 120);
$this->send($record['formatted']);
}
}
private function keyExist(string $key): bool
{
$record = $this->processRecord($record); } $record['formatted'] = $this->getFormatter()->format($record); $this->write($record); return false === $this->bubble; } /** } } // once the record exists, send it to all handlers as long as the bubbling chain is not interrupted try { if (true === $handler->handle($record)) { break; } } catch (Throwable $e) { $this->handleException($e, $record); $level = self::RFC_5424_LEVELS[$level]; } $level = static::toMonologLevel($level); $this->addRecord($level, (string) $message, $context); } /** * Adds a log record at the DEBUG level. * * @param array $parameters
* @return mixed
*/
public function __call(string $method, $parameters)
{
return $this->driver()->$method(...$parameters);
}
/**
* Create a new, on-demand aggregate logger instance.
*/
public static function __callStatic($method, $args)
{
if (!isset(self::$instance)) {
self::$instance= new LogManager();
}
return self::$instance->$method(...$args);
}
} if ($this->shouldntReport($e)) {
return;
}
try {
Log::log($this->defaultErrorLevelMap()[$this->getLogLevel($e)], $e->getMessage(), ['exception' => $e]);
} catch (\Throwable $ex) {
$this->render($ex);
$this->render($e);
throw $e;
}
*/
protected function handleException(Throwable $e): void
{
$handler = new Handler();
$handler->report($e);
$handler->render($e);
}
if ($this->isDeprecation($level)) {
$this->handleDeprecation($message, $file, $line);
return;
}
$this->handleException(new ErrorException($message, 0, $level, $file, $line));
}
}
/**
* Determine if the error level is a deprecation.
//ini_set('error_log' , '/home/solomono/web/solomono.net/sites/dev/php.log');
error_reporting(E_ALL);
set_error_handler(function($level, $message, $file = '', $line = 0) {
$this->handleError($level, $message, $file, $line);
});
set_exception_handler(function($e) {
$this->handleException($e);
});
</div> <? array_shift($smallImages); ?> <?php
if(count($smallImages) > 3) {
$smallImgCounter = 1;
echo '<div class="marketplace_page__card_smallImages smallImages-slider owl-carousel owl-theme owl-loaded owl-carousel owl-drag">';
foreach ($smallImages as $value) {
echo '<a data-fancybox="module_images" data-lightbox="image-1" href="getimage/' . $value . '">
<img class="lazyload marketplace__cart-ico marketplace__round-ico"
<?php if ($content == 'index_default'): ?>
<?php require(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/mainpage_modules/slider_main.php'); ?>
<?php endif ?>
<?php if (isset($_GET['products_id']) && !productIsTemplate($_GET['products_id']))
require(DIR_WS_CONTENT . 'product_info_new.php');
else
require(DIR_WS_CONTENT . $content . '.tpl.php');
?>
<div class="hFooter"></div></main> }
$content = CONTENT_PRODUCT_INFO;
// $javascript = 'product_info.js';
require(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/' . TEMPLATENAME_MAIN_PAGE);
require(DIR_WS_INCLUDES . 'application_bottom.php');
|
RuntimeException
|
|---|
RuntimeException:
Telegram API error. Description: Not Found
at /home/solomono/web/hetzner.solomono.net/vendor/monolog/monolog/src/Monolog/Handler/TelegramBotHandler.php:256
at Monolog\Handler\TelegramBotHandler->sendCurl()
(/home/solomono/web/hetzner.solomono.net/vendor/monolog/monolog/src/Monolog/Handler/TelegramBotHandler.php:230)
at Monolog\Handler\TelegramBotHandler->send()
(/home/solomono/web/hetzner.solomono.net/app/Classes/Logger/Handler/TelegramHandler.php:19)
at App\Classes\Logger\Handler\TelegramHandler->write()
(/home/solomono/web/hetzner.solomono.net/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:48)
at Monolog\Handler\AbstractProcessingHandler->handle()
(/home/solomono/web/hetzner.solomono.net/vendor/monolog/monolog/src/Monolog/Logger.php:400)
at Monolog\Logger->addRecord()
(/home/solomono/web/hetzner.solomono.net/vendor/monolog/monolog/src/Monolog/Logger.php:586)
at Monolog\Logger->log()
(/home/solomono/web/hetzner.solomono.net/app/Classes/Logger/LogManager.php:92)
at App\Classes\Logger\LogManager->__call()
(/home/solomono/web/hetzner.solomono.net/app/Classes/Logger/Log.php:17)
at App\Classes\Logger\Log::__callStatic()
(/home/solomono/web/hetzner.solomono.net/app/Exceptions/Handler/Handler.php:33)
at App\Exceptions\Handler\Handler->report()
(/home/solomono/web/hetzner.solomono.net/bootstrap/HandleExceptions.php:96)
at Bootstrap\HandleExceptions->handleException()
(/home/solomono/web/hetzner.solomono.net/bootstrap/HandleExceptions.php:63)
at Bootstrap\HandleExceptions->handleError()
(/home/solomono/web/hetzner.solomono.net/bootstrap/HandleExceptions.php:32)
at Bootstrap\HandleExceptions->Bootstrap\{closure}()
(/home/solomono/web/hetzner.solomono.net/templates/content/product_info_new.php:98)
at require('/home/solomono/web/hetzner.solomono.net/templates/content/product_info_new.php')
(/home/solomono/web/hetzner.solomono.net/templates/solo/main_page.tpl.php:502)
at require('/home/solomono/web/hetzner.solomono.net/templates/solo/main_page.tpl.php')
(/home/solomono/web/hetzner.solomono.net/product_info.php:102)
|
</div> <? array_shift($smallImages); ?> <?php
if(count($smallImages) > 3) {
$smallImgCounter = 1;
echo '<div class="marketplace_page__card_smallImages smallImages-slider owl-carousel owl-theme owl-loaded owl-carousel owl-drag">';
foreach ($smallImages as $value) {
echo '<a data-fancybox="module_images" data-lightbox="image-1" href="getimage/' . $value . '">
<img class="lazyload marketplace__cart-ico marketplace__round-ico"
//ini_set('error_log' , '/home/solomono/web/solomono.net/sites/dev/php.log');
error_reporting(E_ALL);
set_error_handler(function($level, $message, $file = '', $line = 0) {
$this->handleError($level, $message, $file, $line);
});
set_exception_handler(function($e) {
$this->handleException($e);
});
</div> <? array_shift($smallImages); ?> <?php
if(count($smallImages) > 3) {
$smallImgCounter = 1;
echo '<div class="marketplace_page__card_smallImages smallImages-slider owl-carousel owl-theme owl-loaded owl-carousel owl-drag">';
foreach ($smallImages as $value) {
echo '<a data-fancybox="module_images" data-lightbox="image-1" href="getimage/' . $value . '">
<img class="lazyload marketplace__cart-ico marketplace__round-ico"
<?php if ($content == 'index_default'): ?>
<?php require(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/mainpage_modules/slider_main.php'); ?>
<?php endif ?>
<?php if (isset($_GET['products_id']) && !productIsTemplate($_GET['products_id']))
require(DIR_WS_CONTENT . 'product_info_new.php');
else
require(DIR_WS_CONTENT . $content . '.tpl.php');
?>
<div class="hFooter"></div></main> }
$content = CONTENT_PRODUCT_INFO;
// $javascript = 'product_info.js';
require(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/' . TEMPLATENAME_MAIN_PAGE);
require(DIR_WS_INCLUDES . 'application_bottom.php');
|
ErrorException
|
|---|
ErrorException:
count(): Parameter must be an array or an object that implements Countable
at /home/solomono/web/hetzner.solomono.net/templates/content/product_info_new.php:98
at Bootstrap\HandleExceptions->handleError()
(/home/solomono/web/hetzner.solomono.net/bootstrap/HandleExceptions.php:32)
at Bootstrap\HandleExceptions->Bootstrap\{closure}()
(/home/solomono/web/hetzner.solomono.net/templates/content/product_info_new.php:98)
at require('/home/solomono/web/hetzner.solomono.net/templates/content/product_info_new.php')
(/home/solomono/web/hetzner.solomono.net/templates/solo/main_page.tpl.php:502)
at require('/home/solomono/web/hetzner.solomono.net/templates/solo/main_page.tpl.php')
(/home/solomono/web/hetzner.solomono.net/product_info.php:102)
|
</div> <? array_shift($smallImages); ?> <?php
if(count($smallImages) > 3) {
$smallImgCounter = 1;
echo '<div class="marketplace_page__card_smallImages smallImages-slider owl-carousel owl-theme owl-loaded owl-carousel owl-drag">';
foreach ($smallImages as $value) {
echo '<a data-fancybox="module_images" data-lightbox="image-1" href="getimage/' . $value . '">
<img class="lazyload marketplace__cart-ico marketplace__round-ico"
//ini_set('error_log' , '/home/solomono/web/solomono.net/sites/dev/php.log');
error_reporting(E_ALL);
set_error_handler(function($level, $message, $file = '', $line = 0) {
$this->handleError($level, $message, $file, $line);
});
set_exception_handler(function($e) {
$this->handleException($e);
});
</div> <? array_shift($smallImages); ?> <?php
if(count($smallImages) > 3) {
$smallImgCounter = 1;
echo '<div class="marketplace_page__card_smallImages smallImages-slider owl-carousel owl-theme owl-loaded owl-carousel owl-drag">';
foreach ($smallImages as $value) {
echo '<a data-fancybox="module_images" data-lightbox="image-1" href="getimage/' . $value . '">
<img class="lazyload marketplace__cart-ico marketplace__round-ico"
<?php if ($content == 'index_default'): ?>
<?php require(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/mainpage_modules/slider_main.php'); ?>
<?php endif ?>
<?php if (isset($_GET['products_id']) && !productIsTemplate($_GET['products_id']))
require(DIR_WS_CONTENT . 'product_info_new.php');
else
require(DIR_WS_CONTENT . $content . '.tpl.php');
?>
<div class="hFooter"></div></main> }
$content = CONTENT_PRODUCT_INFO;
// $javascript = 'product_info.js';
require(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/' . TEMPLATENAME_MAIN_PAGE);
require(DIR_WS_INCLUDES . 'application_bottom.php');
|
ErrorException
|
|---|
ErrorException:
count(): Parameter must be an array or an object that implements Countable
at /home/solomono/web/hetzner.solomono.net/templates/content/product_info_new.php:98
at Bootstrap\HandleExceptions->handleError()
(/home/solomono/web/hetzner.solomono.net/bootstrap/HandleExceptions.php:32)
at Bootstrap\HandleExceptions->Bootstrap\{closure}()
(/home/solomono/web/hetzner.solomono.net/templates/content/product_info_new.php:98)
at require('/home/solomono/web/hetzner.solomono.net/templates/content/product_info_new.php')
(/home/solomono/web/hetzner.solomono.net/templates/solo/main_page.tpl.php:502)
at require('/home/solomono/web/hetzner.solomono.net/templates/solo/main_page.tpl.php')
(/home/solomono/web/hetzner.solomono.net/product_info.php:102)
|