Отложенные товары

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) (500 Whoops, looks like something went wrong.)

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)

Exception

UnexpectedValueException

  1.             $this->errorMessage null;
  2.             set_error_handler([$this'customErrorHandler']);
  3.             $status mkdir($dir0777true);
  4.             restore_error_handler();
  5.             if (false === $status && !is_dir($dir)) {
  6.                 throw new \UnexpectedValueException(sprintf('There is no existing directory at "%s" and it could not be created: '.$this->errorMessage$dir));
  7.             }
  8.         }
  9.         $this->dirCreated true;
  10.     }
  11. }
  1.         if (!is_resource($this->stream)) {
  2.             $url $this->url;
  3.             if (null === $url || '' === $url) {
  4.                 throw new \LogicException('Missing stream url, the stream can not be opened. This may be caused by a premature call to close().');
  5.             }
  6.             $this->createDir($url);
  7.             $this->errorMessage null;
  8.             set_error_handler([$this'customErrorHandler']);
  9.             $stream fopen($url'a');
  10.             if ($this->filePermission !== null) {
  11.                 @chmod($url$this->filePermission);
  1.         if ($this->nextRotation <= $record['datetime']) {
  2.             $this->mustRotate true;
  3.             $this->close();
  4.         }
  5.         parent::write($record);
  6.     }
  7.     /**
  8.      * Rotates the files.
  9.      */
  1.             $record $this->processRecord($record);
  2.         }
  3.         $record['formatted'] = $this->getFormatter()->format($record);
  4.         $this->write($record);
  5.         return false === $this->bubble;
  6.     }
  7.     /**
  1.                 }
  2.             }
  3.             // once the record exists, send it to all handlers as long as the bubbling chain is not interrupted
  4.             try {
  5.                 if (true === $handler->handle($record)) {
  6.                     break;
  7.                 }
  8.             } catch (Throwable $e) {
  9.                 $this->handleException($e$record);
  1.             throw new \InvalidArgumentException('$level is expected to be a string or int');
  2.         }
  3.         $level = static::toMonologLevel($level);
  4.         $this->addRecord($level, (string) $message$context);
  5.     }
  6.     /**
  7.      * Adds a log record at the DEBUG level.
  8.      *
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)
  1.      * @param array $parameters
  2.      * @return mixed
  3.      */
  4.     public function __call(string $method$parameters)
  5.     {
  6.         return $this->driver()->$method(...$parameters);
  7.     }
  8.     /**
  9.      * Create a new, on-demand aggregate logger instance.
  10.      */
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)
  1.     public static function __callStatic($method$args)
  2.     {
  3.         if (!isset(self::$instance)) {
  4.             self::$instance= new LogManager();
  5.         }
  6.         return self::$instance->$method(...$args);
  7.     }
  8. }
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)
  1.         if ($this->shouldntReport($e)) {
  2.             return;
  3.         }
  4.         try {
  5.             Log::log($this->defaultErrorLevelMap()[$this->getLogLevel($e)], $e->getMessage(), ['exception' => $e]);
  6.         } catch (\Throwable $ex) {
  7.             $this->render($ex);
  8.             $this->render($e);
  9.             throw $e;
  10.         }
Handler->report(object(ErrorException)) in /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php (line 96)
  1.      */
  2.     protected function handleException(Throwable $e): void
  3.     {
  4.         $handler = new Handler();
  5.         $handler->report($e);
  6.         $handler->render($e);
  7.     }
