|
500 Internal Server Error / EcommerceMarket.ru
500 Внутренняя ошибка сервера
На сервере произошла ошибка и мы уже о ней знаем. Мы делаем все возможное, чтобы восстановить доступ.
Попробуйте обновить страницу или зайти позже.
Exception type: Error. Message: Call to a member function getTimestamp() on string 1 /tmp/app/smarty3/compile/modern/blogs/dd071e30c3c29de4bdd15ec4cdaef01c8a675cb2_0.file.list_post.tpl.php:87 [x] - echo $_block_plugin9->template_build_url(array(), ob_get_clean(), $_smarty_tpl, $_block_repeat);
- }
- array_pop($_smarty_tpl->smarty->_cache['_tag_stack']);?>#cut"><?php if ($_smarty_tpl->tpl_vars['post']->value['preview_cut'] == '') {?>Читать дальше →<?php } else {
- echo $_smarty_tpl->tpl_vars['post']->value['preview_cut'];
- }?></a>
- <div style="border:1px solid #cccccc;padding:7px 5px 6px 5px;margin:0 0 10px 0;width:auto;border-radius:3px;">
- <table>
- <tr>
- <td><?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'userviewtiny' ][ 0 ], array( $_smarty_tpl->tpl_vars['post']->value['usercreated'] ));?>
- </td>
- <td class="cl-dgray"><?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'datetime' ][ 0 ], array( $_smarty_tpl->tpl_vars['post']->value['created'],'shortfull' ));?>
- </td>
- <td class="cl-dgray"><i class="base icon-eye-open"></i><?php echo $_smarty_tpl->tpl_vars['post']->value['browse'];?>
- </td>
- <td class="cl-dgray"><i class="base icon-thumbs-up"></i><?php echo $_smarty_tpl->tpl_vars['post']->value['rate'];?>
- </td>
- <td class="cl-dgray"><i class="base icon-comment"></i><?php echo $_smarty_tpl->tpl_vars['post']->value['comment'];?>
- </td>
- </tr>
- </table>
- </div>
2 /var/www/src/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php:123 [x] - $unifunc = $this->unifunc;
- }
- if (empty($unifunc) || !function_exists($unifunc)) {
- throw new SmartyException("Invalid compiled template for '{$_template->template_resource}'");
- }
- if ($_template->startRenderCallbacks) {
- foreach ($_template->startRenderCallbacks as $callback) {
- call_user_func($callback, $_template);
- }
- }
- $unifunc($_template);
- foreach ($_template->endRenderCallbacks as $callback) {
- call_user_func($callback, $_template);
- }
- $_template->isRenderingCache = false;
- } catch (Exception $e) {
- $_template->isRenderingCache = false;
- while (ob_get_level() > $level) {
- ob_end_clean();
- }
- if (isset($smarty->security_policy)) {
3 /var/www/src/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php:114 [x] - if (!$this->processed) {
- $this->process($_template);
- }
- if (isset($_template->cached)) {
- $_template->cached->file_dependency =
- array_merge($_template->cached->file_dependency, $this->file_dependency);
- }
- if ($_template->source->handler->uncompiled) {
- $_template->source->handler->renderUncompiled($_template->source, $_template);
- } else {
- $this->getRenderedTemplateCode($_template);
- }
- if ($_template->caching && $this->has_nocache_code) {
- $_template->cached->hashes[ $this->nocache_hash ] = true;
- }
- if ($_template->smarty->debugging) {
- $_template->smarty->_debug->end_render($_template);
- }
- }
-
- /**
4 /var/www/src/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php:216 [x] - if (!isset($this->cached) || $this->cached->cache_id !== $this->cache_id
- || $this->cached->compile_id !== $this->compile_id
- ) {
- $this->loadCached(true);
- }
- $this->cached->render($this, $no_output_filter);
- } else {
- if (!isset($this->compiled) || $this->compiled->compile_id !== $this->compile_id) {
- $this->loadCompiled(true);
- }
- $this->compiled->render($this);
- }
- // display or fetch
- if ($display) {
- if ($this->caching && $this->smarty->cache_modified_check) {
- $this->smarty->ext->_cacheModify->cacheModifiedCheck(
- $this->cached,
- $this,
- isset($content) ? $content : ob_get_clean()
- );
- } else {
5 /var/www/src/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php:385 [x] - }
- $tpl->compiled->getRenderedTemplateCode($tpl, $content_func);
- if ($smarty->debugging) {
- $smarty->_debug->end_template($tpl);
- $smarty->_debug->end_render($tpl);
- }
- } else {
- if (isset($tpl->compiled)) {
- $tpl->compiled->render($tpl);
- } else {
- $tpl->render();
- }
- }
- }
-
- /**
- * Get called sub-templates and save call count
- */
- public function _subTemplateRegister()
- {
- foreach ($this->compiled->includes as $name => $count) {
6 /tmp/app/smarty3/compile/modern/blogs/ccae235938713677a57918e9c60f456ac56aa11b_0.file.subject.tpl.php:103 [x] - <div class="grid-column-9">
- <div class="text grid-padding-side">
- <h1><?php echo $_smarty_tpl->tpl_vars['subject']->value['name'];?>
- </h1>
- </div>
- <?php
- $_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['posts']->value, 'post');
- if ($_from !== null) {
- foreach ($_from as $_smarty_tpl->tpl_vars['post']->value) {
- ?>
- <?php $_smarty_tpl->_subTemplateRender('file:list_post.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, true);
- ?>
- <?php
- }
- }
- $_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
- <div class="pages">
- <div class="title">
- <ul>
- <li class="title"><b><?php echo $_smarty_tpl->tpl_vars['lang']->value['head']['page'];?>
- </b></li>
7 /var/www/src/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php:248 [x] - /**
- * render block
- *
- * @param \Smarty_Internal_Block $block
- * @param \Smarty_Internal_Template $tpl
- */
- public function callBlock(Smarty_Internal_Block $block, Smarty_Internal_Template $tpl)
- {
- $this->sourceStack[] = $tpl->source;
- $tpl->source = $this->sources[ $block->tplIndex ];
- $block->callBlock($tpl);
- $tpl->source = array_pop($this->sourceStack);
- }
- }
8 /var/www/src/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php:184 [x] - return;
- }
- if (isset($block->child) && $block->child->hide && !isset($block->child->child)) {
- $block->child = null;
- }
- $block->parent = $parent;
- if ($block->append && !$block->prepend && isset($parent)) {
- $this->callParent($tpl, $block, '\'{block append}\'');
- }
- if ($block->callsChild || !isset($block->child) || ($block->child->hide && !isset($block->child->child))) {
- $this->callBlock($block, $tpl);
- } else {
- $this->process($tpl, $block->child, $block);
- }
- if ($block->prepend && isset($parent)) {
- $this->callParent($tpl, $block, '{block prepend}');
- if ($block->append) {
- if ($block->callsChild || !isset($block->child)
- || ($block->child->hide && !isset($block->child->child))
- ) {
- $this->callBlock($block, $tpl);
9 /var/www/src/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php:186 [x] - if (isset($block->child) && $block->child->hide && !isset($block->child->child)) {
- $block->child = null;
- }
- $block->parent = $parent;
- if ($block->append && !$block->prepend && isset($parent)) {
- $this->callParent($tpl, $block, '\'{block append}\'');
- }
- if ($block->callsChild || !isset($block->child) || ($block->child->hide && !isset($block->child->child))) {
- $this->callBlock($block, $tpl);
- } else {
- $this->process($tpl, $block->child, $block);
- }
- if ($block->prepend && isset($parent)) {
- $this->callParent($tpl, $block, '{block prepend}');
- if ($block->append) {
- if ($block->callsChild || !isset($block->child)
- || ($block->child->hide && !isset($block->child->child))
- ) {
- $this->callBlock($block, $tpl);
- } else {
- $this->process($tpl, $block->child, $block);
10 /var/www/src/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php:156 [x] - $block->child = $this->childRoot[ $name ];
- }
- if ($this->state === 1) {
- $this->childRoot[ $name ] = $block;
- return;
- }
- // make sure we got child block of child template of current block
- while ($block->child && $block->tplIndex <= $block->child->tplIndex) {
- $block->child = $block->child->child;
- }
- $this->process($tpl, $block);
- }
-
- /**
- * Goto child block or render this
- *
- * @param \Smarty_Internal_Template $tpl
- * @param \Smarty_Internal_Block $block
- * @param \Smarty_Internal_Block|null $parent
- *
- * @throws \SmartyException
11 /tmp/app/smarty3/compile/modern/blogs/8f50ac775a3dcfb395b80b5cc40ae2be87f6d7a4_0.file.layout.tpl.php:129 [x] - </div>
- </div>
- </div>
- </header>
- <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['data'][0], array( array('name'=>'menu'),$_smarty_tpl ) );?>
-
- <section id="main">
- <div class="main">
- <div class="container grid">
- <?php
- $_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_92704016493305f5b5140_12825368', 'main');
- ?>
-
- </div>
- </div>
- </section>
- <footer>
- <div class="footer">
- <div class="container grid" style="position: relative;">
- <div class="grid-row js-footer"></div>
- <div class="grid-row">
12 /var/www/src/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php:123 [x] - $unifunc = $this->unifunc;
- }
- if (empty($unifunc) || !function_exists($unifunc)) {
- throw new SmartyException("Invalid compiled template for '{$_template->template_resource}'");
- }
- if ($_template->startRenderCallbacks) {
- foreach ($_template->startRenderCallbacks as $callback) {
- call_user_func($callback, $_template);
- }
- }
- $unifunc($_template);
- foreach ($_template->endRenderCallbacks as $callback) {
- call_user_func($callback, $_template);
- }
- $_template->isRenderingCache = false;
- } catch (Exception $e) {
- $_template->isRenderingCache = false;
- while (ob_get_level() > $level) {
- ob_end_clean();
- }
- if (isset($smarty->security_policy)) {
13 /var/www/src/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php:114 [x] - if (!$this->processed) {
- $this->process($_template);
- }
- if (isset($_template->cached)) {
- $_template->cached->file_dependency =
- array_merge($_template->cached->file_dependency, $this->file_dependency);
- }
- if ($_template->source->handler->uncompiled) {
- $_template->source->handler->renderUncompiled($_template->source, $_template);
- } else {
- $this->getRenderedTemplateCode($_template);
- }
- if ($_template->caching && $this->has_nocache_code) {
- $_template->cached->hashes[ $this->nocache_hash ] = true;
- }
- if ($_template->smarty->debugging) {
- $_template->smarty->_debug->end_render($_template);
- }
- }
-
- /**
14 /var/www/src/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php:216 [x] - if (!isset($this->cached) || $this->cached->cache_id !== $this->cache_id
- || $this->cached->compile_id !== $this->compile_id
- ) {
- $this->loadCached(true);
- }
- $this->cached->render($this, $no_output_filter);
- } else {
- if (!isset($this->compiled) || $this->compiled->compile_id !== $this->compile_id) {
- $this->loadCompiled(true);
- }
- $this->compiled->render($this);
- }
- // display or fetch
- if ($display) {
- if ($this->caching && $this->smarty->cache_modified_check) {
- $this->smarty->ext->_cacheModify->cacheModifiedCheck(
- $this->cached,
- $this,
- isset($content) ? $content : ob_get_clean()
- );
- } else {
15 /var/www/src/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php:385 [x] - }
- $tpl->compiled->getRenderedTemplateCode($tpl, $content_func);
- if ($smarty->debugging) {
- $smarty->_debug->end_template($tpl);
- $smarty->_debug->end_render($tpl);
- }
- } else {
- if (isset($tpl->compiled)) {
- $tpl->compiled->render($tpl);
- } else {
- $tpl->render();
- }
- }
- }
-
- /**
- * Get called sub-templates and save call count
- */
- public function _subTemplateRegister()
- {
- foreach ($this->compiled->includes as $name => $count) {
16 /var/www/src/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php:125 [x] - $tpl->_subTemplateRender(
- $template,
- $tpl->cache_id,
- $tpl->compile_id,
- $tpl->caching ? 9999 : 0,
- $tpl->cache_lifetime,
- array(),
- 2,
- false,
- $uid,
- $func
- );
- }
- }
-
- /**
- * Smarty_Internal_Block constructor.
- * - if outer level {block} of child template ($state === 1) save it as child root block
- * - otherwise process inheritance and render
- *
- * @param \Smarty_Internal_Template $tpl
17 /tmp/app/smarty3/compile/modern/blogs/ccae235938713677a57918e9c60f456ac56aa11b_0.file.subject.tpl.php:41 [x] - ?>
-
- <?php
- $_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_1820173288649390d637e3d7_16720975', 'meta');
- ?>
-
- <?php
- $_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_1464748306649390d6385fa8_02921121', 'main');
- ?>
-
- <?php $_smarty_tpl->inheritance->endChild($_smarty_tpl, '../layout.tpl');
- }
- /* {block 'title'} */
- class Block_1749141195649390d637c196_04711354 extends Smarty_Internal_Block
- {
- public $subBlocks = array (
- 'title' =>
- array (
- 0 => 'Block_1749141195649390d637c196_04711354',
- ),
- );
18 /var/www/src/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php:123 [x] - $unifunc = $this->unifunc;
- }
- if (empty($unifunc) || !function_exists($unifunc)) {
- throw new SmartyException("Invalid compiled template for '{$_template->template_resource}'");
- }
- if ($_template->startRenderCallbacks) {
- foreach ($_template->startRenderCallbacks as $callback) {
- call_user_func($callback, $_template);
- }
- }
- $unifunc($_template);
- foreach ($_template->endRenderCallbacks as $callback) {
- call_user_func($callback, $_template);
- }
- $_template->isRenderingCache = false;
- } catch (Exception $e) {
- $_template->isRenderingCache = false;
- while (ob_get_level() > $level) {
- ob_end_clean();
- }
- if (isset($smarty->security_policy)) {
19 /var/www/src/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php:114 [x] - if (!$this->processed) {
- $this->process($_template);
- }
- if (isset($_template->cached)) {
- $_template->cached->file_dependency =
- array_merge($_template->cached->file_dependency, $this->file_dependency);
- }
- if ($_template->source->handler->uncompiled) {
- $_template->source->handler->renderUncompiled($_template->source, $_template);
- } else {
- $this->getRenderedTemplateCode($_template);
- }
- if ($_template->caching && $this->has_nocache_code) {
- $_template->cached->hashes[ $this->nocache_hash ] = true;
- }
- if ($_template->smarty->debugging) {
- $_template->smarty->_debug->end_render($_template);
- }
- }
-
- /**
20 /var/www/src/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php:216 [x] - if (!isset($this->cached) || $this->cached->cache_id !== $this->cache_id
- || $this->cached->compile_id !== $this->compile_id
- ) {
- $this->loadCached(true);
- }
- $this->cached->render($this, $no_output_filter);
- } else {
- if (!isset($this->compiled) || $this->compiled->compile_id !== $this->compile_id) {
- $this->loadCompiled(true);
- }
- $this->compiled->render($this);
- }
- // display or fetch
- if ($display) {
- if ($this->caching && $this->smarty->cache_modified_check) {
- $this->smarty->ext->_cacheModify->cacheModifiedCheck(
- $this->cached,
- $this,
- isset($content) ? $content : ob_get_clean()
- );
- } else {
21 /var/www/src/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php:232 [x] - } else {
- if ($saveVars) {
- $savedTplVars = $template->tpl_vars;
- $savedConfigVars = $template->config_vars;
- }
- ob_start();
- $template->_mergeVars();
- if (!empty(Smarty::$global_tpl_vars)) {
- $template->tpl_vars = array_merge(Smarty::$global_tpl_vars, $template->tpl_vars);
- }
- $result = $template->render(false, $function);
- $template->_cleanUp();
- if ($saveVars) {
- $template->tpl_vars = $savedTplVars;
- $template->config_vars = $savedConfigVars;
- } else {
- if (!$function && !isset(Smarty_Internal_Template::$tplObjCache[ $template->templateId ])) {
- $template->parent = null;
- $template->tpl_vars = $template->config_vars = array();
- Smarty_Internal_Template::$tplObjCache[ $template->templateId ] = $template;
- }
22 /var/www/src/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php:116 [x] - * @param mixed $cache_id cache id to be used with this template
- * @param mixed $compile_id compile id to be used with this template
- * @param object $parent next higher level of Smarty variables
- *
- * @throws Exception
- * @throws SmartyException
- * @return string rendered template output
- */
- public function fetch($template = null, $cache_id = null, $compile_id = null, $parent = null)
- {
- $result = $this->_execute($template, $cache_id, $compile_id, $parent, 0);
- return $result === null ? ob_get_clean() : $result;
- }
-
- /**
- * displays a Smarty template
- *
- * @param string $template the resource handle of the template file or template object
- * @param mixed $cache_id cache id to be used with this template
- * @param mixed $compile_id compile id to be used with this template
- * @param object $parent next higher level of Smarty variables
23 /var/www/src/modules/blogs/views.php:345 [x] - INNER JOIN blogs_subject_target BST ON BP.id = BST.target AND BST.targettype = '.TARGETTYPE_BLOGS_POST.'
- WHERE
- BP.hidden = 0
- AND BST.subject = '.$subject_id;
- $posts_nums = data::instance()->select_query(array('blogs_post','gallery_subject_target'), $sql);
- $posts_num = $posts_nums[0]['num'];
- $page->assign('posts', $posts);
-
- $page->pages('pages', $datapage, $posts_num, $num_on_page, array());
-
- $response->content_add($page->fetch("subject.tpl"));
- $response->send();
- return true;
- }
-
- function json_blogs_listitems($params)
- {
- data::instance()->queue(null);
- data::instance()->cache(false);
- $response = httpresponse::instance();
- $session = core::instance()->session_get();
24 /var/www/src/libs/router.php:281 [x] - }
- }
- $views = $this->_conf['directory']['modules'] . '/' . $url['module'] . '/' . $this->_conf['file']['views'];
- if (!file_exists($views))
- {
- throw new Exception('Can not find views file: '.$views);
- }
- include_once($views);
- $this->set_url($url);
- $this->set_params($params);
- return call_user_func($url['view'], $params);
- }
- elseif ((substr($request_url, -1) != '/') && (preg_match($url['regexp'], $request_url.'/', $params)))
- {
- $arr = $_GET;
- unset($arr['path']);
- httpresponse::instance()->location(httprequest::instance()->protocol().'://' . $this->_conf['location']['host'] . $request_url.'/'.((!empty($arr))?'?'.http_build_query($arr):''), 301);
- return false;
- }
- }
-
25 /var/www/src/htdocs/index.php:4 [x] - <?php
- if (!defined('INIT')) { define('ROOT', dirname(__FILE__).'/..'); include(ROOT."/init.php"); }
-
- router::instance()->route();
2024-03-29T19:01:54+03:00
|