Ошибка
Пожалуйста, сообщите об этом разработчику
Ошибка
Document with ID 169187 not exists
/var/www/html/engine/Library/DocumentUtils.inc.php (line 534)
* Взять документ
*
* @param $id int
* @version 1.0 Multisite
* @return array
*/
public static function getDocument($id, $withMetaData = true) {
$document = SimpleSQL::getRow('documents', $id);
if(!$document) {
throw new Exception('Document with ID '.$id.' not exists');
}
$data_table = DataUtils::getTableName($document['template'], false, DOCUMENT);
$data = SimpleSQL::getRow($data_table, $id);
if($withMetaData || !$data) {
if(!$data) {
$data = array();
}
$data = array_merge($document, $data);
}
Показать системную информацию
backtrace:
[0]:
Site::__construct /var/www/html/index.php (
line 38)
}
function before_die(&$html) {
$time = Timer::formateTime(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 /var/www/html/engine/site/Site.php (
line 80)
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;
//$this->isMainPage();
View::get()->setDefaultDirectory();
[2]:
Plugins::launch /var/www/html/engine/site/Site.php (
line 204)
public static function getSelf() {
return self::$self;
}
private function components($stage) {
WiseCMS_SiteLayer::get()->proccess($stage);
}
private function launchPlugins() {
Plugins::getInstance()->launch();
}
private function dump() {
if($page_template = $this->getOption('page_template')) {
$html = View::get()->parseTemplateUnit($page_template);
} else {
$html = '';
}
if(!SystemOptions::get('oversite_disabled', false)) {
$this->oversite->process($html);
[3]:
Plugins::launchPlugin /var/www/html/engine/site/core/Plugins.inc.php (
line 69)
}/**/
if ($plugin['launch_type'] == 'text') {
$action = 'inline';
}
if(isset($plugin['plugin_method']) && ($plugin['plugin_method'])) {
$action = $plugin['plugin_method'];
}
$pluginObject = $this->launchPlugin($plugin, $action, false);
// если запуск по тексту - надо сохранить объект для отложенного запуска
//if ((isset($plugin['launch_type'])) && ($plugin['launch_type'] == 'text')) {
if ($plugin['launch_type'] == 'text') {
//debug($plugin);
$this->pluginsStorage[$plugin['key']] = array(
'object' => $pluginObject,
'data' => $plugin
);
}
}
}
[4]:
call_user_func_array /var/www/html/engine/site/core/Plugins.inc.php (
line 167)
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]:
News::document (line
)
[6]:
News::showDidMobile /var/www/html/site/plugins/News/classess/News.inc.php (
line 243)
public function document($documentId) {
if(Forms::issetGET('setVote')) {
Interrogations_Module::setAnswer();
}
// if(Cookie::get('mobile')) {
if (Forms::issetGET('mobile')) {
$this->showDidMobile($documentId);
} else {
$this->showDid($documentId);
}
}
private function showDidMobile($documentId) {
$doc = Newsitem::factory($documentId);
Site::getSelf()->setTitle($doc->caption);
View::get()->stack('nonePageName', 1);
$imgObj = new Image($doc->image);
[7]:
DocumentUtils::getDocument /var/www/html/site/plugins/News/classess/News.inc.php (
line 281)
$doc->content = str_replace('[txt='.$key.']', $htm, $doc->content);
}
}/**/
if ($doc->getOrigin('authors')) {
$ids = explode(',', $doc->getOrigin('authors'));
$authors = array();
foreach($ids as $id) {
$dc = DocumentUtils::getDocument($id);
if(!$dc['nonehref']) {
$dc['url'] = CacheFolders::getUrl($dc['parent']) . DOCUMENT_URL_KEY . $dc['id'] . '/';
}
$authors[] = $dc;
}
}
//Comments::get($documentId)->setParent($documentId)->setLimit(5)->attachComments();
$cond = array('data.id != '.$doc->id);
$cond[] = "((rubrics LIKE '%".$doc->parent."%') OR (data.parent = ".$doc->parent."))";
Попробуйте обновить страницу, или перейти на главную страницу сайта