HandleExceptions->handleException(object(ErrorException)) in /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php (line 63)
  1.             if ($this->isDeprecation($level)) {
  2.                 $this->handleDeprecation($message$file$line);
  3.                 return;
  4.             }
  5.             $this->handleException(new ErrorException($message0$level$file$line));
  6.         }
  7.     }
  8.     /**
  9.      * Determine if the error level is a deprecation.
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)
  1.         //ini_set('error_log' , '/home/solomono/web/solomono.net/sites/dev/php.log');
  2.         error_reporting(E_ALL);
  3.         set_error_handler(function($level$message$file ''$line 0) {
  4.             $this->handleError($level$message$file$line);
  5.         });
  6.         set_exception_handler(function($e) {
  7.             $this->handleException($e);
  8.         });
HandleExceptions->Bootstrap\{closure}(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)
  1.             <?php
  2.             $articles_all_array = array();
  3.             $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";
  4.             $articles_all_split = new splitPageResults($articles_all_query_raw10);
  5.             if (($articles_all_split->number_of_rows 0) && ((ARTICLE_PREV_NEXT_BAR_LOCATION == 'top') || (ARTICLE_PREV_NEXT_BAR_LOCATION == 'both'))) {
  6.                 ?>
  7.                 <tr>
  8.                     <td>
  9.                         <table border="0" width="100%" cellspacing="0" cellpadding="2">
  10.                             <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)
  1.                 <div class="<?php echo $center_classes?> right_content">
  2.                     <!-- CONTENT -->
  3.                     <?php
  4.                     if (file_exists(DIR_WS_TEMPLATES TEMPLATE_NAME '/content/' $content '.tpl.php')) {
  5.                         require(DIR_WS_TEMPLATES TEMPLATE_NAME '/content/' $content '.tpl.php');
  6.                     }else {
  7.                         require(DIR_WS_CONTENT $content '.tpl.php');
  8.                     }
  9.                     ?>
  10.                     <!-- 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)
  1. //
  2.  // $breadcrumb->add(HEADING_TITLE, tep_href_link(FILENAME_ARTICLES, '', 'NONSSL'));
  3.   $content CONTENT_ARTICLES;
  4.   require(DIR_WS_TEMPLATES TEMPLATE_NAME '/' TEMPLATENAME_MAIN_PAGE);
  5.   require(DIR_WS_INCLUDES 'application_bottom.php');

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' => '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)                
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) (500 Whoops, looks like something went wrong.)

ErrorException

HTTP 500 Whoops, looks like something went wrong.

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

ErrorException

  1.             <?php
  2.             $articles_all_array = array();
  3.             $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";
  4.             $articles_all_split = new splitPageResults($articles_all_query_raw10);
  5.             if (($articles_all_split->number_of_rows 0) && ((ARTICLE_PREV_NEXT_BAR_LOCATION == 'top') || (ARTICLE_PREV_NEXT_BAR_LOCATION == 'both'))) {
  6.                 ?>
  7.                 <tr>
  8.                     <td>
  9.                         <table border="0" width="100%" cellspacing="0" cellpadding="2">
  10.                             <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)
  1.         //ini_set('error_log' , '/home/solomono/web/solomono.net/sites/dev/php.log');
  2.         error_reporting(E_ALL);
  3.         set_error_handler(function($level$message$file ''$line 0) {
  4.             $this->handleError($level$message$file$line);
  5.         });
  6.         set_exception_handler(function($e) {
  7.             $this->handleException($e);
  8.         });
HandleExceptions->Bootstrap\{closure}(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)
  1.             <?php
  2.             $articles_all_array = array();
  3.             $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";
  4.             $articles_all_split = new splitPageResults($articles_all_query_raw10);
  5.             if (($articles_all_split->number_of_rows 0) && ((ARTICLE_PREV_NEXT_BAR_LOCATION == 'top') || (ARTICLE_PREV_NEXT_BAR_LOCATION == 'both'))) {
  6.                 ?>
  7.                 <tr>
  8.                     <td>
  9.                         <table border="0" width="100%" cellspacing="0" cellpadding="2">
  10.                             <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)
  1.                 <div class="<?php echo $center_classes?> right_content">
  2.                     <!-- CONTENT -->
  3.                     <?php
  4.                     if (file_exists(DIR_WS_TEMPLATES TEMPLATE_NAME '/content/' $content '.tpl.php')) {
  5.                         require(DIR_WS_TEMPLATES TEMPLATE_NAME '/content/' $content '.tpl.php');
  6.                     }else {
  7.                         require(DIR_WS_CONTENT $content '.tpl.php');
  8.                     }
  9.                     ?>
  10.                     <!-- 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)
  1. //
  2.  // $breadcrumb->add(HEADING_TITLE, tep_href_link(FILENAME_ARTICLES, '', 'NONSSL'));
  3.   $content CONTENT_ARTICLES;
  4.   require(DIR_WS_TEMPLATES TEMPLATE_NAME '/' TEMPLATENAME_MAIN_PAGE);
  5.   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)                
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) (500 Whoops, looks like something went wrong.)

UnexpectedValueException

HTTP 500 Whoops, looks like something went wrong.

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)

Exception

UnexpectedValueException

  1.             $this->errorMessage null;
  2.             set_error_handler([$this'customErrorHandler']);
  3.             $status mkdir($dir0777true);
  4.             restore_error_handler();
  5.             if (false === $status && !is_dir($dir)) {
  6.                 throw new \UnexpectedValueException(sprintf('There is no existing directory at "%s" and it could not be created: '.$this->errorMessage$dir));
  7.             }
  8.         }
  9.         $this->dirCreated true;
  10.     }
  11. }
  1.         if (!is_resource($this->stream)) {
  2.             $url $this->url;
  3.             if (null === $url || '' === $url) {
  4.                 throw new \LogicException('Missing stream url, the stream can not be opened. This may be caused by a premature call to close().');
  5.             }
  6.             $this->createDir($url);
  7.             $this->errorMessage null;
  8.             set_error_handler([$this'customErrorHandler']);
  9.             $stream fopen($url'a');
  10.             if ($this->filePermission !== null) {
  11.                 @chmod($url$this->filePermission);
  1.         if ($this->nextRotation <= $record['datetime']) {
  2.             $this->mustRotate true;
  3.             $this->close();
  4.         }
  5.         parent::write($record);
  6.     }
  7.     /**
  8.      * Rotates the files.
  9.      */
  1.             $record $this->processRecord($record);
  2.         }
  3.         $record['formatted'] = $this->getFormatter()->format($record);
  4.         $this->write($record);
  5.         return false === $this->bubble;
  6.     }
  7.     /**
  1.                 }
  2.             }
  3.             // once the record exists, send it to all handlers as long as the bubbling chain is not interrupted
  4.             try {
  5.                 if (true === $handler->handle($record)) {
  6.                     break;
  7.                 }
  8.             } catch (Throwable $e) {
  9.                 $this->handleException($e$record);
  1.             throw new \InvalidArgumentException('$level is expected to be a string or int');
  2.         }
  3.         $level = static::toMonologLevel($level);
  4.         $this->addRecord($level, (string) $message$context);
  5.     }
  6.     /**
  7.      * Adds a log record at the DEBUG level.
  8.      *
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)
  1.      * @param array $parameters
  2.      * @return mixed
  3.      */
  4.     public function __call(string $method$parameters)
  5.     {
  6.         return $this->driver()->$method(...$parameters);
  7.     }
  8.     /**
  9.      * Create a new, on-demand aggregate logger instance.
  10.      */
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)
  1.     public static function __callStatic($method$args)
  2.     {
  3.         if (!isset(self::$instance)) {
  4.             self::$instance= new LogManager();
  5.         }
  6.         return self::$instance->$method(...$args);
  7.     }
  8. }
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)
  1.         if ($this->shouldntReport($e)) {
  2.             return;
  3.         }
  4.         try {
  5.             Log::log($this->defaultErrorLevelMap()[$this->getLogLevel($e)], $e->getMessage(), ['exception' => $e]);
  6.         } catch (\Throwable $ex) {
  7.             $this->render($ex);
  8.             $this->render($e);
  9.             throw $e;
  10.         }
Handler->report(object(ErrorException)) in /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php (line 96)
  1.      */
  2.     protected function handleException(Throwable $e): void
  3.     {
  4.         $handler = new Handler();
  5.         $handler->report($e);
  6.         $handler->render($e);
  7.     }
