Отложенные товары
UnexpectedValueException
|
---|
UnexpectedValueException: There is no existing directory at "/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs" and it could not be created: open_basedir restriction in effect. File(/var/www/new2022) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php) at /var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:216 at Monolog\Handler\StreamHandler->createDir('/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs/daily-2024-04-24.log') (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:135) at Monolog\Handler\StreamHandler->write(array('message' => 'Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP)', 'context' => array('exception' => object(ErrorException)), 'level' => 300, 'level_name' => 'WARNING', 'channel' => 'prod', 'datetime' => object(DateTimeImmutable), 'extra' => array('file' => '/var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php', 'line' => 117, 'class' => null, 'function' => 'require', 'url' => '/articles.php', 'ip' => '3.144.48.135', 'http_method' => 'GET', 'server' => 'moe-zdorovie.com.ua', 'referrer' => 'http://moe-zdorovie.com.ua/articles.php', 'memory_peak_usage' => '2 MB', 'git' => array()), 'formatted' => '[2024-04-24 15:23] prod.WARNING: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) {"exception":"[object] (ErrorException(code: 0): Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) at /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117)"} {"file":"/var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php","line":117,"class":null,"function":"require","url":"/articles.php","ip":"3.144.48.135","http_method":"GET","server":"moe-zdorovie.com.ua","referrer":"http://moe-zdorovie.com.ua/articles.php","memory_peak_usage":"2 MB","git":[]}')) (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php:125) at Monolog\Handler\RotatingFileHandler->write(array('message' => 'Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP)', 'context' => array('exception' => object(ErrorException)), 'level' => 300, 'level_name' => 'WARNING', 'channel' => 'prod', 'datetime' => object(DateTimeImmutable), 'extra' => array('file' => '/var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php', 'line' => 117, 'class' => null, 'function' => 'require', 'url' => '/articles.php', 'ip' => '3.144.48.135', 'http_method' => 'GET', 'server' => 'moe-zdorovie.com.ua', 'referrer' => 'http://moe-zdorovie.com.ua/articles.php', 'memory_peak_usage' => '2 MB', 'git' => array()), 'formatted' => '[2024-04-24 15:23] prod.WARNING: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) {"exception":"[object] (ErrorException(code: 0): Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) at /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117)"} {"file":"/var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php","line":117,"class":null,"function":"require","url":"/articles.php","ip":"3.144.48.135","http_method":"GET","server":"moe-zdorovie.com.ua","referrer":"http://moe-zdorovie.com.ua/articles.php","memory_peak_usage":"2 MB","git":[]}')) (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:48) at Monolog\Handler\AbstractProcessingHandler->handle(array('message' => 'Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP)', 'context' => array('exception' => object(ErrorException)), 'level' => 300, 'level_name' => 'WARNING', 'channel' => 'prod', 'datetime' => object(DateTimeImmutable), 'extra' => array('file' => '/var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php', 'line' => 117, 'class' => null, 'function' => 'require', 'url' => '/articles.php', 'ip' => '3.144.48.135', 'http_method' => 'GET', 'server' => 'moe-zdorovie.com.ua', 'referrer' => 'http://moe-zdorovie.com.ua/articles.php', 'memory_peak_usage' => '2 MB', 'git' => array()), 'formatted' => '[2024-04-24 15:23] prod.WARNING: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) {"exception":"[object] (ErrorException(code: 0): Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) at /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117)"} {"file":"/var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php","line":117,"class":null,"function":"require","url":"/articles.php","ip":"3.144.48.135","http_method":"GET","server":"moe-zdorovie.com.ua","referrer":"http://moe-zdorovie.com.ua/articles.php","memory_peak_usage":"2 MB","git":[]}')) (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Logger.php:327) at Monolog\Logger->addRecord(300, 'Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP)', array('exception' => object(ErrorException))) (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Logger.php:500) at Monolog\Logger->log(300, 'Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP)', array('exception' => object(ErrorException))) (/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Logger/LogManager.php:88) at App\Logger\LogManager->__call('log', array('warning', 'Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP)', array('exception' => object(ErrorException)))) (/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Logger/Log.php:17) at App\Logger\Log::__callStatic('log', array('warning', 'Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP)', array('exception' => object(ErrorException)))) (/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Exceptions/Handler/Handler.php:33) at App\Exceptions\Handler\Handler->report(object(ErrorException)) (/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php:96) at Bootstrap\HandleExceptions->handleException(object(ErrorException)) (/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php:63) at Bootstrap\HandleExceptions->handleError(2, 'Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP)', '/var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php', 117) (/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php:32) at Bootstrap\HandleExceptions->Bootstrap\{closure}(2, 'Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP)', '/var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php', 117, array('r', 'S')) (/var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117) at require('/var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php') (/var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php:171) at require('/var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php') (/var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php:24) |
Exception
ErrorException
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php
(line 117)
<?php
$articles_all_array = array();
$articles_all_query_raw = "select a.articles_id, a.articles_date_added, a.articles_date_available, ad.articles_name, ad.articles_head_desc_tag, ad.articles_viewed, td.topics_id, td.topics_name from " . TABLE_ARTICLES . " a, " . TABLE_ARTICLES_TO_TOPICS . " a2t left join " . TABLE_TOPICS_DESCRIPTION . " td on a2t.topics_id = td.topics_id, " . TABLE_ARTICLES_DESCRIPTION . " ad where (a.articles_date_available IS NULL or a.articles_date_available = '0000-00-00 00:00:00' or to_days(a.articles_date_available) <= to_days(now())) and a.articles_id = a2t.articles_id and a.articles_status = '1' and a.articles_id = ad.articles_id and ad.language_id = '" . (int)$languages_id . "' and td.language_id = '" . (int)$languages_id . "' ORDER BY IF (`a`.`articles_date_available`,`a`.`articles_date_available`, `a`.`articles_date_added`) DESC";
$articles_all_split = new splitPageResults($articles_all_query_raw, 10);
if (($articles_all_split->number_of_rows > 0) && ((ARTICLE_PREV_NEXT_BAR_LOCATION == 'top') || (ARTICLE_PREV_NEXT_BAR_LOCATION == 'both'))) {
?>
<tr>
<td>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
HandleExceptions->handleError(2, 'Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP)', '/var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php', 117)
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php
(line 32)
//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);
});
HandleExceptions->Bootstrap\{closure}(2, 'Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP)', '/var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php', 117, array('r', 'S'))
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php
(line 117)
<?php
$articles_all_array = array();
$articles_all_query_raw = "select a.articles_id, a.articles_date_added, a.articles_date_available, ad.articles_name, ad.articles_head_desc_tag, ad.articles_viewed, td.topics_id, td.topics_name from " . TABLE_ARTICLES . " a, " . TABLE_ARTICLES_TO_TOPICS . " a2t left join " . TABLE_TOPICS_DESCRIPTION . " td on a2t.topics_id = td.topics_id, " . TABLE_ARTICLES_DESCRIPTION . " ad where (a.articles_date_available IS NULL or a.articles_date_available = '0000-00-00 00:00:00' or to_days(a.articles_date_available) <= to_days(now())) and a.articles_id = a2t.articles_id and a.articles_status = '1' and a.articles_id = ad.articles_id and ad.language_id = '" . (int)$languages_id . "' and td.language_id = '" . (int)$languages_id . "' ORDER BY IF (`a`.`articles_date_available`,`a`.`articles_date_available`, `a`.`articles_date_added`) DESC";
$articles_all_split = new splitPageResults($articles_all_query_raw, 10);
if (($articles_all_split->number_of_rows > 0) && ((ARTICLE_PREV_NEXT_BAR_LOCATION == 'top') || (ARTICLE_PREV_NEXT_BAR_LOCATION == 'both'))) {
?>
<tr>
<td>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
require('/var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php')
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php
(line 171)
<div class="<?php echo $center_classes?> right_content">
<!-- CONTENT -->
<?php
if (file_exists(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/content/' . $content . '.tpl.php')) {
require(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/content/' . $content . '.tpl.php');
}else {
require(DIR_WS_CONTENT . $content . '.tpl.php');
}
?>
<!-- END CONTENT -->
require('/var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php')
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php
(line 24)
//
// $breadcrumb->add(HEADING_TITLE, tep_href_link(FILENAME_ARTICLES, '', 'NONSSL'));
$content = CONTENT_ARTICLES;
require(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/' . TEMPLATENAME_MAIN_PAGE);
require(DIR_WS_INCLUDES . 'application_bottom.php');
Stack Trace
ErrorException
|
---|
ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed 'ARTICLE_PREV_NEXT_BAR_LOCATION' (this will throw an Error in a future version of PHP) at /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117 at Bootstrap\HandleExceptions->handleError(2, 'Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP)', '/var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php', 117) (/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php:32) at Bootstrap\HandleExceptions->Bootstrap\{closure}(2, 'Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP)', '/var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php', 117, array('r', 'S')) (/var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117) at require('/var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php') (/var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php:171) at require('/var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php') (/var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php:24) |
Exception
UnexpectedValueException
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php
(line 216)
$this->errorMessage = null;
set_error_handler([$this, 'customErrorHandler']);
$status = mkdir($dir, 0777, true);
restore_error_handler();
if (false === $status && !is_dir($dir)) {
throw new \UnexpectedValueException(sprintf('There is no existing directory at "%s" and it could not be created: '.$this->errorMessage, $dir));
}
}
$this->dirCreated = true;
}
}
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php
->
createDir
(line 135)
if (!is_resource($this->stream)) {
$url = $this->url;
if (null === $url || '' === $url) {
throw new \LogicException('Missing stream url, the stream can not be opened. This may be caused by a premature call to close().');
}
$this->createDir($url);
$this->errorMessage = null;
set_error_handler([$this, 'customErrorHandler']);
$stream = fopen($url, 'a');
if ($this->filePermission !== null) {
@chmod($url, $this->filePermission);
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php
->
write
(line 125)
if ($this->nextRotation <= $record['datetime']) {
$this->mustRotate = true;
$this->close();
}
parent::write($record);
}
/**
* Rotates the files.
*/
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php
->
write
(line 48)
$record = $this->processRecord($record);
}
$record['formatted'] = $this->getFormatter()->format($record);
$this->write($record);
return false === $this->bubble;
}
/**
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Logger.php
->
handle
(line 327)
}
}
// 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);
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Logger.php
->
addRecord
(line 500)
throw new \InvalidArgumentException('$level is expected to be a string or int');
}
$level = static::toMonologLevel($level);
$this->addRecord($level, (string) $message, $context);
}
/**
* Adds a log record at the DEBUG level.
*
Logger->log(300, 'is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php)', array('exception' => object(ErrorException)))
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Logger/LogManager.php
(line 88)
* @param array $parameters
* @return mixed
*/
public function __call(string $method, $parameters)
{
return $this->driver()->$method(...$parameters);
}
/**
* Create a new, on-demand aggregate logger instance.
*/
LogManager->__call('log', array('warning', 'is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php)', array('exception' => object(ErrorException))))
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Logger/Log.php
(line 17)
public static function __callStatic($method, $args)
{
if (!isset(self::$instance)) {
self::$instance= new LogManager();
}
return self::$instance->$method(...$args);
}
}
Log::__callStatic('log', array('warning', 'is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php)', array('exception' => object(ErrorException))))
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Exceptions/Handler/Handler.php
(line 33)
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;
}
Handler->report(object(ErrorException))
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php
(line 96)
*/
protected function handleException(Throwable $e): void
{
$handler = new Handler();
$handler->report($e);
$handler->render($e);
}
HandleExceptions->handleException(object(ErrorException))
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php
(line 63)
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.
HandleExceptions->handleError(2, 'is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php)', '/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php', 210)
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php
(line 32)
//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);
});
HandleExceptions->Bootstrap\{closure}(2, 'is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php)', '/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php', 210, array('url' => '/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs/daily-2024-04-24.log', 'dir' => '/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs'))
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php
is_dir
(line 210)
if ($this->dirCreated) {
return;
}
$dir = $this->getDirFromStream($url);
if (null !== $dir && !is_dir($dir)) {
$this->errorMessage = null;
set_error_handler([$this, 'customErrorHandler']);
$status = mkdir($dir, 0777, true);
restore_error_handler();
if (false === $status && !is_dir($dir)) {
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php
->
createDir
(line 135)
if (!is_resource($this->stream)) {
$url = $this->url;
if (null === $url || '' === $url) {
throw new \LogicException('Missing stream url, the stream can not be opened. This may be caused by a premature call to close().');
}
$this->createDir($url);
$this->errorMessage = null;
set_error_handler([$this, 'customErrorHandler']);
$stream = fopen($url, 'a');
if ($this->filePermission !== null) {
@chmod($url, $this->filePermission);
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php
->
write
(line 125)
if ($this->nextRotation <= $record['datetime']) {
$this->mustRotate = true;
$this->close();
}
parent::write($record);
}
/**
* Rotates the files.
*/
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php
->
write
(line 48)
$record = $this->processRecord($record);
}
$record['formatted'] = $this->getFormatter()->format($record);
$this->write($record);
return false === $this->bubble;
}
/**
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Logger.php
->
handle
(line 327)
}
}
// 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);
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Logger.php
->
addRecord
(line 500)
throw new \InvalidArgumentException('$level is expected to be a string or int');
}
$level = static::toMonologLevel($level);
$this->addRecord($level, (string) $message, $context);
}
/**
* Adds a log record at the DEBUG level.
*
Logger->log(300, 'Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP)', array('exception' => object(ErrorException)))
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Logger/LogManager.php
(line 88)
* @param array $parameters
* @return mixed
*/
public function __call(string $method, $parameters)
{
return $this->driver()->$method(...$parameters);
}
/**
* Create a new, on-demand aggregate logger instance.
*/
LogManager->__call('log', array('warning', 'Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP)', array('exception' => object(ErrorException))))
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Logger/Log.php
(line 17)
public static function __callStatic($method, $args)
{
if (!isset(self::$instance)) {
self::$instance= new LogManager();
}
return self::$instance->$method(...$args);
}
}
Log::__callStatic('log', array('warning', 'Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP)', array('exception' => object(ErrorException))))
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Exceptions/Handler/Handler.php
(line 33)
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;
}
Handler->report(object(ErrorException))
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php
(line 96)
*/
protected function handleException(Throwable $e): void
{
$handler = new Handler();
$handler->report($e);
$handler->render($e);
}
HandleExceptions->handleException(object(ErrorException))
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php
(line 36)
set_error_handler(function($level, $message, $file = '', $line = 0) {
$this->handleError($level, $message, $file, $line);
});
set_exception_handler(function($e) {
$this->handleException($e);
});
register_shutdown_function(function() {
$this->handleShutdown();
});
HandleExceptions->Bootstrap\{closure}(object(ErrorException))
Stack Trace
UnexpectedValueException
|
---|
UnexpectedValueException: There is no existing directory at "/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs" and it could not be created: open_basedir restriction in effect. File(/var/www/new2022) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php) at /var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:216 at Monolog\Handler\StreamHandler->createDir('/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs/daily-2024-04-24.log') (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:135) at Monolog\Handler\StreamHandler->write(array('message' => 'is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php)', 'context' => array('exception' => object(ErrorException)), 'level' => 300, 'level_name' => 'WARNING', 'channel' => 'prod', 'datetime' => object(DateTimeImmutable), 'extra' => array('file' => null, 'line' => null, 'class' => null, 'function' => 'is_dir', 'url' => '/articles.php', 'ip' => '3.144.48.135', 'http_method' => 'GET', 'server' => 'moe-zdorovie.com.ua', 'referrer' => 'http://moe-zdorovie.com.ua/articles.php', 'memory_peak_usage' => '8 MB', 'git' => array()), 'formatted' => '[2024-04-24 15:23] prod.WARNING: is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php) {"exception":"[object] (ErrorException(code: 0): is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php) at /var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:210)"} {"file":null,"line":null,"class":null,"function":"is_dir","url":"/articles.php","ip":"3.144.48.135","http_method":"GET","server":"moe-zdorovie.com.ua","referrer":"http://moe-zdorovie.com.ua/articles.php","memory_peak_usage":"8 MB","git":[]}')) (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php:125) at Monolog\Handler\RotatingFileHandler->write(array('message' => 'is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php)', 'context' => array('exception' => object(ErrorException)), 'level' => 300, 'level_name' => 'WARNING', 'channel' => 'prod', 'datetime' => object(DateTimeImmutable), 'extra' => array('file' => null, 'line' => null, 'class' => null, 'function' => 'is_dir', 'url' => '/articles.php', 'ip' => '3.144.48.135', 'http_method' => 'GET', 'server' => 'moe-zdorovie.com.ua', 'referrer' => 'http://moe-zdorovie.com.ua/articles.php', 'memory_peak_usage' => '8 MB', 'git' => array()), 'formatted' => '[2024-04-24 15:23] prod.WARNING: is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php) {"exception":"[object] (ErrorException(code: 0): is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php) at /var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:210)"} {"file":null,"line":null,"class":null,"function":"is_dir","url":"/articles.php","ip":"3.144.48.135","http_method":"GET","server":"moe-zdorovie.com.ua","referrer":"http://moe-zdorovie.com.ua/articles.php","memory_peak_usage":"8 MB","git":[]}')) (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:48) at Monolog\Handler\AbstractProcessingHandler->handle(array('message' => 'is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php)', 'context' => array('exception' => object(ErrorException)), 'level' => 300, 'level_name' => 'WARNING', 'channel' => 'prod', 'datetime' => object(DateTimeImmutable), 'extra' => array('file' => null, 'line' => null, 'class' => null, 'function' => 'is_dir', 'url' => '/articles.php', 'ip' => '3.144.48.135', 'http_method' => 'GET', 'server' => 'moe-zdorovie.com.ua', 'referrer' => 'http://moe-zdorovie.com.ua/articles.php', 'memory_peak_usage' => '8 MB', 'git' => array()), 'formatted' => '[2024-04-24 15:23] prod.WARNING: is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php) {"exception":"[object] (ErrorException(code: 0): is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php) at /var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:210)"} {"file":null,"line":null,"class":null,"function":"is_dir","url":"/articles.php","ip":"3.144.48.135","http_method":"GET","server":"moe-zdorovie.com.ua","referrer":"http://moe-zdorovie.com.ua/articles.php","memory_peak_usage":"8 MB","git":[]}')) (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Logger.php:327) at Monolog\Logger->addRecord(300, 'is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php)', array('exception' => object(ErrorException))) (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Logger.php:500) at Monolog\Logger->log(300, 'is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php)', array('exception' => object(ErrorException))) (/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Logger/LogManager.php:88) at App\Logger\LogManager->__call('log', array('warning', 'is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php)', array('exception' => object(ErrorException)))) (/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Logger/Log.php:17) at App\Logger\Log::__callStatic('log', array('warning', 'is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php)', array('exception' => object(ErrorException)))) (/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Exceptions/Handler/Handler.php:33) at App\Exceptions\Handler\Handler->report(object(ErrorException)) (/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php:96) at Bootstrap\HandleExceptions->handleException(object(ErrorException)) (/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php:63) at Bootstrap\HandleExceptions->handleError(2, 'is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php)', '/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php', 210) (/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php:32) at Bootstrap\HandleExceptions->Bootstrap\{closure}(2, 'is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php)', '/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php', 210, array('url' => '/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs/daily-2024-04-24.log', 'dir' => '/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs')) at is_dir('/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs') (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:210) at Monolog\Handler\StreamHandler->createDir('/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs/daily-2024-04-24.log') (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:135) at Monolog\Handler\StreamHandler->write(array('message' => 'Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP)', 'context' => array('exception' => object(ErrorException)), 'level' => 300, 'level_name' => 'WARNING', 'channel' => 'prod', 'datetime' => object(DateTimeImmutable), 'extra' => array('file' => null, 'line' => null, 'class' => null, 'function' => null, 'url' => '/articles.php', 'ip' => '3.144.48.135', 'http_method' => 'GET', 'server' => 'moe-zdorovie.com.ua', 'referrer' => 'http://moe-zdorovie.com.ua/articles.php', 'memory_peak_usage' => '8 MB', 'git' => array()), 'formatted' => '[2024-04-24 15:23] prod.WARNING: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) {"exception":"[object] (ErrorException(code: 0): Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) at /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117)"} {"file":null,"line":null,"class":null,"function":null,"url":"/articles.php","ip":"3.144.48.135","http_method":"GET","server":"moe-zdorovie.com.ua","referrer":"http://moe-zdorovie.com.ua/articles.php","memory_peak_usage":"8 MB","git":[]}')) (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php:125) at Monolog\Handler\RotatingFileHandler->write(array('message' => 'Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP)', 'context' => array('exception' => object(ErrorException)), 'level' => 300, 'level_name' => 'WARNING', 'channel' => 'prod', 'datetime' => object(DateTimeImmutable), 'extra' => array('file' => null, 'line' => null, 'class' => null, 'function' => null, 'url' => '/articles.php', 'ip' => '3.144.48.135', 'http_method' => 'GET', 'server' => 'moe-zdorovie.com.ua', 'referrer' => 'http://moe-zdorovie.com.ua/articles.php', 'memory_peak_usage' => '8 MB', 'git' => array()), 'formatted' => '[2024-04-24 15:23] prod.WARNING: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) {"exception":"[object] (ErrorException(code: 0): Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) at /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117)"} {"file":null,"line":null,"class":null,"function":null,"url":"/articles.php","ip":"3.144.48.135","http_method":"GET","server":"moe-zdorovie.com.ua","referrer":"http://moe-zdorovie.com.ua/articles.php","memory_peak_usage":"8 MB","git":[]}')) (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:48) at Monolog\Handler\AbstractProcessingHandler->handle(array('message' => 'Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP)', 'context' => array('exception' => object(ErrorException)), 'level' => 300, 'level_name' => 'WARNING', 'channel' => 'prod', 'datetime' => object(DateTimeImmutable), 'extra' => array('file' => null, 'line' => null, 'class' => null, 'function' => null, 'url' => '/articles.php', 'ip' => '3.144.48.135', 'http_method' => 'GET', 'server' => 'moe-zdorovie.com.ua', 'referrer' => 'http://moe-zdorovie.com.ua/articles.php', 'memory_peak_usage' => '8 MB', 'git' => array()), 'formatted' => '[2024-04-24 15:23] prod.WARNING: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) {"exception":"[object] (ErrorException(code: 0): Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) at /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117)"} {"file":null,"line":null,"class":null,"function":null,"url":"/articles.php","ip":"3.144.48.135","http_method":"GET","server":"moe-zdorovie.com.ua","referrer":"http://moe-zdorovie.com.ua/articles.php","memory_peak_usage":"8 MB","git":[]}')) (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Logger.php:327) at Monolog\Logger->addRecord(300, 'Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP)', array('exception' => object(ErrorException))) (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Logger.php:500) at Monolog\Logger->log(300, 'Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP)', array('exception' => object(ErrorException))) (/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Logger/LogManager.php:88) at App\Logger\LogManager->__call('log', array('warning', 'Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP)', array('exception' => object(ErrorException)))) (/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Logger/Log.php:17) at App\Logger\Log::__callStatic('log', array('warning', 'Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP)', array('exception' => object(ErrorException)))) (/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Exceptions/Handler/Handler.php:33) at App\Exceptions\Handler\Handler->report(object(ErrorException)) (/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php:96) at Bootstrap\HandleExceptions->handleException(object(ErrorException)) (/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php:36) at Bootstrap\HandleExceptions->Bootstrap\{closure}(object(ErrorException)) |
Exception
ErrorException
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php
(line 210)
if ($this->dirCreated) {
return;
}
$dir = $this->getDirFromStream($url);
if (null !== $dir && !is_dir($dir)) {
$this->errorMessage = null;
set_error_handler([$this, 'customErrorHandler']);
$status = mkdir($dir, 0777, true);
restore_error_handler();
if (false === $status && !is_dir($dir)) {
HandleExceptions->handleError(2, 'is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php)', '/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php', 210)
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php
(line 32)
//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);
});
HandleExceptions->Bootstrap\{closure}(2, 'is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php)', '/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php', 210, array('url' => '/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs/daily-2024-04-24.log', 'dir' => '/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs'))
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php
is_dir
(line 210)
if ($this->dirCreated) {
return;
}
$dir = $this->getDirFromStream($url);
if (null !== $dir && !is_dir($dir)) {
$this->errorMessage = null;
set_error_handler([$this, 'customErrorHandler']);
$status = mkdir($dir, 0777, true);
restore_error_handler();
if (false === $status && !is_dir($dir)) {
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php
->
createDir
(line 135)
if (!is_resource($this->stream)) {
$url = $this->url;
if (null === $url || '' === $url) {
throw new \LogicException('Missing stream url, the stream can not be opened. This may be caused by a premature call to close().');
}
$this->createDir($url);
$this->errorMessage = null;
set_error_handler([$this, 'customErrorHandler']);
$stream = fopen($url, 'a');
if ($this->filePermission !== null) {
@chmod($url, $this->filePermission);
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php
->
write
(line 125)
if ($this->nextRotation <= $record['datetime']) {
$this->mustRotate = true;
$this->close();
}
parent::write($record);
}
/**
* Rotates the files.
*/
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php
->
write
(line 48)
$record = $this->processRecord($record);
}
$record['formatted'] = $this->getFormatter()->format($record);
$this->write($record);
return false === $this->bubble;
}
/**
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Logger.php
->
handle
(line 327)
}
}
// 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);
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Logger.php
->
addRecord
(line 500)
throw new \InvalidArgumentException('$level is expected to be a string or int');
}
$level = static::toMonologLevel($level);
$this->addRecord($level, (string) $message, $context);
}
/**
* Adds a log record at the DEBUG level.
*
Logger->log(300, 'Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP)', array('exception' => object(ErrorException)))
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Logger/LogManager.php
(line 88)
* @param array $parameters
* @return mixed
*/
public function __call(string $method, $parameters)
{
return $this->driver()->$method(...$parameters);
}
/**
* Create a new, on-demand aggregate logger instance.
*/
LogManager->__call('log', array('warning', 'Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP)', array('exception' => object(ErrorException))))
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Logger/Log.php
(line 17)
public static function __callStatic($method, $args)
{
if (!isset(self::$instance)) {
self::$instance= new LogManager();
}
return self::$instance->$method(...$args);
}
}
Log::__callStatic('log', array('warning', 'Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP)', array('exception' => object(ErrorException))))
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Exceptions/Handler/Handler.php
(line 33)
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;
}
Handler->report(object(ErrorException))
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php
(line 96)
*/
protected function handleException(Throwable $e): void
{
$handler = new Handler();
$handler->report($e);
$handler->render($e);
}
HandleExceptions->handleException(object(ErrorException))
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php
(line 36)
set_error_handler(function($level, $message, $file = '', $line = 0) {
$this->handleError($level, $message, $file, $line);
});
set_exception_handler(function($e) {
$this->handleException($e);
});
register_shutdown_function(function() {
$this->handleShutdown();
});
HandleExceptions->Bootstrap\{closure}(object(ErrorException))
Stack Trace
ErrorException
|
---|
ErrorException: is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php) at /var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:210 at Bootstrap\HandleExceptions->handleError(2, 'is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php)', '/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php', 210) (/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php:32) at Bootstrap\HandleExceptions->Bootstrap\{closure}(2, 'is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php)', '/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php', 210, array('url' => '/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs/daily-2024-04-24.log', 'dir' => '/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs')) at is_dir('/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs') (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:210) at Monolog\Handler\StreamHandler->createDir('/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs/daily-2024-04-24.log') (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:135) at Monolog\Handler\StreamHandler->write(array('message' => 'Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP)', 'context' => array('exception' => object(ErrorException)), 'level' => 300, 'level_name' => 'WARNING', 'channel' => 'prod', 'datetime' => object(DateTimeImmutable), 'extra' => array('file' => null, 'line' => null, 'class' => null, 'function' => null, 'url' => '/articles.php', 'ip' => '3.144.48.135', 'http_method' => 'GET', 'server' => 'moe-zdorovie.com.ua', 'referrer' => 'http://moe-zdorovie.com.ua/articles.php', 'memory_peak_usage' => '8 MB', 'git' => array()), 'formatted' => '[2024-04-24 15:23] prod.WARNING: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) {"exception":"[object] (ErrorException(code: 0): Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) at /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117)"} {"file":null,"line":null,"class":null,"function":null,"url":"/articles.php","ip":"3.144.48.135","http_method":"GET","server":"moe-zdorovie.com.ua","referrer":"http://moe-zdorovie.com.ua/articles.php","memory_peak_usage":"8 MB","git":[]}')) (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php:125) at Monolog\Handler\RotatingFileHandler->write(array('message' => 'Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP)', 'context' => array('exception' => object(ErrorException)), 'level' => 300, 'level_name' => 'WARNING', 'channel' => 'prod', 'datetime' => object(DateTimeImmutable), 'extra' => array('file' => null, 'line' => null, 'class' => null, 'function' => null, 'url' => '/articles.php', 'ip' => '3.144.48.135', 'http_method' => 'GET', 'server' => 'moe-zdorovie.com.ua', 'referrer' => 'http://moe-zdorovie.com.ua/articles.php', 'memory_peak_usage' => '8 MB', 'git' => array()), 'formatted' => '[2024-04-24 15:23] prod.WARNING: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) {"exception":"[object] (ErrorException(code: 0): Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) at /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117)"} {"file":null,"line":null,"class":null,"function":null,"url":"/articles.php","ip":"3.144.48.135","http_method":"GET","server":"moe-zdorovie.com.ua","referrer":"http://moe-zdorovie.com.ua/articles.php","memory_peak_usage":"8 MB","git":[]}')) (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:48) at Monolog\Handler\AbstractProcessingHandler->handle(array('message' => 'Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP)', 'context' => array('exception' => object(ErrorException)), 'level' => 300, 'level_name' => 'WARNING', 'channel' => 'prod', 'datetime' => object(DateTimeImmutable), 'extra' => array('file' => null, 'line' => null, 'class' => null, 'function' => null, 'url' => '/articles.php', 'ip' => '3.144.48.135', 'http_method' => 'GET', 'server' => 'moe-zdorovie.com.ua', 'referrer' => 'http://moe-zdorovie.com.ua/articles.php', 'memory_peak_usage' => '8 MB', 'git' => array()), 'formatted' => '[2024-04-24 15:23] prod.WARNING: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) {"exception":"[object] (ErrorException(code: 0): Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) at /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117)"} {"file":null,"line":null,"class":null,"function":null,"url":"/articles.php","ip":"3.144.48.135","http_method":"GET","server":"moe-zdorovie.com.ua","referrer":"http://moe-zdorovie.com.ua/articles.php","memory_peak_usage":"8 MB","git":[]}')) (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Logger.php:327) at Monolog\Logger->addRecord(300, 'Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP)', array('exception' => object(ErrorException))) (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Logger.php:500) at Monolog\Logger->log(300, 'Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP)', array('exception' => object(ErrorException))) (/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Logger/LogManager.php:88) at App\Logger\LogManager->__call('log', array('warning', 'Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP)', array('exception' => object(ErrorException)))) (/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Logger/Log.php:17) at App\Logger\Log::__callStatic('log', array('warning', 'Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP)', array('exception' => object(ErrorException)))) (/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Exceptions/Handler/Handler.php:33) at App\Exceptions\Handler\Handler->report(object(ErrorException)) (/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php:96) at Bootstrap\HandleExceptions->handleException(object(ErrorException)) (/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php:36) at Bootstrap\HandleExceptions->Bootstrap\{closure}(object(ErrorException)) |
Exception
ErrorException
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php
(line 210)
if ($this->dirCreated) {
return;
}
$dir = $this->getDirFromStream($url);
if (null !== $dir && !is_dir($dir)) {
$this->errorMessage = null;
set_error_handler([$this, 'customErrorHandler']);
$status = mkdir($dir, 0777, true);
restore_error_handler();
if (false === $status && !is_dir($dir)) {
HandleExceptions->handleError(2, 'is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php)', '/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php', 210)
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php
(line 32)
//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);
});
HandleExceptions->Bootstrap\{closure}(2, 'is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php)', '/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php', 210, array('url' => '/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs/daily-2024-04-24.log', 'dir' => '/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs'))
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php
is_dir
(line 210)
if ($this->dirCreated) {
return;
}
$dir = $this->getDirFromStream($url);
if (null !== $dir && !is_dir($dir)) {
$this->errorMessage = null;
set_error_handler([$this, 'customErrorHandler']);
$status = mkdir($dir, 0777, true);
restore_error_handler();
if (false === $status && !is_dir($dir)) {
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php
->
createDir
(line 135)
if (!is_resource($this->stream)) {
$url = $this->url;
if (null === $url || '' === $url) {
throw new \LogicException('Missing stream url, the stream can not be opened. This may be caused by a premature call to close().');
}
$this->createDir($url);
$this->errorMessage = null;
set_error_handler([$this, 'customErrorHandler']);
$stream = fopen($url, 'a');
if ($this->filePermission !== null) {
@chmod($url, $this->filePermission);
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php
->
write
(line 125)
if ($this->nextRotation <= $record['datetime']) {
$this->mustRotate = true;
$this->close();
}
parent::write($record);
}
/**
* Rotates the files.
*/
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php
->
write
(line 48)
$record = $this->processRecord($record);
}
$record['formatted'] = $this->getFormatter()->format($record);
$this->write($record);
return false === $this->bubble;
}
/**
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Logger.php
->
handle
(line 327)
}
}
// 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);
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Logger.php
->
addRecord
(line 500)
throw new \InvalidArgumentException('$level is expected to be a string or int');
}
$level = static::toMonologLevel($level);
$this->addRecord($level, (string) $message, $context);
}
/**
* Adds a log record at the DEBUG level.
*
Logger->log(300, 'Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP)', array('exception' => object(ErrorException)))
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Logger/LogManager.php
(line 88)
* @param array $parameters
* @return mixed
*/
public function __call(string $method, $parameters)
{
return $this->driver()->$method(...$parameters);
}
/**
* Create a new, on-demand aggregate logger instance.
*/
LogManager->__call('log', array('warning', 'Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP)', array('exception' => object(ErrorException))))
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Logger/Log.php
(line 17)
public static function __callStatic($method, $args)
{
if (!isset(self::$instance)) {
self::$instance= new LogManager();
}
return self::$instance->$method(...$args);
}
}
Log::__callStatic('log', array('warning', 'Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP)', array('exception' => object(ErrorException))))
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Exceptions/Handler/Handler.php
(line 33)
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;
}
Handler->report(object(ErrorException))
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php
(line 96)
*/
protected function handleException(Throwable $e): void
{
$handler = new Handler();
$handler->report($e);
$handler->render($e);
}
HandleExceptions->handleException(object(ErrorException))
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php
(line 36)
set_error_handler(function($level, $message, $file = '', $line = 0) {
$this->handleError($level, $message, $file, $line);
});
set_exception_handler(function($e) {
$this->handleException($e);
});
register_shutdown_function(function() {
$this->handleShutdown();
});
HandleExceptions->Bootstrap\{closure}(object(ErrorException))
Stack Trace
ErrorException
|
---|
ErrorException: is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php) at /var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:210 at Bootstrap\HandleExceptions->handleError(2, 'is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php)', '/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php', 210) (/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php:32) at Bootstrap\HandleExceptions->Bootstrap\{closure}(2, 'is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php)', '/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php', 210, array('url' => '/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs/daily-2024-04-24.log', 'dir' => '/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs')) at is_dir('/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs') (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:210) at Monolog\Handler\StreamHandler->createDir('/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs/daily-2024-04-24.log') (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:135) at Monolog\Handler\StreamHandler->write(array('message' => 'Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP)', 'context' => array('exception' => object(ErrorException)), 'level' => 300, 'level_name' => 'WARNING', 'channel' => 'prod', 'datetime' => object(DateTimeImmutable), 'extra' => array('file' => null, 'line' => null, 'class' => null, 'function' => null, 'url' => '/articles.php', 'ip' => '3.144.48.135', 'http_method' => 'GET', 'server' => 'moe-zdorovie.com.ua', 'referrer' => 'http://moe-zdorovie.com.ua/articles.php', 'memory_peak_usage' => '8 MB', 'git' => array()), 'formatted' => '[2024-04-24 15:23] prod.WARNING: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) {"exception":"[object] (ErrorException(code: 0): Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) at /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117)"} {"file":null,"line":null,"class":null,"function":null,"url":"/articles.php","ip":"3.144.48.135","http_method":"GET","server":"moe-zdorovie.com.ua","referrer":"http://moe-zdorovie.com.ua/articles.php","memory_peak_usage":"8 MB","git":[]}')) (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php:125) at Monolog\Handler\RotatingFileHandler->write(array('message' => 'Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP)', 'context' => array('exception' => object(ErrorException)), 'level' => 300, 'level_name' => 'WARNING', 'channel' => 'prod', 'datetime' => object(DateTimeImmutable), 'extra' => array('file' => null, 'line' => null, 'class' => null, 'function' => null, 'url' => '/articles.php', 'ip' => '3.144.48.135', 'http_method' => 'GET', 'server' => 'moe-zdorovie.com.ua', 'referrer' => 'http://moe-zdorovie.com.ua/articles.php', 'memory_peak_usage' => '8 MB', 'git' => array()), 'formatted' => '[2024-04-24 15:23] prod.WARNING: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) {"exception":"[object] (ErrorException(code: 0): Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) at /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117)"} {"file":null,"line":null,"class":null,"function":null,"url":"/articles.php","ip":"3.144.48.135","http_method":"GET","server":"moe-zdorovie.com.ua","referrer":"http://moe-zdorovie.com.ua/articles.php","memory_peak_usage":"8 MB","git":[]}')) (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:48) at Monolog\Handler\AbstractProcessingHandler->handle(array('message' => 'Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP)', 'context' => array('exception' => object(ErrorException)), 'level' => 300, 'level_name' => 'WARNING', 'channel' => 'prod', 'datetime' => object(DateTimeImmutable), 'extra' => array('file' => null, 'line' => null, 'class' => null, 'function' => null, 'url' => '/articles.php', 'ip' => '3.144.48.135', 'http_method' => 'GET', 'server' => 'moe-zdorovie.com.ua', 'referrer' => 'http://moe-zdorovie.com.ua/articles.php', 'memory_peak_usage' => '8 MB', 'git' => array()), 'formatted' => '[2024-04-24 15:23] prod.WARNING: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) {"exception":"[object] (ErrorException(code: 0): Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) at /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117)"} {"file":null,"line":null,"class":null,"function":null,"url":"/articles.php","ip":"3.144.48.135","http_method":"GET","server":"moe-zdorovie.com.ua","referrer":"http://moe-zdorovie.com.ua/articles.php","memory_peak_usage":"8 MB","git":[]}')) (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Logger.php:327) at Monolog\Logger->addRecord(300, 'Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP)', array('exception' => object(ErrorException))) (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Logger.php:500) at Monolog\Logger->log(300, 'Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP)', array('exception' => object(ErrorException))) (/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Logger/LogManager.php:88) at App\Logger\LogManager->__call('log', array('warning', 'Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP)', array('exception' => object(ErrorException)))) (/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Logger/Log.php:17) at App\Logger\Log::__callStatic('log', array('warning', 'Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP)', array('exception' => object(ErrorException)))) (/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Exceptions/Handler/Handler.php:33) at App\Exceptions\Handler\Handler->report(object(ErrorException)) (/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php:96) at Bootstrap\HandleExceptions->handleException(object(ErrorException)) (/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php:36) at Bootstrap\HandleExceptions->Bootstrap\{closure}(object(ErrorException)) |
Exception
ErrorException
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php
(line 117)
<?php
$articles_all_array = array();
$articles_all_query_raw = "select a.articles_id, a.articles_date_added, a.articles_date_available, ad.articles_name, ad.articles_head_desc_tag, ad.articles_viewed, td.topics_id, td.topics_name from " . TABLE_ARTICLES . " a, " . TABLE_ARTICLES_TO_TOPICS . " a2t left join " . TABLE_TOPICS_DESCRIPTION . " td on a2t.topics_id = td.topics_id, " . TABLE_ARTICLES_DESCRIPTION . " ad where (a.articles_date_available IS NULL or a.articles_date_available = '0000-00-00 00:00:00' or to_days(a.articles_date_available) <= to_days(now())) and a.articles_id = a2t.articles_id and a.articles_status = '1' and a.articles_id = ad.articles_id and ad.language_id = '" . (int)$languages_id . "' and td.language_id = '" . (int)$languages_id . "' ORDER BY IF (`a`.`articles_date_available`,`a`.`articles_date_available`, `a`.`articles_date_added`) DESC";
$articles_all_split = new splitPageResults($articles_all_query_raw, 10);
if (($articles_all_split->number_of_rows > 0) && ((ARTICLE_PREV_NEXT_BAR_LOCATION == 'top') || (ARTICLE_PREV_NEXT_BAR_LOCATION == 'both'))) {
?>
<tr>
<td>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
HandleExceptions->handleError(2, 'Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP)', '/var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php', 117)
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php
(line 32)
//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);
});
HandleExceptions->Bootstrap\{closure}(2, 'Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP)', '/var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php', 117, array('r', 'S'))
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php
(line 117)
<?php
$articles_all_array = array();
$articles_all_query_raw = "select a.articles_id, a.articles_date_added, a.articles_date_available, ad.articles_name, ad.articles_head_desc_tag, ad.articles_viewed, td.topics_id, td.topics_name from " . TABLE_ARTICLES . " a, " . TABLE_ARTICLES_TO_TOPICS . " a2t left join " . TABLE_TOPICS_DESCRIPTION . " td on a2t.topics_id = td.topics_id, " . TABLE_ARTICLES_DESCRIPTION . " ad where (a.articles_date_available IS NULL or a.articles_date_available = '0000-00-00 00:00:00' or to_days(a.articles_date_available) <= to_days(now())) and a.articles_id = a2t.articles_id and a.articles_status = '1' and a.articles_id = ad.articles_id and ad.language_id = '" . (int)$languages_id . "' and td.language_id = '" . (int)$languages_id . "' ORDER BY IF (`a`.`articles_date_available`,`a`.`articles_date_available`, `a`.`articles_date_added`) DESC";
$articles_all_split = new splitPageResults($articles_all_query_raw, 10);
if (($articles_all_split->number_of_rows > 0) && ((ARTICLE_PREV_NEXT_BAR_LOCATION == 'top') || (ARTICLE_PREV_NEXT_BAR_LOCATION == 'both'))) {
?>
<tr>
<td>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
require('/var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php')
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php
(line 171)
<div class="<?php echo $center_classes?> right_content">
<!-- CONTENT -->
<?php
if (file_exists(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/content/' . $content . '.tpl.php')) {
require(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/content/' . $content . '.tpl.php');
}else {
require(DIR_WS_CONTENT . $content . '.tpl.php');
}
?>
<!-- END CONTENT -->
require('/var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php')
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php
(line 24)
//
// $breadcrumb->add(HEADING_TITLE, tep_href_link(FILENAME_ARTICLES, '', 'NONSSL'));
$content = CONTENT_ARTICLES;
require(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/' . TEMPLATENAME_MAIN_PAGE);
require(DIR_WS_INCLUDES . 'application_bottom.php');
Stack Trace
ErrorException
|
---|
ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed 'ARTICLE_PREV_NEXT_BAR_LOCATION' (this will throw an Error in a future version of PHP) at /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117 at Bootstrap\HandleExceptions->handleError(2, 'Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP)', '/var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php', 117) (/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php:32) at Bootstrap\HandleExceptions->Bootstrap\{closure}(2, 'Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP)', '/var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php', 117, array('r', 'S')) (/var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117) at require('/var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php') (/var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php:171) at require('/var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php') (/var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php:24) |
Exception
UnexpectedValueException
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php
(line 216)
$this->errorMessage = null;
set_error_handler([$this, 'customErrorHandler']);
$status = mkdir($dir, 0777, true);
restore_error_handler();
if (false === $status && !is_dir($dir)) {
throw new \UnexpectedValueException(sprintf('There is no existing directory at "%s" and it could not be created: '.$this->errorMessage, $dir));
}
}
$this->dirCreated = true;
}
}
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php
->
createDir
(line 135)
if (!is_resource($this->stream)) {
$url = $this->url;
if (null === $url || '' === $url) {
throw new \LogicException('Missing stream url, the stream can not be opened. This may be caused by a premature call to close().');
}
$this->createDir($url);
$this->errorMessage = null;
set_error_handler([$this, 'customErrorHandler']);
$stream = fopen($url, 'a');
if ($this->filePermission !== null) {
@chmod($url, $this->filePermission);
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php
->
write
(line 125)
if ($this->nextRotation <= $record['datetime']) {
$this->mustRotate = true;
$this->close();
}
parent::write($record);
}
/**
* Rotates the files.
*/
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php
->
write
(line 48)
$record = $this->processRecord($record);
}
$record['formatted'] = $this->getFormatter()->format($record);
$this->write($record);
return false === $this->bubble;
}
/**
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Logger.php
->
handle
(line 327)
}
}
// 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);
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Logger.php
->
addRecord
(line 500)
throw new \InvalidArgumentException('$level is expected to be a string or int');
}
$level = static::toMonologLevel($level);
$this->addRecord($level, (string) $message, $context);
}
/**
* Adds a log record at the DEBUG level.
*
Logger->log(300, 'is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php)', array('exception' => object(ErrorException)))
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Logger/LogManager.php
(line 88)
* @param array $parameters
* @return mixed
*/
public function __call(string $method, $parameters)
{
return $this->driver()->$method(...$parameters);
}
/**
* Create a new, on-demand aggregate logger instance.
*/
LogManager->__call('log', array('warning', 'is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php)', array('exception' => object(ErrorException))))
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Logger/Log.php
(line 17)
public static function __callStatic($method, $args)
{
if (!isset(self::$instance)) {
self::$instance= new LogManager();
}
return self::$instance->$method(...$args);
}
}
Log::__callStatic('log', array('warning', 'is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php)', array('exception' => object(ErrorException))))
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Exceptions/Handler/Handler.php
(line 33)
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;
}
Handler->report(object(ErrorException))
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php
(line 96)
*/
protected function handleException(Throwable $e): void
{
$handler = new Handler();
$handler->report($e);
$handler->render($e);
}
HandleExceptions->handleException(object(ErrorException))
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php
(line 63)
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.
HandleExceptions->handleError(2, 'is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php)', '/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php', 210)
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php
(line 32)
//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);
});
HandleExceptions->Bootstrap\{closure}(2, 'is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php)', '/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php', 210, array('url' => '/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs/daily-2024-04-24.log', 'dir' => '/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs'))
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php
is_dir
(line 210)
if ($this->dirCreated) {
return;
}
$dir = $this->getDirFromStream($url);
if (null !== $dir && !is_dir($dir)) {
$this->errorMessage = null;
set_error_handler([$this, 'customErrorHandler']);
$status = mkdir($dir, 0777, true);
restore_error_handler();
if (false === $status && !is_dir($dir)) {
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php
->
createDir
(line 135)
if (!is_resource($this->stream)) {
$url = $this->url;
if (null === $url || '' === $url) {
throw new \LogicException('Missing stream url, the stream can not be opened. This may be caused by a premature call to close().');
}
$this->createDir($url);
$this->errorMessage = null;
set_error_handler([$this, 'customErrorHandler']);
$stream = fopen($url, 'a');
if ($this->filePermission !== null) {
@chmod($url, $this->filePermission);
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php
->
write
(line 125)
if ($this->nextRotation <= $record['datetime']) {
$this->mustRotate = true;
$this->close();
}
parent::write($record);
}
/**
* Rotates the files.
*/
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php
->
write
(line 48)
$record = $this->processRecord($record);
}
$record['formatted'] = $this->getFormatter()->format($record);
$this->write($record);
return false === $this->bubble;
}
/**
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Logger.php
->
handle
(line 327)
}
}
// 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);
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Logger.php
->
addRecord
(line 500)
throw new \InvalidArgumentException('$level is expected to be a string or int');
}
$level = static::toMonologLevel($level);
$this->addRecord($level, (string) $message, $context);
}
/**
* Adds a log record at the DEBUG level.
*
Logger->log(300, 'Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117Stack trace:#0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\\HandleExceptions->handleError(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117)#1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\\HandleExceptions->Bootstrap\\{closure}(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117, Array)#2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require(\'/var/www/moezdo...\')#3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require(\'/var/www/moezdo...\')#4 {main} thrown', array('exception' => object(Error)))
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Logger/LogManager.php
(line 88)
* @param array $parameters
* @return mixed
*/
public function __call(string $method, $parameters)
{
return $this->driver()->$method(...$parameters);
}
/**
* Create a new, on-demand aggregate logger instance.
*/
LogManager->__call('log', array('warning', 'Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117Stack trace:#0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\\HandleExceptions->handleError(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117)#1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\\HandleExceptions->Bootstrap\\{closure}(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117, Array)#2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require(\'/var/www/moezdo...\')#3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require(\'/var/www/moezdo...\')#4 {main} thrown', array('exception' => object(Error))))
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Logger/Log.php
(line 17)
public static function __callStatic($method, $args)
{
if (!isset(self::$instance)) {
self::$instance= new LogManager();
}
return self::$instance->$method(...$args);
}
}
Log::__callStatic('log', array('warning', 'Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117Stack trace:#0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\\HandleExceptions->handleError(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117)#1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\\HandleExceptions->Bootstrap\\{closure}(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117, Array)#2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require(\'/var/www/moezdo...\')#3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require(\'/var/www/moezdo...\')#4 {main} thrown', array('exception' => object(Error))))
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Exceptions/Handler/Handler.php
(line 33)
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;
}
Handler->report(object(Error))
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php
(line 96)
*/
protected function handleException(Throwable $e): void
{
$handler = new Handler();
$handler->report($e);
$handler->render($e);
}
HandleExceptions->handleException(object(Error))
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php
(line 108)
* Handle the PHP shutdown event.
*/
protected function handleShutdown(): void
{
if (!is_null($error = error_get_last()) && $this->isFatal($error['type'])) {
$this->handleException($this->fatalErrorFromPhpError($error, 0));
}
}
/**
* Determine if the error type is fatal.
HandleExceptions->handleShutdown()
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php
(line 40)
set_exception_handler(function($e) {
$this->handleException($e);
});
register_shutdown_function(function() {
$this->handleShutdown();
});
}
/**
* Report PHP deprecations, or convert PHP errors to ErrorException instances.
HandleExceptions->Bootstrap\{closure}()
Stack Trace
UnexpectedValueException
|
---|
UnexpectedValueException: There is no existing directory at "/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs" and it could not be created: open_basedir restriction in effect. File(/var/www/new2022) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php) at /var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:216 at Monolog\Handler\StreamHandler->createDir('/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs/daily-2024-04-24.log') (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:135) at Monolog\Handler\StreamHandler->write(array('message' => 'is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php)', 'context' => array('exception' => object(ErrorException)), 'level' => 300, 'level_name' => 'WARNING', 'channel' => 'prod', 'datetime' => object(DateTimeImmutable), 'extra' => array('file' => null, 'line' => null, 'class' => null, 'function' => 'is_dir', 'url' => '/articles.php', 'ip' => '3.144.48.135', 'http_method' => 'GET', 'server' => 'moe-zdorovie.com.ua', 'referrer' => 'http://moe-zdorovie.com.ua/articles.php', 'memory_peak_usage' => '8 MB', 'git' => array()), 'formatted' => '[2024-04-24 15:23] prod.WARNING: is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php) {"exception":"[object] (ErrorException(code: 0): is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php) at /var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:210)"} {"file":null,"line":null,"class":null,"function":"is_dir","url":"/articles.php","ip":"3.144.48.135","http_method":"GET","server":"moe-zdorovie.com.ua","referrer":"http://moe-zdorovie.com.ua/articles.php","memory_peak_usage":"8 MB","git":[]}')) (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php:125) at Monolog\Handler\RotatingFileHandler->write(array('message' => 'is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php)', 'context' => array('exception' => object(ErrorException)), 'level' => 300, 'level_name' => 'WARNING', 'channel' => 'prod', 'datetime' => object(DateTimeImmutable), 'extra' => array('file' => null, 'line' => null, 'class' => null, 'function' => 'is_dir', 'url' => '/articles.php', 'ip' => '3.144.48.135', 'http_method' => 'GET', 'server' => 'moe-zdorovie.com.ua', 'referrer' => 'http://moe-zdorovie.com.ua/articles.php', 'memory_peak_usage' => '8 MB', 'git' => array()), 'formatted' => '[2024-04-24 15:23] prod.WARNING: is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php) {"exception":"[object] (ErrorException(code: 0): is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php) at /var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:210)"} {"file":null,"line":null,"class":null,"function":"is_dir","url":"/articles.php","ip":"3.144.48.135","http_method":"GET","server":"moe-zdorovie.com.ua","referrer":"http://moe-zdorovie.com.ua/articles.php","memory_peak_usage":"8 MB","git":[]}')) (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:48) at Monolog\Handler\AbstractProcessingHandler->handle(array('message' => 'is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php)', 'context' => array('exception' => object(ErrorException)), 'level' => 300, 'level_name' => 'WARNING', 'channel' => 'prod', 'datetime' => object(DateTimeImmutable), 'extra' => array('file' => null, 'line' => null, 'class' => null, 'function' => 'is_dir', 'url' => '/articles.php', 'ip' => '3.144.48.135', 'http_method' => 'GET', 'server' => 'moe-zdorovie.com.ua', 'referrer' => 'http://moe-zdorovie.com.ua/articles.php', 'memory_peak_usage' => '8 MB', 'git' => array()), 'formatted' => '[2024-04-24 15:23] prod.WARNING: is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php) {"exception":"[object] (ErrorException(code: 0): is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php) at /var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:210)"} {"file":null,"line":null,"class":null,"function":"is_dir","url":"/articles.php","ip":"3.144.48.135","http_method":"GET","server":"moe-zdorovie.com.ua","referrer":"http://moe-zdorovie.com.ua/articles.php","memory_peak_usage":"8 MB","git":[]}')) (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Logger.php:327) at Monolog\Logger->addRecord(300, 'is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php)', array('exception' => object(ErrorException))) (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Logger.php:500) at Monolog\Logger->log(300, 'is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php)', array('exception' => object(ErrorException))) (/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Logger/LogManager.php:88) at App\Logger\LogManager->__call('log', array('warning', 'is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php)', array('exception' => object(ErrorException)))) (/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Logger/Log.php:17) at App\Logger\Log::__callStatic('log', array('warning', 'is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php)', array('exception' => object(ErrorException)))) (/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Exceptions/Handler/Handler.php:33) at App\Exceptions\Handler\Handler->report(object(ErrorException)) (/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php:96) at Bootstrap\HandleExceptions->handleException(object(ErrorException)) (/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php:63) at Bootstrap\HandleExceptions->handleError(2, 'is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php)', '/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php', 210) (/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php:32) at Bootstrap\HandleExceptions->Bootstrap\{closure}(2, 'is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php)', '/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php', 210, array('url' => '/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs/daily-2024-04-24.log', 'dir' => '/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs')) at is_dir('/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs') (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:210) at Monolog\Handler\StreamHandler->createDir('/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs/daily-2024-04-24.log') (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:135) at Monolog\Handler\StreamHandler->write(array('message' => 'Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117Stack trace:#0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\\HandleExceptions->handleError(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117)#1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\\HandleExceptions->Bootstrap\\{closure}(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117, Array)#2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require(\'/var/www/moezdo...\')#3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require(\'/var/www/moezdo...\')#4 {main} thrown', 'context' => array('exception' => object(Error)), 'level' => 300, 'level_name' => 'WARNING', 'channel' => 'prod', 'datetime' => object(DateTimeImmutable), 'extra' => array('file' => null, 'line' => null, 'class' => null, 'function' => null, 'url' => '/articles.php', 'ip' => '3.144.48.135', 'http_method' => 'GET', 'server' => 'moe-zdorovie.com.ua', 'referrer' => 'http://moe-zdorovie.com.ua/articles.php', 'memory_peak_usage' => '8 MB', 'git' => array()), 'formatted' => '[2024-04-24 15:23] prod.WARNING: Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117Stack trace:#0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\\HandleExceptions->handleError(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117)#1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\\HandleExceptions->Bootstrap\\{closure}(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117, Array)#2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require(\'/var/www/moezdo...\')#3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require(\'/var/www/moezdo...\')#4 {main} thrown {"exception":"[object] (Error(code: 0): Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117Stack trace:#0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\\\\HandleExceptions->handleError(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117)#1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\\\\HandleExceptions->Bootstrap\\\\{closure}(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117, Array)#2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require(\'/var/www/moezdo...\')#3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require(\'/var/www/moezdo...\')#4 {main} thrown at /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php:129)"} {"file":null,"line":null,"class":null,"function":null,"url":"/articles.php","ip":"3.144.48.135","http_method":"GET","server":"moe-zdorovie.com.ua","referrer":"http://moe-zdorovie.com.ua/articles.php","memory_peak_usage":"8 MB","git":[]}')) (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php:125) at Monolog\Handler\RotatingFileHandler->write(array('message' => 'Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117Stack trace:#0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\\HandleExceptions->handleError(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117)#1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\\HandleExceptions->Bootstrap\\{closure}(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117, Array)#2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require(\'/var/www/moezdo...\')#3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require(\'/var/www/moezdo...\')#4 {main} thrown', 'context' => array('exception' => object(Error)), 'level' => 300, 'level_name' => 'WARNING', 'channel' => 'prod', 'datetime' => object(DateTimeImmutable), 'extra' => array('file' => null, 'line' => null, 'class' => null, 'function' => null, 'url' => '/articles.php', 'ip' => '3.144.48.135', 'http_method' => 'GET', 'server' => 'moe-zdorovie.com.ua', 'referrer' => 'http://moe-zdorovie.com.ua/articles.php', 'memory_peak_usage' => '8 MB', 'git' => array()), 'formatted' => '[2024-04-24 15:23] prod.WARNING: Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117Stack trace:#0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\\HandleExceptions->handleError(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117)#1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\\HandleExceptions->Bootstrap\\{closure}(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117, Array)#2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require(\'/var/www/moezdo...\')#3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require(\'/var/www/moezdo...\')#4 {main} thrown {"exception":"[object] (Error(code: 0): Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117Stack trace:#0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\\\\HandleExceptions->handleError(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117)#1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\\\\HandleExceptions->Bootstrap\\\\{closure}(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117, Array)#2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require(\'/var/www/moezdo...\')#3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require(\'/var/www/moezdo...\')#4 {main} thrown at /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php:129)"} {"file":null,"line":null,"class":null,"function":null,"url":"/articles.php","ip":"3.144.48.135","http_method":"GET","server":"moe-zdorovie.com.ua","referrer":"http://moe-zdorovie.com.ua/articles.php","memory_peak_usage":"8 MB","git":[]}')) (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:48) at Monolog\Handler\AbstractProcessingHandler->handle(array('message' => 'Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117Stack trace:#0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\\HandleExceptions->handleError(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117)#1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\\HandleExceptions->Bootstrap\\{closure}(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117, Array)#2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require(\'/var/www/moezdo...\')#3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require(\'/var/www/moezdo...\')#4 {main} thrown', 'context' => array('exception' => object(Error)), 'level' => 300, 'level_name' => 'WARNING', 'channel' => 'prod', 'datetime' => object(DateTimeImmutable), 'extra' => array('file' => null, 'line' => null, 'class' => null, 'function' => null, 'url' => '/articles.php', 'ip' => '3.144.48.135', 'http_method' => 'GET', 'server' => 'moe-zdorovie.com.ua', 'referrer' => 'http://moe-zdorovie.com.ua/articles.php', 'memory_peak_usage' => '8 MB', 'git' => array()), 'formatted' => '[2024-04-24 15:23] prod.WARNING: Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117Stack trace:#0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\\HandleExceptions->handleError(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117)#1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\\HandleExceptions->Bootstrap\\{closure}(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117, Array)#2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require(\'/var/www/moezdo...\')#3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require(\'/var/www/moezdo...\')#4 {main} thrown {"exception":"[object] (Error(code: 0): Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117Stack trace:#0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\\\\HandleExceptions->handleError(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117)#1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\\\\HandleExceptions->Bootstrap\\\\{closure}(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117, Array)#2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require(\'/var/www/moezdo...\')#3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require(\'/var/www/moezdo...\')#4 {main} thrown at /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php:129)"} {"file":null,"line":null,"class":null,"function":null,"url":"/articles.php","ip":"3.144.48.135","http_method":"GET","server":"moe-zdorovie.com.ua","referrer":"http://moe-zdorovie.com.ua/articles.php","memory_peak_usage":"8 MB","git":[]}')) (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Logger.php:327) at Monolog\Logger->addRecord(300, 'Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117Stack trace:#0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\\HandleExceptions->handleError(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117)#1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\\HandleExceptions->Bootstrap\\{closure}(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117, Array)#2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require(\'/var/www/moezdo...\')#3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require(\'/var/www/moezdo...\')#4 {main} thrown', array('exception' => object(Error))) (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Logger.php:500) at Monolog\Logger->log(300, 'Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117Stack trace:#0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\\HandleExceptions->handleError(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117)#1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\\HandleExceptions->Bootstrap\\{closure}(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117, Array)#2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require(\'/var/www/moezdo...\')#3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require(\'/var/www/moezdo...\')#4 {main} thrown', array('exception' => object(Error))) (/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Logger/LogManager.php:88) at App\Logger\LogManager->__call('log', array('warning', 'Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117Stack trace:#0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\\HandleExceptions->handleError(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117)#1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\\HandleExceptions->Bootstrap\\{closure}(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117, Array)#2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require(\'/var/www/moezdo...\')#3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require(\'/var/www/moezdo...\')#4 {main} thrown', array('exception' => object(Error)))) (/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Logger/Log.php:17) at App\Logger\Log::__callStatic('log', array('warning', 'Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117Stack trace:#0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\\HandleExceptions->handleError(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117)#1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\\HandleExceptions->Bootstrap\\{closure}(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117, Array)#2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require(\'/var/www/moezdo...\')#3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require(\'/var/www/moezdo...\')#4 {main} thrown', array('exception' => object(Error)))) (/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Exceptions/Handler/Handler.php:33) at App\Exceptions\Handler\Handler->report(object(Error)) (/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php:96) at Bootstrap\HandleExceptions->handleException(object(Error)) (/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php:108) at Bootstrap\HandleExceptions->handleShutdown() (/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php:40) at Bootstrap\HandleExceptions->Bootstrap\{closure}() |
Exception
ErrorException
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php
(line 210)
if ($this->dirCreated) {
return;
}
$dir = $this->getDirFromStream($url);
if (null !== $dir && !is_dir($dir)) {
$this->errorMessage = null;
set_error_handler([$this, 'customErrorHandler']);
$status = mkdir($dir, 0777, true);
restore_error_handler();
if (false === $status && !is_dir($dir)) {
HandleExceptions->handleError(2, 'is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php)', '/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php', 210)
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php
(line 32)
//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);
});
HandleExceptions->Bootstrap\{closure}(2, 'is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php)', '/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php', 210, array('url' => '/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs/daily-2024-04-24.log', 'dir' => '/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs'))
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php
is_dir
(line 210)
if ($this->dirCreated) {
return;
}
$dir = $this->getDirFromStream($url);
if (null !== $dir && !is_dir($dir)) {
$this->errorMessage = null;
set_error_handler([$this, 'customErrorHandler']);
$status = mkdir($dir, 0777, true);
restore_error_handler();
if (false === $status && !is_dir($dir)) {
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php
->
createDir
(line 135)
if (!is_resource($this->stream)) {
$url = $this->url;
if (null === $url || '' === $url) {
throw new \LogicException('Missing stream url, the stream can not be opened. This may be caused by a premature call to close().');
}
$this->createDir($url);
$this->errorMessage = null;
set_error_handler([$this, 'customErrorHandler']);
$stream = fopen($url, 'a');
if ($this->filePermission !== null) {
@chmod($url, $this->filePermission);
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php
->
write
(line 125)
if ($this->nextRotation <= $record['datetime']) {
$this->mustRotate = true;
$this->close();
}
parent::write($record);
}
/**
* Rotates the files.
*/
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php
->
write
(line 48)
$record = $this->processRecord($record);
}
$record['formatted'] = $this->getFormatter()->format($record);
$this->write($record);
return false === $this->bubble;
}
/**
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Logger.php
->
handle
(line 327)
}
}
// 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);
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Logger.php
->
addRecord
(line 500)
throw new \InvalidArgumentException('$level is expected to be a string or int');
}
$level = static::toMonologLevel($level);
$this->addRecord($level, (string) $message, $context);
}
/**
* Adds a log record at the DEBUG level.
*
Logger->log(300, 'Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117Stack trace:#0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\\HandleExceptions->handleError(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117)#1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\\HandleExceptions->Bootstrap\\{closure}(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117, Array)#2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require(\'/var/www/moezdo...\')#3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require(\'/var/www/moezdo...\')#4 {main} thrown', array('exception' => object(Error)))
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Logger/LogManager.php
(line 88)
* @param array $parameters
* @return mixed
*/
public function __call(string $method, $parameters)
{
return $this->driver()->$method(...$parameters);
}
/**
* Create a new, on-demand aggregate logger instance.
*/
LogManager->__call('log', array('warning', 'Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117Stack trace:#0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\\HandleExceptions->handleError(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117)#1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\\HandleExceptions->Bootstrap\\{closure}(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117, Array)#2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require(\'/var/www/moezdo...\')#3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require(\'/var/www/moezdo...\')#4 {main} thrown', array('exception' => object(Error))))
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Logger/Log.php
(line 17)
public static function __callStatic($method, $args)
{
if (!isset(self::$instance)) {
self::$instance= new LogManager();
}
return self::$instance->$method(...$args);
}
}
Log::__callStatic('log', array('warning', 'Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117Stack trace:#0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\\HandleExceptions->handleError(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117)#1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\\HandleExceptions->Bootstrap\\{closure}(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117, Array)#2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require(\'/var/www/moezdo...\')#3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require(\'/var/www/moezdo...\')#4 {main} thrown', array('exception' => object(Error))))
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Exceptions/Handler/Handler.php
(line 33)
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;
}
Handler->report(object(Error))
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php
(line 96)
*/
protected function handleException(Throwable $e): void
{
$handler = new Handler();
$handler->report($e);
$handler->render($e);
}
HandleExceptions->handleException(object(Error))
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php
(line 108)
* Handle the PHP shutdown event.
*/
protected function handleShutdown(): void
{
if (!is_null($error = error_get_last()) && $this->isFatal($error['type'])) {
$this->handleException($this->fatalErrorFromPhpError($error, 0));
}
}
/**
* Determine if the error type is fatal.
HandleExceptions->handleShutdown()
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php
(line 40)
set_exception_handler(function($e) {
$this->handleException($e);
});
register_shutdown_function(function() {
$this->handleShutdown();
});
}
/**
* Report PHP deprecations, or convert PHP errors to ErrorException instances.
HandleExceptions->Bootstrap\{closure}()
Stack Trace
ErrorException
|
---|
ErrorException: is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php) at /var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:210 at Bootstrap\HandleExceptions->handleError(2, 'is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php)', '/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php', 210) (/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php:32) at Bootstrap\HandleExceptions->Bootstrap\{closure}(2, 'is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php)', '/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php', 210, array('url' => '/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs/daily-2024-04-24.log', 'dir' => '/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs')) at is_dir('/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs') (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:210) at Monolog\Handler\StreamHandler->createDir('/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs/daily-2024-04-24.log') (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:135) at Monolog\Handler\StreamHandler->write(array('message' => 'Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117Stack trace:#0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\\HandleExceptions->handleError(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117)#1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\\HandleExceptions->Bootstrap\\{closure}(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117, Array)#2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require(\'/var/www/moezdo...\')#3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require(\'/var/www/moezdo...\')#4 {main} thrown', 'context' => array('exception' => object(Error)), 'level' => 300, 'level_name' => 'WARNING', 'channel' => 'prod', 'datetime' => object(DateTimeImmutable), 'extra' => array('file' => null, 'line' => null, 'class' => null, 'function' => null, 'url' => '/articles.php', 'ip' => '3.144.48.135', 'http_method' => 'GET', 'server' => 'moe-zdorovie.com.ua', 'referrer' => 'http://moe-zdorovie.com.ua/articles.php', 'memory_peak_usage' => '8 MB', 'git' => array()), 'formatted' => '[2024-04-24 15:23] prod.WARNING: Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117Stack trace:#0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\\HandleExceptions->handleError(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117)#1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\\HandleExceptions->Bootstrap\\{closure}(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117, Array)#2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require(\'/var/www/moezdo...\')#3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require(\'/var/www/moezdo...\')#4 {main} thrown {"exception":"[object] (Error(code: 0): Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117Stack trace:#0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\\\\HandleExceptions->handleError(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117)#1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\\\\HandleExceptions->Bootstrap\\\\{closure}(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117, Array)#2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require(\'/var/www/moezdo...\')#3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require(\'/var/www/moezdo...\')#4 {main} thrown at /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php:129)"} {"file":null,"line":null,"class":null,"function":null,"url":"/articles.php","ip":"3.144.48.135","http_method":"GET","server":"moe-zdorovie.com.ua","referrer":"http://moe-zdorovie.com.ua/articles.php","memory_peak_usage":"8 MB","git":[]}')) (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php:125) at Monolog\Handler\RotatingFileHandler->write(array('message' => 'Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117Stack trace:#0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\\HandleExceptions->handleError(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117)#1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\\HandleExceptions->Bootstrap\\{closure}(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117, Array)#2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require(\'/var/www/moezdo...\')#3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require(\'/var/www/moezdo...\')#4 {main} thrown', 'context' => array('exception' => object(Error)), 'level' => 300, 'level_name' => 'WARNING', 'channel' => 'prod', 'datetime' => object(DateTimeImmutable), 'extra' => array('file' => null, 'line' => null, 'class' => null, 'function' => null, 'url' => '/articles.php', 'ip' => '3.144.48.135', 'http_method' => 'GET', 'server' => 'moe-zdorovie.com.ua', 'referrer' => 'http://moe-zdorovie.com.ua/articles.php', 'memory_peak_usage' => '8 MB', 'git' => array()), 'formatted' => '[2024-04-24 15:23] prod.WARNING: Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117Stack trace:#0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\\HandleExceptions->handleError(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117)#1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\\HandleExceptions->Bootstrap\\{closure}(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117, Array)#2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require(\'/var/www/moezdo...\')#3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require(\'/var/www/moezdo...\')#4 {main} thrown {"exception":"[object] (Error(code: 0): Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117Stack trace:#0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\\\\HandleExceptions->handleError(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117)#1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\\\\HandleExceptions->Bootstrap\\\\{closure}(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117, Array)#2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require(\'/var/www/moezdo...\')#3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require(\'/var/www/moezdo...\')#4 {main} thrown at /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php:129)"} {"file":null,"line":null,"class":null,"function":null,"url":"/articles.php","ip":"3.144.48.135","http_method":"GET","server":"moe-zdorovie.com.ua","referrer":"http://moe-zdorovie.com.ua/articles.php","memory_peak_usage":"8 MB","git":[]}')) (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:48) at Monolog\Handler\AbstractProcessingHandler->handle(array('message' => 'Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117Stack trace:#0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\\HandleExceptions->handleError(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117)#1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\\HandleExceptions->Bootstrap\\{closure}(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117, Array)#2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require(\'/var/www/moezdo...\')#3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require(\'/var/www/moezdo...\')#4 {main} thrown', 'context' => array('exception' => object(Error)), 'level' => 300, 'level_name' => 'WARNING', 'channel' => 'prod', 'datetime' => object(DateTimeImmutable), 'extra' => array('file' => null, 'line' => null, 'class' => null, 'function' => null, 'url' => '/articles.php', 'ip' => '3.144.48.135', 'http_method' => 'GET', 'server' => 'moe-zdorovie.com.ua', 'referrer' => 'http://moe-zdorovie.com.ua/articles.php', 'memory_peak_usage' => '8 MB', 'git' => array()), 'formatted' => '[2024-04-24 15:23] prod.WARNING: Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117Stack trace:#0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\\HandleExceptions->handleError(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117)#1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\\HandleExceptions->Bootstrap\\{closure}(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117, Array)#2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require(\'/var/www/moezdo...\')#3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require(\'/var/www/moezdo...\')#4 {main} thrown {"exception":"[object] (Error(code: 0): Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117Stack trace:#0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\\\\HandleExceptions->handleError(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117)#1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\\\\HandleExceptions->Bootstrap\\\\{closure}(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117, Array)#2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require(\'/var/www/moezdo...\')#3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require(\'/var/www/moezdo...\')#4 {main} thrown at /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php:129)"} {"file":null,"line":null,"class":null,"function":null,"url":"/articles.php","ip":"3.144.48.135","http_method":"GET","server":"moe-zdorovie.com.ua","referrer":"http://moe-zdorovie.com.ua/articles.php","memory_peak_usage":"8 MB","git":[]}')) (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Logger.php:327) at Monolog\Logger->addRecord(300, 'Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117Stack trace:#0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\\HandleExceptions->handleError(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117)#1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\\HandleExceptions->Bootstrap\\{closure}(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117, Array)#2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require(\'/var/www/moezdo...\')#3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require(\'/var/www/moezdo...\')#4 {main} thrown', array('exception' => object(Error))) (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Logger.php:500) at Monolog\Logger->log(300, 'Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117Stack trace:#0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\\HandleExceptions->handleError(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117)#1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\\HandleExceptions->Bootstrap\\{closure}(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117, Array)#2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require(\'/var/www/moezdo...\')#3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require(\'/var/www/moezdo...\')#4 {main} thrown', array('exception' => object(Error))) (/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Logger/LogManager.php:88) at App\Logger\LogManager->__call('log', array('warning', 'Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117Stack trace:#0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\\HandleExceptions->handleError(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117)#1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\\HandleExceptions->Bootstrap\\{closure}(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117, Array)#2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require(\'/var/www/moezdo...\')#3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require(\'/var/www/moezdo...\')#4 {main} thrown', array('exception' => object(Error)))) (/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Logger/Log.php:17) at App\Logger\Log::__callStatic('log', array('warning', 'Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117Stack trace:#0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\\HandleExceptions->handleError(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117)#1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\\HandleExceptions->Bootstrap\\{closure}(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117, Array)#2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require(\'/var/www/moezdo...\')#3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require(\'/var/www/moezdo...\')#4 {main} thrown', array('exception' => object(Error)))) (/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Exceptions/Handler/Handler.php:33) at App\Exceptions\Handler\Handler->report(object(Error)) (/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php:96) at Bootstrap\HandleExceptions->handleException(object(Error)) (/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php:108) at Bootstrap\HandleExceptions->handleShutdown() (/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php:40) at Bootstrap\HandleExceptions->Bootstrap\{closure}() |
Exception
ErrorException
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php
(line 210)
if ($this->dirCreated) {
return;
}
$dir = $this->getDirFromStream($url);
if (null !== $dir && !is_dir($dir)) {
$this->errorMessage = null;
set_error_handler([$this, 'customErrorHandler']);
$status = mkdir($dir, 0777, true);
restore_error_handler();
if (false === $status && !is_dir($dir)) {
HandleExceptions->handleError(2, 'is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php)', '/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php', 210)
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php
(line 32)
//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);
});
HandleExceptions->Bootstrap\{closure}(2, 'is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php)', '/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php', 210, array('url' => '/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs/daily-2024-04-24.log', 'dir' => '/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs'))
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php
is_dir
(line 210)
if ($this->dirCreated) {
return;
}
$dir = $this->getDirFromStream($url);
if (null !== $dir && !is_dir($dir)) {
$this->errorMessage = null;
set_error_handler([$this, 'customErrorHandler']);
$status = mkdir($dir, 0777, true);
restore_error_handler();
if (false === $status && !is_dir($dir)) {
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php
->
createDir
(line 135)
if (!is_resource($this->stream)) {
$url = $this->url;
if (null === $url || '' === $url) {
throw new \LogicException('Missing stream url, the stream can not be opened. This may be caused by a premature call to close().');
}
$this->createDir($url);
$this->errorMessage = null;
set_error_handler([$this, 'customErrorHandler']);
$stream = fopen($url, 'a');
if ($this->filePermission !== null) {
@chmod($url, $this->filePermission);
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php
->
write
(line 125)
if ($this->nextRotation <= $record['datetime']) {
$this->mustRotate = true;
$this->close();
}
parent::write($record);
}
/**
* Rotates the files.
*/
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php
->
write
(line 48)
$record = $this->processRecord($record);
}
$record['formatted'] = $this->getFormatter()->format($record);
$this->write($record);
return false === $this->bubble;
}
/**
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Logger.php
->
handle
(line 327)
}
}
// 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);
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Logger.php
->
addRecord
(line 500)
throw new \InvalidArgumentException('$level is expected to be a string or int');
}
$level = static::toMonologLevel($level);
$this->addRecord($level, (string) $message, $context);
}
/**
* Adds a log record at the DEBUG level.
*
Logger->log(300, 'Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117Stack trace:#0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\\HandleExceptions->handleError(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117)#1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\\HandleExceptions->Bootstrap\\{closure}(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117, Array)#2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require(\'/var/www/moezdo...\')#3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require(\'/var/www/moezdo...\')#4 {main} thrown', array('exception' => object(Error)))
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Logger/LogManager.php
(line 88)
* @param array $parameters
* @return mixed
*/
public function __call(string $method, $parameters)
{
return $this->driver()->$method(...$parameters);
}
/**
* Create a new, on-demand aggregate logger instance.
*/
LogManager->__call('log', array('warning', 'Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117Stack trace:#0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\\HandleExceptions->handleError(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117)#1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\\HandleExceptions->Bootstrap\\{closure}(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117, Array)#2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require(\'/var/www/moezdo...\')#3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require(\'/var/www/moezdo...\')#4 {main} thrown', array('exception' => object(Error))))
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Logger/Log.php
(line 17)
public static function __callStatic($method, $args)
{
if (!isset(self::$instance)) {
self::$instance= new LogManager();
}
return self::$instance->$method(...$args);
}
}
Log::__callStatic('log', array('warning', 'Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117Stack trace:#0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\\HandleExceptions->handleError(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117)#1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\\HandleExceptions->Bootstrap\\{closure}(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117, Array)#2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require(\'/var/www/moezdo...\')#3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require(\'/var/www/moezdo...\')#4 {main} thrown', array('exception' => object(Error))))
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Exceptions/Handler/Handler.php
(line 33)
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;
}
Handler->report(object(Error))
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php
(line 96)
*/
protected function handleException(Throwable $e): void
{
$handler = new Handler();
$handler->report($e);
$handler->render($e);
}
HandleExceptions->handleException(object(Error))
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php
(line 108)
* Handle the PHP shutdown event.
*/
protected function handleShutdown(): void
{
if (!is_null($error = error_get_last()) && $this->isFatal($error['type'])) {
$this->handleException($this->fatalErrorFromPhpError($error, 0));
}
}
/**
* Determine if the error type is fatal.
HandleExceptions->handleShutdown()
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php
(line 40)
set_exception_handler(function($e) {
$this->handleException($e);
});
register_shutdown_function(function() {
$this->handleShutdown();
});
}
/**
* Report PHP deprecations, or convert PHP errors to ErrorException instances.
HandleExceptions->Bootstrap\{closure}()
Stack Trace
ErrorException
|
---|
ErrorException: is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php) at /var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:210 at Bootstrap\HandleExceptions->handleError(2, 'is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php)', '/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php', 210) (/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php:32) at Bootstrap\HandleExceptions->Bootstrap\{closure}(2, 'is_dir(): open_basedir restriction in effect. File(/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs) is not within the allowed path(s): (/var/www/moezdoroviex:/usr/lib/php5:/usr/lib/php:/usr/bin/php)', '/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php', 210, array('url' => '/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs/daily-2024-04-24.log', 'dir' => '/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs')) at is_dir('/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs') (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:210) at Monolog\Handler\StreamHandler->createDir('/var/www/new2022/new2022.moe-zdorovie.com.uastorage/logs/daily-2024-04-24.log') (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:135) at Monolog\Handler\StreamHandler->write(array('message' => 'Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117Stack trace:#0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\\HandleExceptions->handleError(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117)#1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\\HandleExceptions->Bootstrap\\{closure}(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117, Array)#2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require(\'/var/www/moezdo...\')#3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require(\'/var/www/moezdo...\')#4 {main} thrown', 'context' => array('exception' => object(Error)), 'level' => 300, 'level_name' => 'WARNING', 'channel' => 'prod', 'datetime' => object(DateTimeImmutable), 'extra' => array('file' => null, 'line' => null, 'class' => null, 'function' => null, 'url' => '/articles.php', 'ip' => '3.144.48.135', 'http_method' => 'GET', 'server' => 'moe-zdorovie.com.ua', 'referrer' => 'http://moe-zdorovie.com.ua/articles.php', 'memory_peak_usage' => '8 MB', 'git' => array()), 'formatted' => '[2024-04-24 15:23] prod.WARNING: Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117Stack trace:#0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\\HandleExceptions->handleError(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117)#1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\\HandleExceptions->Bootstrap\\{closure}(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117, Array)#2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require(\'/var/www/moezdo...\')#3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require(\'/var/www/moezdo...\')#4 {main} thrown {"exception":"[object] (Error(code: 0): Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117Stack trace:#0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\\\\HandleExceptions->handleError(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117)#1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\\\\HandleExceptions->Bootstrap\\\\{closure}(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117, Array)#2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require(\'/var/www/moezdo...\')#3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require(\'/var/www/moezdo...\')#4 {main} thrown at /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php:129)"} {"file":null,"line":null,"class":null,"function":null,"url":"/articles.php","ip":"3.144.48.135","http_method":"GET","server":"moe-zdorovie.com.ua","referrer":"http://moe-zdorovie.com.ua/articles.php","memory_peak_usage":"8 MB","git":[]}')) (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php:125) at Monolog\Handler\RotatingFileHandler->write(array('message' => 'Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117Stack trace:#0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\\HandleExceptions->handleError(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117)#1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\\HandleExceptions->Bootstrap\\{closure}(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117, Array)#2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require(\'/var/www/moezdo...\')#3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require(\'/var/www/moezdo...\')#4 {main} thrown', 'context' => array('exception' => object(Error)), 'level' => 300, 'level_name' => 'WARNING', 'channel' => 'prod', 'datetime' => object(DateTimeImmutable), 'extra' => array('file' => null, 'line' => null, 'class' => null, 'function' => null, 'url' => '/articles.php', 'ip' => '3.144.48.135', 'http_method' => 'GET', 'server' => 'moe-zdorovie.com.ua', 'referrer' => 'http://moe-zdorovie.com.ua/articles.php', 'memory_peak_usage' => '8 MB', 'git' => array()), 'formatted' => '[2024-04-24 15:23] prod.WARNING: Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117Stack trace:#0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\\HandleExceptions->handleError(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117)#1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\\HandleExceptions->Bootstrap\\{closure}(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117, Array)#2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require(\'/var/www/moezdo...\')#3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require(\'/var/www/moezdo...\')#4 {main} thrown {"exception":"[object] (Error(code: 0): Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117Stack trace:#0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\\\\HandleExceptions->handleError(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117)#1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\\\\HandleExceptions->Bootstrap\\\\{closure}(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117, Array)#2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require(\'/var/www/moezdo...\')#3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require(\'/var/www/moezdo...\')#4 {main} thrown at /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php:129)"} {"file":null,"line":null,"class":null,"function":null,"url":"/articles.php","ip":"3.144.48.135","http_method":"GET","server":"moe-zdorovie.com.ua","referrer":"http://moe-zdorovie.com.ua/articles.php","memory_peak_usage":"8 MB","git":[]}')) (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:48) at Monolog\Handler\AbstractProcessingHandler->handle(array('message' => 'Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117Stack trace:#0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\\HandleExceptions->handleError(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117)#1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\\HandleExceptions->Bootstrap\\{closure}(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117, Array)#2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require(\'/var/www/moezdo...\')#3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require(\'/var/www/moezdo...\')#4 {main} thrown', 'context' => array('exception' => object(Error)), 'level' => 300, 'level_name' => 'WARNING', 'channel' => 'prod', 'datetime' => object(DateTimeImmutable), 'extra' => array('file' => null, 'line' => null, 'class' => null, 'function' => null, 'url' => '/articles.php', 'ip' => '3.144.48.135', 'http_method' => 'GET', 'server' => 'moe-zdorovie.com.ua', 'referrer' => 'http://moe-zdorovie.com.ua/articles.php', 'memory_peak_usage' => '8 MB', 'git' => array()), 'formatted' => '[2024-04-24 15:23] prod.WARNING: Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117Stack trace:#0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\\HandleExceptions->handleError(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117)#1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\\HandleExceptions->Bootstrap\\{closure}(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117, Array)#2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require(\'/var/www/moezdo...\')#3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require(\'/var/www/moezdo...\')#4 {main} thrown {"exception":"[object] (Error(code: 0): Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117Stack trace:#0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\\\\HandleExceptions->handleError(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117)#1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\\\\HandleExceptions->Bootstrap\\\\{closure}(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117, Array)#2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require(\'/var/www/moezdo...\')#3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require(\'/var/www/moezdo...\')#4 {main} thrown at /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php:129)"} {"file":null,"line":null,"class":null,"function":null,"url":"/articles.php","ip":"3.144.48.135","http_method":"GET","server":"moe-zdorovie.com.ua","referrer":"http://moe-zdorovie.com.ua/articles.php","memory_peak_usage":"8 MB","git":[]}')) (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Logger.php:327) at Monolog\Logger->addRecord(300, 'Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117Stack trace:#0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\\HandleExceptions->handleError(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117)#1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\\HandleExceptions->Bootstrap\\{closure}(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117, Array)#2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require(\'/var/www/moezdo...\')#3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require(\'/var/www/moezdo...\')#4 {main} thrown', array('exception' => object(Error))) (/var/www/moezdoroviex/moe-zdorovie.com.ua/vendor/monolog/monolog/src/Monolog/Logger.php:500) at Monolog\Logger->log(300, 'Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117Stack trace:#0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\\HandleExceptions->handleError(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117)#1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\\HandleExceptions->Bootstrap\\{closure}(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117, Array)#2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require(\'/var/www/moezdo...\')#3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require(\'/var/www/moezdo...\')#4 {main} thrown', array('exception' => object(Error))) (/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Logger/LogManager.php:88) at App\Logger\LogManager->__call('log', array('warning', 'Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117Stack trace:#0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\\HandleExceptions->handleError(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117)#1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\\HandleExceptions->Bootstrap\\{closure}(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117, Array)#2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require(\'/var/www/moezdo...\')#3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require(\'/var/www/moezdo...\')#4 {main} thrown', array('exception' => object(Error)))) (/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Logger/Log.php:17) at App\Logger\Log::__callStatic('log', array('warning', 'Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117Stack trace:#0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\\HandleExceptions->handleError(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117)#1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\\HandleExceptions->Bootstrap\\{closure}(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117, Array)#2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require(\'/var/www/moezdo...\')#3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require(\'/var/www/moezdo...\')#4 {main} thrown', array('exception' => object(Error)))) (/var/www/moezdoroviex/moe-zdorovie.com.ua/app/Exceptions/Handler/Handler.php:33) at App\Exceptions\Handler\Handler->report(object(Error)) (/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php:96) at Bootstrap\HandleExceptions->handleException(object(Error)) (/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php:108) at Bootstrap\HandleExceptions->handleShutdown() (/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php:40) at Bootstrap\HandleExceptions->Bootstrap\{closure}() |
Exception
Error
* @param int|null $traceOffset
* @return \Error
*/
protected function fatalErrorFromPhpError(array $error, $traceOffset = null)
{
return new \Error($error['message'], 0);
}
}
HandleExceptions->fatalErrorFromPhpError(array('type' => 1, 'message' => 'Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117Stack trace:#0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\\HandleExceptions->handleError(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117)#1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\\HandleExceptions->Bootstrap\\{closure}(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117, Array)#2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require(\'/var/www/moezdo...\')#3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require(\'/var/www/moezdo...\')#4 {main} thrown', 'file' => '/var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php', 'line' => 117), 0)
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php
(line 108)
* Handle the PHP shutdown event.
*/
protected function handleShutdown(): void
{
if (!is_null($error = error_get_last()) && $this->isFatal($error['type'])) {
$this->handleException($this->fatalErrorFromPhpError($error, 0));
}
}
/**
* Determine if the error type is fatal.
HandleExceptions->handleShutdown()
in
/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php
(line 40)
set_exception_handler(function($e) {
$this->handleException($e);
});
register_shutdown_function(function() {
$this->handleShutdown();
});
}
/**
* Report PHP deprecations, or convert PHP errors to ErrorException instances.
HandleExceptions->Bootstrap\{closure}()
Stack Trace
Error
|
---|
Error: Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed 'ARTICLE_PREV_NEXT_BAR_LOCATION' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117 Stack trace: #0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\HandleExceptions->handleError(2, 'Use of undefine...', '/var/www/moezdo...', 117) #1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\HandleExceptions->Bootstrap\{closure}(2, 'Use of undefine...', '/var/www/moezdo...', 117, Array) #2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require('/var/www/moezdo...') #3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require('/var/www/moezdo...') #4 {main} thrown at /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php:129 at Bootstrap\HandleExceptions->fatalErrorFromPhpError(array('type' => 1, 'message' => 'Uncaught ErrorException: Use of undefined constant ARTICLE_PREV_NEXT_BAR_LOCATION - assumed \'ARTICLE_PREV_NEXT_BAR_LOCATION\' (this will throw an Error in a future version of PHP) in /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php:117Stack trace:#0 /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php(32): Bootstrap\\HandleExceptions->handleError(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117)#1 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php(117): Bootstrap\\HandleExceptions->Bootstrap\\{closure}(2, \'Use of undefine...\', \'/var/www/moezdo...\', 117, Array)#2 /var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/main_page.tpl.php(171): require(\'/var/www/moezdo...\')#3 /var/www/moezdoroviex/moe-zdorovie.com.ua/articles.php(24): require(\'/var/www/moezdo...\')#4 {main} thrown', 'file' => '/var/www/moezdoroviex/moe-zdorovie.com.ua/templates/solo_health/content/articles.tpl.php', 'line' => 117), 0) (/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php:108) at Bootstrap\HandleExceptions->handleShutdown() (/var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php:40) at Bootstrap\HandleExceptions->Bootstrap\{closure}() |