Ошибка
Пожалуйста, сообщите об этом разработчику
Пожалуйста, сообщите об этом разработчику
Ошибка
2: DateTime::__construct(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in file /home/u76746/sitespot.ru/www/engine/core/DocumentModel/Base.php on line 258
Показать системную информацию
public function getDate($property, $format = 'd m Y')
{
$date = $this->getProperty($property);
if (is_numeric($date)) {
$_date = new DateTime();
$_date->setTimestamp($date);
} else {
$_date = new DateTime($date);
}
return $_date->format($format);
}
public function getVideoOptions($property)
{
$video = $this->getProperty($property);
$video_types = array(
backtrace:
[0]: Site::__construct /home/u76746/sitespot.ru/www/index.php (line 40)
[1]: Site::launchPlugins /home/u76746/sitespot.ru/www/engine/site/Site.php (line 105)
[2]: Plugins::launch /home/u76746/sitespot.ru/www/engine/site/Site.php (line 257)
[3]: Plugins::launchPlugin /home/u76746/sitespot.ru/www/engine/site/core/Plugins.inc.php (line 74)
[4]: call_user_func_array /home/u76746/sitespot.ru/www/engine/site/core/Plugins.inc.php (line 174)
[5]: BlogPlugin::actionIndex (line )
[6]: View::display /home/u76746/sitespot.ru/www/site.sitespot.ru/plugins/BlogPlugin/classess/BlogPlugin.inc.php (line 57)
[7]: View::parse /home/u76746/sitespot.ru/www/engine/core/View/View.php (line 193)
[8]: View::parseTemplateUnit /home/u76746/sitespot.ru/www/engine/core/View/View.php (line 168)
[9]: Smarty::fetch /home/u76746/sitespot.ru/www/engine/core/View/View.php (line 147)
[10]: include /home/u76746/sitespot.ru/www/engine/Smarty/Smarty.class.php (line 1266)
[11]: DocumentModel_Base::getDate /home/u76746/sitespot.ru/www/sys_data/site/templates_compiled/%%AE^AE2^AE25F7E4%%index.tpl.php (line 34)
[12]: DateTime::__construct /home/u76746/sitespot.ru/www/engine/core/DocumentModel/Base.php (line 258)
function before_die(&$html) {
$time = Timer::formatTime(Timer::get('main', 1, false));
$queries = sql::getCapacityInfo();
$memory = round(memory_get_usage() / (1024*1024), 2) . ' peak ' . round(memory_get_peak_usage() / (1024*1024), 2);
$html .= '<!--TIME: '.$time." sec\n\n".$queries."\n\nMemory: " . $memory.'-->';
}
new Site;
?>
[1]: Site::launchPlugins /home/u76746/sitespot.ru/www/engine/site/Site.php (line 105)
try {
$this->init($fullInit);
if (!$fullInit) {
return;
}
$this->components('start');
$this->launchPlugins();
$this->components('end');
if ($this->getOption('wrapper')) {
$this->dump();
}
} catch (Exception404 $e) {
$this->id = $this->homeId;
View::get()->setDefaultDirectory();
[2]: Plugins::launch /home/u76746/sitespot.ru/www/engine/site/Site.php (line 257)
return self::$self;
}
private function components($stage) {
WiseCMS_SiteLayer::get()->process($stage);
}
private function launchPlugins() {
Plugins::getInstance()->launch();
}
private function dump() {
if ($page_template = $this->getOption('page_template')) {
$html = View::parse($page_template);
}
else {
$html = '';
}
[3]: Plugins::launchPlugin /home/u76746/sitespot.ru/www/engine/site/core/Plugins.inc.php (line 74)
$action = 'inline';
}
if (isset($plugin['plugin_method']) and ($plugin['plugin_method'])) {
$action = $plugin['plugin_method'];
}
$pluginObject = $this->launchPlugin($plugin, $action, false);
// если запуск по тексту - надо сохранить объект для отложенного запуска
if ((isset($plugin['launch_type'])) && ($plugin['launch_type'] == 'text')) {
$this->pluginsStorage[$plugin['key']] = array(
'object' => $pluginObject,
'data' => $plugin
);
}
}
}
}
[4]: call_user_func_array /home/u76746/sitespot.ru/www/engine/site/core/Plugins.inc.php (line 174)
throw new Exception('Action <b>' . $action . '</b> in plugin <b>' .
$plugin['key'] . '</b> not exists', false);
}
if (!is_callable(array($plugin['key'], $action))) {
throw new Exception('Action "' . $action . '" in plugin "' . $plugin['key'] . '"' .
' <b>must be public</b> (not private)', false);
}
$result = call_user_func_array(array($pluginObject, $action), $parameters);
}
}
Loader::get()->removeDirectory($loaderKey);
} catch (ExceptionStop $e) {
throw $e; // temp skip exception
}
}
$this->_processAfterLaunch();
return array($pluginObject, $result);
[5]: BlogPlugin::actionIndex (line )
[6]: View::display /home/u76746/sitespot.ru/www/site.sitespot.ru/plugins/BlogPlugin/classess/BlogPlugin.inc.php (line 57)
// Media::get()->addPluginScript('index.js', __CLASS__);
View::get()->stack('content_class', 'blog-page');
$models = Blog::factory()->order('date DESC')->limit($this->limit, 'pagination')->all();
View::display('index', array(
'models' => $models,
));
}
public function actionDocument($id){
$model = Blog::factory($id);
if ($model->getProperty("hru")) {
UrlUtils::Redirect($model->getUrl());
die();
}
$this->showModel($model);
[7]: View::parse /home/u76746/sitespot.ru/www/engine/core/View/View.php (line 193)
/**
* Alias for parse and display
* @author Andrey Lukin
* @param $template
* @param $data
*
* @return bool|mixed|string
*/
public static function display($template, $data = array()){
return self::parse($template, $data, true);
}
public function getTemplateUnitName($template){
return (strpos($template, '.tpl') !== false) ? $template : $template . '.tpl';
}
/**
* Parse and output template
* @param $unit
[8]: View::parseTemplateUnit /home/u76746/sitespot.ru/www/engine/core/View/View.php (line 168)
*
* @param string $template with tpl
* @param array $data data array
* @param bool $stackVar
*
* @return bool|mixed|string
*/
public static function parse($template, $data = array(), $stackVar = false){
$unit = View::get()->getTemplateUnitName($template);
$parsed = View::get()->parseTemplateUnit($unit, $data);
if($stackVar === true){
View::get()->setContent($parsed);
return true;
}
elseif(is_string($stackVar)){
View::get()->stack($stackVar, $parsed );
return true;
}
else{
return $parsed;
[9]: Smarty::fetch /home/u76746/sitespot.ru/www/engine/core/View/View.php (line 147)
*/
public function parseTemplateUnit($unit, $data = false) {
$path = View::get()->getPath($unit);
// if (!file_exists($this->baseDir . $path)) {
// throw new Exception('Не могу загрузить шаблон '.$this->baseDir . $path);
// }
$this->getEngine()->assign($data);
$parsed = $this->getEngine()->fetch($path);
return $parsed;
}
/**
* @author Andrey Lukin
* Returned values
* if stackVar is true template is parsed in content and returns true,
* if stackVar is string template is parsed in this string and returns true,
* if stackVar is false parsed content is returned
[10]: include /home/u76746/sitespot.ru/www/engine/Smarty/Smarty.class.php (line 1266)
|| $this->_compile_resource($resource_name, $_smarty_compile_path))
{
include($_smarty_compile_path);
}
} else {
ob_start();
if ($this->_is_compiled($resource_name, $_smarty_compile_path)
|| $this->_compile_resource($resource_name, $_smarty_compile_path))
{
include($_smarty_compile_path);
}
$_smarty_results = ob_get_contents();
ob_end_clean();
foreach ((array)$this->_plugins['outputfilter'] as $_output_filter) {
$_smarty_results = call_user_func_array($_output_filter[0], array($_smarty_results, &$this));
}
}
if ($this->caching) {
$_params = array('tpl_file' => $resource_name,
[11]: DocumentModel_Base::getDate /home/u76746/sitespot.ru/www/sys_data/site/templates_compiled/%%AE^AE2^AE25F7E4%%index.tpl.php (line 34)
<div class="col-lg-12 col-md-12 col-blog">
<div class="list">
<?php $_from = $this->_tpl_vars['models']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['model']):
?>
<div class="post">
<h2 class="title"><a href="<?php echo $this->_tpl_vars['model']->getUrl(); ?>
"><?php echo $this->_tpl_vars['model']->getTitle(); ?>
</a></h2>
<time><?php echo $this->_tpl_vars['model']->getDate('date','d.m.Y'); ?>
</time>
<?php if ($this->_tpl_vars['model']->getProperty('image')): ?>
<div class="img-block">
<div class="img">
<?php echo $this->_tpl_vars['model']->getImage('image','auto,auto,crop',$this->_tpl_vars['model']->getTitle(),'class="img-responsive"'); ?>
</div>
</div>
<?php endif; ?>
<div class="entry">
<?php echo $this->_tpl_vars['model']->getShortDescription(); ?>
[12]: DateTime::__construct /home/u76746/sitespot.ru/www/engine/core/DocumentModel/Base.php (line 258)
public function getDate($property, $format = 'd m Y')
{
$date = $this->getProperty($property);
if (is_numeric($date)) {
$_date = new DateTime();
$_date->setTimestamp($date);
} else {
$_date = new DateTime($date);
}
return $_date->format($format);
}
public function getVideoOptions($property)
{
$video = $this->getProperty($property);
$video_types = array(
Попробуйте обновить страницу, или перейти на главную страницу сайта
Система управления сайтом WiseCMS