HandleExceptions->handleException(object(ErrorException)) in /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php (line 63)
  1.             if ($this->isDeprecation($level)) {
  2.                 $this->handleDeprecation($message$file$line);
  3.                 return;
  4.             }
  5.             $this->handleException(new ErrorException($message0$level$file$line));
  6.         }
  7.     }
  8.     /**
  9.      * 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)
  1.         //ini_set('error_log' , '/home/solomono/web/solomono.net/sites/dev/php.log');
  2.         error_reporting(E_ALL);
  3.         set_error_handler(function($level$message$file ''$line 0) {
  4.             $this->handleError($level$message$file$line);
  5.         });
  6.         set_exception_handler(function($e) {
  7.             $this->handleException($e);
  8.         });
HandleExceptions->Bootstrap\{closure}(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'))
  1.         if ($this->dirCreated) {
  2.             return;
  3.         }
  4.         $dir $this->getDirFromStream($url);
  5.         if (null !== $dir && !is_dir($dir)) {
  6.             $this->errorMessage null;
  7.             set_error_handler([$this'customErrorHandler']);
  8.             $status mkdir($dir0777true);
  9.             restore_error_handler();
  10.             if (false === $status && !is_dir($dir)) {
  1.         if (!is_resource($this->stream)) {
  2.             $url $this->url;
  3.             if (null === $url || '' === $url) {
  4.                 throw new \LogicException('Missing stream url, the stream can not be opened. This may be caused by a premature call to close().');
  5.             }
  6.             $this->createDir($url);
  7.             $this->errorMessage null;
  8.             set_error_handler([$this'customErrorHandler']);
  9.             $stream fopen($url'a');
  10.             if ($this->filePermission !== null) {
  11.                 @chmod($url$this->filePermission);
  1.         if ($this->nextRotation <= $record['datetime']) {
  2.             $this->mustRotate true;
  3.             $this->close();
  4.         }
  5.         parent::write($record);
  6.     }
  7.     /**
  8.      * Rotates the files.
  9.      */
  1.             $record $this->processRecord($record);
  2.         }
  3.         $record['formatted'] = $this->getFormatter()->format($record);
  4.         $this->write($record);
  5.         return false === $this->bubble;
  6.     }
  7.     /**
  1.                 }
  2.             }
  3.             // once the record exists, send it to all handlers as long as the bubbling chain is not interrupted
  4.             try {
  5.                 if (true === $handler->handle($record)) {
  6.                     break;
  7.                 }
  8.             } catch (Throwable $e) {
  9.                 $this->handleException($e$record);
  1.             throw new \InvalidArgumentException('$level is expected to be a string or int');
  2.         }
  3.         $level = static::toMonologLevel($level);
  4.         $this->addRecord($level, (string) $message$context);
  5.     }
  6.     /**
  7.      * Adds a log record at the DEBUG level.
  8.      *
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)
  1.      * @param array $parameters
  2.      * @return mixed
  3.      */
  4.     public function __call(string $method$parameters)
  5.     {
  6.         return $this->driver()->$method(...$parameters);
  7.     }
  8.     /**
  9.      * Create a new, on-demand aggregate logger instance.
  10.      */
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)
  1.     public static function __callStatic($method$args)
  2.     {
  3.         if (!isset(self::$instance)) {
  4.             self::$instance= new LogManager();
  5.         }
  6.         return self::$instance->$method(...$args);
  7.     }
  8. }
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)
  1.         if ($this->shouldntReport($e)) {
  2.             return;
  3.         }
  4.         try {
  5.             Log::log($this->defaultErrorLevelMap()[$this->getLogLevel($e)], $e->getMessage(), ['exception' => $e]);
  6.         } catch (\Throwable $ex) {
  7.             $this->render($ex);
  8.             $this->render($e);
  9.             throw $e;
  10.         }
Handler->report(object(ErrorException)) in /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php (line 96)
  1.      */
  2.     protected function handleException(Throwable $e): void
  3.     {
  4.         $handler = new Handler();
  5.         $handler->report($e);
  6.         $handler->render($e);
  7.     }
HandleExceptions->handleException(object(ErrorException)) in /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php (line 36)
  1.         set_error_handler(function($level$message$file ''$line 0) {
  2.             $this->handleError($level$message$file$line);
  3.         });
  4.         set_exception_handler(function($e) {
  5.             $this->handleException($e);
  6.         });
  7.         register_shutdown_function(function() {
  8.             $this->handleShutdown();
  9.         });
HandleExceptions->Bootstrap\{closure}(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))                
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) (500 Whoops, looks like something went wrong.)

ErrorException

HTTP 500 Whoops, looks like something went wrong.

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

ErrorException

  1.         if ($this->dirCreated) {
  2.             return;
  3.         }
  4.         $dir $this->getDirFromStream($url);
  5.         if (null !== $dir && !is_dir($dir)) {
  6.             $this->errorMessage null;
  7.             set_error_handler([$this'customErrorHandler']);
  8.             $status mkdir($dir0777true);
  9.             restore_error_handler();
  10.             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)
  1.         //ini_set('error_log' , '/home/solomono/web/solomono.net/sites/dev/php.log');
  2.         error_reporting(E_ALL);
  3.         set_error_handler(function($level$message$file ''$line 0) {
  4.             $this->handleError($level$message$file$line);
  5.         });
  6.         set_exception_handler(function($e) {
  7.             $this->handleException($e);
  8.         });
HandleExceptions->Bootstrap\{closure}(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'))
  1.         if ($this->dirCreated) {
  2.             return;
  3.         }
  4.         $dir $this->getDirFromStream($url);
  5.         if (null !== $dir && !is_dir($dir)) {
  6.             $this->errorMessage null;
  7.             set_error_handler([$this'customErrorHandler']);
  8.             $status mkdir($dir0777true);
  9.             restore_error_handler();
  10.             if (false === $status && !is_dir($dir)) {
  1.         if (!is_resource($this->stream)) {
  2.             $url $this->url;
  3.             if (null === $url || '' === $url) {
  4.                 throw new \LogicException('Missing stream url, the stream can not be opened. This may be caused by a premature call to close().');
  5.             }
  6.             $this->createDir($url);
  7.             $this->errorMessage null;
  8.             set_error_handler([$this'customErrorHandler']);
  9.             $stream fopen($url'a');
  10.             if ($this->filePermission !== null) {
  11.                 @chmod($url$this->filePermission);
  1.         if ($this->nextRotation <= $record['datetime']) {
  2.             $this->mustRotate true;
  3.             $this->close();
  4.         }
  5.         parent::write($record);
  6.     }
  7.     /**
  8.      * Rotates the files.
  9.      */
  1.             $record $this->processRecord($record);
  2.         }
  3.         $record['formatted'] = $this->getFormatter()->format($record);
  4.         $this->write($record);
  5.         return false === $this->bubble;
  6.     }
  7.     /**
  1.                 }
  2.             }
  3.             // once the record exists, send it to all handlers as long as the bubbling chain is not interrupted
  4.             try {
  5.                 if (true === $handler->handle($record)) {
  6.                     break;
  7.                 }
  8.             } catch (Throwable $e) {
  9.                 $this->handleException($e$record);
  1.             throw new \InvalidArgumentException('$level is expected to be a string or int');
  2.         }
  3.         $level = static::toMonologLevel($level);
  4.         $this->addRecord($level, (string) $message$context);
  5.     }
  6.     /**
  7.      * Adds a log record at the DEBUG level.
  8.      *
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)
  1.      * @param array $parameters
  2.      * @return mixed
  3.      */
  4.     public function __call(string $method$parameters)
  5.     {
  6.         return $this->driver()->$method(...$parameters);
  7.     }
  8.     /**
  9.      * Create a new, on-demand aggregate logger instance.
  10.      */
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)
  1.     public static function __callStatic($method$args)
  2.     {
  3.         if (!isset(self::$instance)) {
  4.             self::$instance= new LogManager();
  5.         }
  6.         return self::$instance->$method(...$args);
  7.     }
  8. }
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)
  1.         if ($this->shouldntReport($e)) {
  2.             return;
  3.         }
  4.         try {
  5.             Log::log($this->defaultErrorLevelMap()[$this->getLogLevel($e)], $e->getMessage(), ['exception' => $e]);
  6.         } catch (\Throwable $ex) {
  7.             $this->render($ex);
  8.             $this->render($e);
  9.             throw $e;
  10.         }
Handler->report(object(ErrorException)) in /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php (line 96)
  1.      */
  2.     protected function handleException(Throwable $e): void
  3.     {
  4.         $handler = new Handler();
  5.         $handler->report($e);
  6.         $handler->render($e);
  7.     }
HandleExceptions->handleException(object(ErrorException)) in /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php (line 36)
  1.         set_error_handler(function($level$message$file ''$line 0) {
  2.             $this->handleError($level$message$file$line);
  3.         });
  4.         set_exception_handler(function($e) {
  5.             $this->handleException($e);
  6.         });
  7.         register_shutdown_function(function() {
  8.             $this->handleShutdown();
  9.         });
HandleExceptions->Bootstrap\{closure}(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))                
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) (500 Whoops, looks like something went wrong.)

ErrorException

HTTP 500 Whoops, looks like something went wrong.

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

ErrorException

  1.         if ($this->dirCreated) {
  2.             return;
  3.         }
  4.         $dir $this->getDirFromStream($url);
  5.         if (null !== $dir && !is_dir($dir)) {
  6.             $this->errorMessage null;
  7.             set_error_handler([$this'customErrorHandler']);
  8.             $status mkdir($dir0777true);
  9.             restore_error_handler();
  10.             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)
  1.         //ini_set('error_log' , '/home/solomono/web/solomono.net/sites/dev/php.log');
  2.         error_reporting(E_ALL);
  3.         set_error_handler(function($level$message$file ''$line 0) {
  4.             $this->handleError($level$message$file$line);
  5.         });
  6.         set_exception_handler(function($e) {
  7.             $this->handleException($e);
  8.         });
HandleExceptions->Bootstrap\{closure}(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'))
  1.         if ($this->dirCreated) {
  2.             return;
  3.         }
  4.         $dir $this->getDirFromStream($url);
  5.         if (null !== $dir && !is_dir($dir)) {
  6.             $this->errorMessage null;
  7.             set_error_handler([$this'customErrorHandler']);
  8.             $status mkdir($dir0777true);
  9.             restore_error_handler();
  10.             if (false === $status && !is_dir($dir)) {
  1.         if (!is_resource($this->stream)) {
  2.             $url $this->url;
  3.             if (null === $url || '' === $url) {
  4.                 throw new \LogicException('Missing stream url, the stream can not be opened. This may be caused by a premature call to close().');
  5.             }
  6.             $this->createDir($url);
  7.             $this->errorMessage null;
  8.             set_error_handler([$this'customErrorHandler']);
  9.             $stream fopen($url'a');
  10.             if ($this->filePermission !== null) {
  11.                 @chmod($url$this->filePermission);
  1.         if ($this->nextRotation <= $record['datetime']) {
  2.             $this->mustRotate true;
  3.             $this->close();
  4.         }
  5.         parent::write($record);
  6.     }
  7.     /**
  8.      * Rotates the files.
  9.      */
  1.             $record $this->processRecord($record);
  2.         }
  3.         $record['formatted'] = $this->getFormatter()->format($record);
  4.         $this->write($record);
  5.         return false === $this->bubble;
  6.     }
  7.     /**
  1.                 }
  2.             }
  3.             // once the record exists, send it to all handlers as long as the bubbling chain is not interrupted
  4.             try {
  5.                 if (true === $handler->handle($record)) {
  6.                     break;
  7.                 }
  8.             } catch (Throwable $e) {
  9.                 $this->handleException($e$record);
  1.             throw new \InvalidArgumentException('$level is expected to be a string or int');
  2.         }
  3.         $level = static::toMonologLevel($level);
  4.         $this->addRecord($level, (string) $message$context);
  5.     }
  6.     /**
  7.      * Adds a log record at the DEBUG level.
  8.      *
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)
  1.      * @param array $parameters
  2.      * @return mixed
  3.      */
  4.     public function __call(string $method$parameters)
  5.     {
  6.         return $this->driver()->$method(...$parameters);
  7.     }
  8.     /**
  9.      * Create a new, on-demand aggregate logger instance.
  10.      */
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)
  1.     public static function __callStatic($method$args)
  2.     {
  3.         if (!isset(self::$instance)) {
  4.             self::$instance= new LogManager();
  5.         }
  6.         return self::$instance->$method(...$args);
  7.     }
  8. }
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)
  1.         if ($this->shouldntReport($e)) {
  2.             return;
  3.         }
  4.         try {
  5.             Log::log($this->defaultErrorLevelMap()[$this->getLogLevel($e)], $e->getMessage(), ['exception' => $e]);
  6.         } catch (\Throwable $ex) {
  7.             $this->render($ex);
  8.             $this->render($e);
  9.             throw $e;
  10.         }
Handler->report(object(ErrorException)) in /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php (line 96)
  1.      */
  2.     protected function handleException(Throwable $e): void
  3.     {
  4.         $handler = new Handler();
  5.         $handler->report($e);
  6.         $handler->render($e);
  7.     }
HandleExceptions->handleException(object(ErrorException)) in /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php (line 36)
  1.         set_error_handler(function($level$message$file ''$line 0) {
  2.             $this->handleError($level$message$file$line);
  3.         });
  4.         set_exception_handler(function($e) {
  5.             $this->handleException($e);
  6.         });
  7.         register_shutdown_function(function() {
  8.             $this->handleShutdown();
  9.         });
HandleExceptions->Bootstrap\{closure}(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))                
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) (500 Whoops, looks like something went wrong.)

ErrorException

HTTP 500 Whoops, looks like something went wrong.

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

ErrorException

  1.             <?php
  2.             $articles_all_array = array();
  3.             $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";
  4.             $articles_all_split = new splitPageResults($articles_all_query_raw10);
  5.             if (($articles_all_split->number_of_rows 0) && ((ARTICLE_PREV_NEXT_BAR_LOCATION == 'top') || (ARTICLE_PREV_NEXT_BAR_LOCATION == 'both'))) {
  6.                 ?>
  7.                 <tr>
  8.                     <td>
  9.                         <table border="0" width="100%" cellspacing="0" cellpadding="2">
  10.                             <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)
  1.         //ini_set('error_log' , '/home/solomono/web/solomono.net/sites/dev/php.log');
  2.         error_reporting(E_ALL);
  3.         set_error_handler(function($level$message$file ''$line 0) {
  4.             $this->handleError($level$message$file$line);
  5.         });
  6.         set_exception_handler(function($e) {
  7.             $this->handleException($e);
  8.         });
HandleExceptions->Bootstrap\{closure}(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)
  1.             <?php
  2.             $articles_all_array = array();
  3.             $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";
  4.             $articles_all_split = new splitPageResults($articles_all_query_raw10);
  5.             if (($articles_all_split->number_of_rows 0) && ((ARTICLE_PREV_NEXT_BAR_LOCATION == 'top') || (ARTICLE_PREV_NEXT_BAR_LOCATION == 'both'))) {
  6.                 ?>
  7.                 <tr>
  8.                     <td>
  9.                         <table border="0" width="100%" cellspacing="0" cellpadding="2">
  10.                             <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)
  1.                 <div class="<?php echo $center_classes?> right_content">
  2.                     <!-- CONTENT -->
  3.                     <?php
  4.                     if (file_exists(DIR_WS_TEMPLATES TEMPLATE_NAME '/content/' $content '.tpl.php')) {
  5.                         require(DIR_WS_TEMPLATES TEMPLATE_NAME '/content/' $content '.tpl.php');
  6.                     }else {
  7.                         require(DIR_WS_CONTENT $content '.tpl.php');
  8.                     }
  9.                     ?>
  10.                     <!-- 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)
  1. //
  2.  // $breadcrumb->add(HEADING_TITLE, tep_href_link(FILENAME_ARTICLES, '', 'NONSSL'));
  3.   $content CONTENT_ARTICLES;
  4.   require(DIR_WS_TEMPLATES TEMPLATE_NAME '/' TEMPLATENAME_MAIN_PAGE);
  5.   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)                
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) (500 Whoops, looks like something went wrong.)

UnexpectedValueException

HTTP 500 Whoops, looks like something went wrong.

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)

Exception

UnexpectedValueException

  1.             $this->errorMessage null;
  2.             set_error_handler([$this'customErrorHandler']);
  3.             $status mkdir($dir0777true);
  4.             restore_error_handler();
  5.             if (false === $status && !is_dir($dir)) {
  6.                 throw new \UnexpectedValueException(sprintf('There is no existing directory at "%s" and it could not be created: '.$this->errorMessage$dir));
  7.             }
  8.         }
  9.         $this->dirCreated true;
  10.     }
  11. }
  1.         if (!is_resource($this->stream)) {
  2.             $url $this->url;
  3.             if (null === $url || '' === $url) {
  4.                 throw new \LogicException('Missing stream url, the stream can not be opened. This may be caused by a premature call to close().');
  5.             }
  6.             $this->createDir($url);
  7.             $this->errorMessage null;
  8.             set_error_handler([$this'customErrorHandler']);
  9.             $stream fopen($url'a');
  10.             if ($this->filePermission !== null) {
  11.                 @chmod($url$this->filePermission);
  1.         if ($this->nextRotation <= $record['datetime']) {
  2.             $this->mustRotate true;
  3.             $this->close();
  4.         }
  5.         parent::write($record);
  6.     }
  7.     /**
  8.      * Rotates the files.
  9.      */
  1.             $record $this->processRecord($record);
  2.         }
  3.         $record['formatted'] = $this->getFormatter()->format($record);
  4.         $this->write($record);
  5.         return false === $this->bubble;
  6.     }
  7.     /**
  1.                 }
  2.             }
  3.             // once the record exists, send it to all handlers as long as the bubbling chain is not interrupted
  4.             try {
  5.                 if (true === $handler->handle($record)) {
  6.                     break;
  7.                 }
  8.             } catch (Throwable $e) {
  9.                 $this->handleException($e$record);
  1.             throw new \InvalidArgumentException('$level is expected to be a string or int');
  2.         }
  3.         $level = static::toMonologLevel($level);
  4.         $this->addRecord($level, (string) $message$context);
  5.     }
  6.     /**
  7.      * Adds a log record at the DEBUG level.
  8.      *
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)
  1.      * @param array $parameters
  2.      * @return mixed
  3.      */
  4.     public function __call(string $method$parameters)
  5.     {
  6.         return $this->driver()->$method(...$parameters);
  7.     }
  8.     /**
  9.      * Create a new, on-demand aggregate logger instance.
  10.      */
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)
  1.     public static function __callStatic($method$args)
  2.     {
  3.         if (!isset(self::$instance)) {
  4.             self::$instance= new LogManager();
  5.         }
  6.         return self::$instance->$method(...$args);
  7.     }
  8. }
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)
  1.         if ($this->shouldntReport($e)) {
  2.             return;
  3.         }
  4.         try {
  5.             Log::log($this->defaultErrorLevelMap()[$this->getLogLevel($e)], $e->getMessage(), ['exception' => $e]);
  6.         } catch (\Throwable $ex) {
  7.             $this->render($ex);
  8.             $this->render($e);
  9.             throw $e;
  10.         }
Handler->report(object(ErrorException)) in /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php (line 96)
  1.      */
  2.     protected function handleException(Throwable $e): void
  3.     {
  4.         $handler = new Handler();
  5.         $handler->report($e);
  6.         $handler->render($e);
  7.     }
HandleExceptions->handleException(object(ErrorException)) in /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php (line 63)
  1.             if ($this->isDeprecation($level)) {
  2.                 $this->handleDeprecation($message$file$line);
  3.                 return;
  4.             }
  5.             $this->handleException(new ErrorException($message0$level$file$line));
  6.         }
  7.     }
  8.     /**
  9.      * 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)
  1.         //ini_set('error_log' , '/home/solomono/web/solomono.net/sites/dev/php.log');
  2.         error_reporting(E_ALL);
  3.         set_error_handler(function($level$message$file ''$line 0) {
  4.             $this->handleError($level$message$file$line);
  5.         });
  6.         set_exception_handler(function($e) {
  7.             $this->handleException($e);
  8.         });
HandleExceptions->Bootstrap\{closure}(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'))
  1.         if ($this->dirCreated) {
  2.             return;
  3.         }
  4.         $dir $this->getDirFromStream($url);
  5.         if (null !== $dir && !is_dir($dir)) {
  6.             $this->errorMessage null;
  7.             set_error_handler([$this'customErrorHandler']);
  8.             $status mkdir($dir0777true);
  9.             restore_error_handler();
  10.             if (false === $status && !is_dir($dir)) {
  1.         if (!is_resource($this->stream)) {
  2.             $url $this->url;
  3.             if (null === $url || '' === $url) {
  4.                 throw new \LogicException('Missing stream url, the stream can not be opened. This may be caused by a premature call to close().');
  5.             }
  6.             $this->createDir($url);
  7.             $this->errorMessage null;
  8.             set_error_handler([$this'customErrorHandler']);
  9.             $stream fopen($url'a');
  10.             if ($this->filePermission !== null) {
  11.                 @chmod($url$this->filePermission);
  1.         if ($this->nextRotation <= $record['datetime']) {
  2.             $this->mustRotate true;
  3.             $this->close();
  4.         }
  5.         parent::write($record);
  6.     }
  7.     /**
  8.      * Rotates the files.
  9.      */
  1.             $record $this->processRecord($record);
  2.         }
  3.         $record['formatted'] = $this->getFormatter()->format($record);
  4.         $this->write($record);
  5.         return false === $this->bubble;
  6.     }
  7.     /**
  1.                 }
  2.             }
  3.             // once the record exists, send it to all handlers as long as the bubbling chain is not interrupted
  4.             try {
  5.                 if (true === $handler->handle($record)) {
  6.                     break;
  7.                 }
  8.             } catch (Throwable $e) {
  9.                 $this->handleException($e$record);
  1.             throw new \InvalidArgumentException('$level is expected to be a string or int');
  2.         }
  3.         $level = static::toMonologLevel($level);
  4.         $this->addRecord($level, (string) $message$context);
  5.     }
  6.     /**
  7.      * Adds a log record at the DEBUG level.
  8.      *
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)
  1.      * @param array $parameters
  2.      * @return mixed
  3.      */
  4.     public function __call(string $method$parameters)
  5.     {
  6.         return $this->driver()->$method(...$parameters);
  7.     }
  8.     /**
  9.      * Create a new, on-demand aggregate logger instance.
  10.      */
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)
  1.     public static function __callStatic($method$args)
  2.     {
  3.         if (!isset(self::$instance)) {
  4.             self::$instance= new LogManager();
  5.         }
  6.         return self::$instance->$method(...$args);
  7.     }
  8. }
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)
  1.         if ($this->shouldntReport($e)) {
  2.             return;
  3.         }
  4.         try {
  5.             Log::log($this->defaultErrorLevelMap()[$this->getLogLevel($e)], $e->getMessage(), ['exception' => $e]);
  6.         } catch (\Throwable $ex) {
  7.             $this->render($ex);
  8.             $this->render($e);
  9.             throw $e;
  10.         }
  1.      */
  2.     protected function handleException(Throwable $e): void
  3.     {
  4.         $handler = new Handler();
  5.         $handler->report($e);
  6.         $handler->render($e);
  7.     }
HandleExceptions->handleException(object(Error)) in /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php (line 108)
  1.      * Handle the PHP shutdown event.
  2.      */
  3.     protected function handleShutdown(): void
  4.     {
  5.         if (!is_null($error error_get_last()) && $this->isFatal($error['type'])) {
  6.             $this->handleException($this->fatalErrorFromPhpError($error0));
  7.         }
  8.     }
  9.     /**
  10.      * Determine if the error type is fatal.
  1.         set_exception_handler(function($e) {
  2.             $this->handleException($e);
  3.         });
  4.         register_shutdown_function(function() {
  5.             $this->handleShutdown();
  6.         });
  7.     }
  8.     /**
  9.      * Report PHP deprecations, or convert PHP errors to ErrorException instances.
HandleExceptions->Bootstrap\{closure}()

Stack Trace

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}()                
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) (500 Whoops, looks like something went wrong.)

ErrorException

HTTP 500 Whoops, looks like something went wrong.

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

ErrorException

  1.         if ($this->dirCreated) {
  2.             return;
  3.         }
  4.         $dir $this->getDirFromStream($url);
  5.         if (null !== $dir && !is_dir($dir)) {
  6.             $this->errorMessage null;
  7.             set_error_handler([$this'customErrorHandler']);
  8.             $status mkdir($dir0777true);
  9.             restore_error_handler();
  10.             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)
  1.         //ini_set('error_log' , '/home/solomono/web/solomono.net/sites/dev/php.log');
  2.         error_reporting(E_ALL);
  3.         set_error_handler(function($level$message$file ''$line 0) {
  4.             $this->handleError($level$message$file$line);
  5.         });
  6.         set_exception_handler(function($e) {
  7.             $this->handleException($e);
  8.         });
HandleExceptions->Bootstrap\{closure}(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'))
  1.         if ($this->dirCreated) {
  2.             return;
  3.         }
  4.         $dir $this->getDirFromStream($url);
  5.         if (null !== $dir && !is_dir($dir)) {
  6.             $this->errorMessage null;
  7.             set_error_handler([$this'customErrorHandler']);
  8.             $status mkdir($dir0777true);
  9.             restore_error_handler();
  10.             if (false === $status && !is_dir($dir)) {
  1.         if (!is_resource($this->stream)) {
  2.             $url $this->url;
  3.             if (null === $url || '' === $url) {
  4.                 throw new \LogicException('Missing stream url, the stream can not be opened. This may be caused by a premature call to close().');
  5.             }
  6.             $this->createDir($url);
  7.             $this->errorMessage null;
  8.             set_error_handler([$this'customErrorHandler']);
  9.             $stream fopen($url'a');
  10.             if ($this->filePermission !== null) {
  11.                 @chmod($url$this->filePermission);
  1.         if ($this->nextRotation <= $record['datetime']) {
  2.             $this->mustRotate true;
  3.             $this->close();
  4.         }
  5.         parent::write($record);
  6.     }
  7.     /**
  8.      * Rotates the files.
  9.      */
  1.             $record $this->processRecord($record);
  2.         }
  3.         $record['formatted'] = $this->getFormatter()->format($record);
  4.         $this->write($record);
  5.         return false === $this->bubble;
  6.     }
  7.     /**
  1.                 }
  2.             }
  3.             // once the record exists, send it to all handlers as long as the bubbling chain is not interrupted
  4.             try {
  5.                 if (true === $handler->handle($record)) {
  6.                     break;
  7.                 }
  8.             } catch (Throwable $e) {
  9.                 $this->handleException($e$record);
  1.             throw new \InvalidArgumentException('$level is expected to be a string or int');
  2.         }
  3.         $level = static::toMonologLevel($level);
  4.         $this->addRecord($level, (string) $message$context);
  5.     }
  6.     /**
  7.      * Adds a log record at the DEBUG level.
  8.      *
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)
  1.      * @param array $parameters
  2.      * @return mixed
  3.      */
  4.     public function __call(string $method$parameters)
  5.     {
  6.         return $this->driver()->$method(...$parameters);
  7.     }
  8.     /**
  9.      * Create a new, on-demand aggregate logger instance.
  10.      */
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)
  1.     public static function __callStatic($method$args)
  2.     {
  3.         if (!isset(self::$instance)) {
  4.             self::$instance= new LogManager();
  5.         }
  6.         return self::$instance->$method(...$args);
  7.     }
  8. }
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)
  1.         if ($this->shouldntReport($e)) {
  2.             return;
  3.         }
  4.         try {
  5.             Log::log($this->defaultErrorLevelMap()[$this->getLogLevel($e)], $e->getMessage(), ['exception' => $e]);
  6.         } catch (\Throwable $ex) {
  7.             $this->render($ex);
  8.             $this->render($e);
  9.             throw $e;
  10.         }
  1.      */
  2.     protected function handleException(Throwable $e): void
  3.     {
  4.         $handler = new Handler();
  5.         $handler->report($e);
  6.         $handler->render($e);
  7.     }
HandleExceptions->handleException(object(Error)) in /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php (line 108)
  1.      * Handle the PHP shutdown event.
  2.      */
  3.     protected function handleShutdown(): void
  4.     {
  5.         if (!is_null($error error_get_last()) && $this->isFatal($error['type'])) {
  6.             $this->handleException($this->fatalErrorFromPhpError($error0));
  7.         }
  8.     }
  9.     /**
  10.      * Determine if the error type is fatal.
  1.         set_exception_handler(function($e) {
  2.             $this->handleException($e);
  3.         });
  4.         register_shutdown_function(function() {
  5.             $this->handleShutdown();
  6.         });
  7.     }
  8.     /**
  9.      * Report PHP deprecations, or convert PHP errors to ErrorException instances.
HandleExceptions->Bootstrap\{closure}()

Stack Trace

ErrorException
ErrorException:
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}()                
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) (500 Whoops, looks like something went wrong.)

ErrorException

HTTP 500 Whoops, looks like something went wrong.

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

ErrorException

  1.         if ($this->dirCreated) {
  2.             return;
  3.         }
  4.         $dir $this->getDirFromStream($url);
  5.         if (null !== $dir && !is_dir($dir)) {
  6.             $this->errorMessage null;
  7.             set_error_handler([$this'customErrorHandler']);
  8.             $status mkdir($dir0777true);
  9.             restore_error_handler();
  10.             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)
  1.         //ini_set('error_log' , '/home/solomono/web/solomono.net/sites/dev/php.log');
  2.         error_reporting(E_ALL);
  3.         set_error_handler(function($level$message$file ''$line 0) {
  4.             $this->handleError($level$message$file$line);
  5.         });
  6.         set_exception_handler(function($e) {
  7.             $this->handleException($e);
  8.         });
HandleExceptions->Bootstrap\{closure}(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'))
  1.         if ($this->dirCreated) {
  2.             return;
  3.         }
  4.         $dir $this->getDirFromStream($url);
  5.         if (null !== $dir && !is_dir($dir)) {
  6.             $this->errorMessage null;
  7.             set_error_handler([$this'customErrorHandler']);
  8.             $status mkdir($dir0777true);
  9.             restore_error_handler();
  10.             if (false === $status && !is_dir($dir)) {
  1.         if (!is_resource($this->stream)) {
  2.             $url $this->url;
  3.             if (null === $url || '' === $url) {
  4.                 throw new \LogicException('Missing stream url, the stream can not be opened. This may be caused by a premature call to close().');
  5.             }
  6.             $this->createDir($url);
  7.             $this->errorMessage null;
  8.             set_error_handler([$this'customErrorHandler']);
  9.             $stream fopen($url'a');
  10.             if ($this->filePermission !== null) {
  11.                 @chmod($url$this->filePermission);
  1.         if ($this->nextRotation <= $record['datetime']) {
  2.             $this->mustRotate true;
  3.             $this->close();
  4.         }
  5.         parent::write($record);
  6.     }
  7.     /**
  8.      * Rotates the files.
  9.      */
  1.             $record $this->processRecord($record);
  2.         }
  3.         $record['formatted'] = $this->getFormatter()->format($record);
  4.         $this->write($record);
  5.         return false === $this->bubble;
  6.     }
  7.     /**
  1.                 }
  2.             }
  3.             // once the record exists, send it to all handlers as long as the bubbling chain is not interrupted
  4.             try {
  5.                 if (true === $handler->handle($record)) {
  6.                     break;
  7.                 }
  8.             } catch (Throwable $e) {
  9.                 $this->handleException($e$record);
  1.             throw new \InvalidArgumentException('$level is expected to be a string or int');
  2.         }
  3.         $level = static::toMonologLevel($level);
  4.         $this->addRecord($level, (string) $message$context);
  5.     }
  6.     /**
  7.      * Adds a log record at the DEBUG level.
  8.      *
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)
  1.      * @param array $parameters
  2.      * @return mixed
  3.      */
  4.     public function __call(string $method$parameters)
  5.     {
  6.         return $this->driver()->$method(...$parameters);
  7.     }
  8.     /**
  9.      * Create a new, on-demand aggregate logger instance.
  10.      */
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)
  1.     public static function __callStatic($method$args)
  2.     {
  3.         if (!isset(self::$instance)) {
  4.             self::$instance= new LogManager();
  5.         }
  6.         return self::$instance->$method(...$args);
  7.     }
  8. }
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)
  1.         if ($this->shouldntReport($e)) {
  2.             return;
  3.         }
  4.         try {
  5.             Log::log($this->defaultErrorLevelMap()[$this->getLogLevel($e)], $e->getMessage(), ['exception' => $e]);
  6.         } catch (\Throwable $ex) {
  7.             $this->render($ex);
  8.             $this->render($e);
  9.             throw $e;
  10.         }
  1.      */
  2.     protected function handleException(Throwable $e): void
  3.     {
  4.         $handler = new Handler();
  5.         $handler->report($e);
  6.         $handler->render($e);
  7.     }
HandleExceptions->handleException(object(Error)) in /var/www/moezdoroviex/moe-zdorovie.com.ua/bootstrap/HandleExceptions.php (line 108)
  1.      * Handle the PHP shutdown event.
  2.      */
  3.     protected function handleShutdown(): void
  4.     {
  5.         if (!is_null($error error_get_last()) && $this->isFatal($error['type'])) {
  6.             $this->handleException($this->fatalErrorFromPhpError($error0));
  7.         }
  8.     }
  9.     /**
  10.      * Determine if the error type is fatal.
  1.         set_exception_handler(function($e) {
  2.             $this->handleException($e);
  3.         });
  4.         register_shutdown_function(function() {
  5.             $this->handleShutdown();
  6.         });
  7.     }
  8.     /**
  9.      * Report PHP deprecations, or convert PHP errors to ErrorException instances.
HandleExceptions->Bootstrap\{closure}()

Stack Trace

ErrorException
ErrorException:
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}()                
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 (500 Whoops, looks like something went wrong.)

Error

HTTP 500 Whoops, looks like something went wrong.

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

Exception

Error

  1.      * @param int|null $traceOffset
  2.      * @return \Error
  3.      */
  4.     protected function fatalErrorFromPhpError(array $error$traceOffset null)
  5.     {
  6.         return new \Error($error['message'], 0);
  7.     }
  8. }
HandleExceptions->fatalErrorFromPhpError(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)
  1.      * Handle the PHP shutdown event.
  2.      */
  3.     protected function handleShutdown(): void
  4.     {
  5.         if (!is_null($error error_get_last()) && $this->isFatal($error['type'])) {
  6.             $this->handleException($this->fatalErrorFromPhpError($error0));
  7.         }
  8.     }
  9.     /**
  10.      * Determine if the error type is fatal.
  1.         set_exception_handler(function($e) {
  2.             $this->handleException($e);
  3.         });
  4.         register_shutdown_function(function() {
  5.             $this->handleShutdown();
  6.         });
  7.     }
  8.     /**
  9.      * Report PHP deprecations, or convert PHP errors to ErrorException instances.
HandleExceptions->Bootstrap\{closure}()

Stack Trace

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}()