
Пожалуйста, сообщите об этом разработчику
Ошибка
Action Heritage in plugin Articles not exists
/home/web/culture.site96.ru/www/engine/site/core/Plugins.inc.php (line 158)
Показать системную информацию
/home/web/culture.site96.ru/www/engine/site/core/Plugins.inc.php (line 158)
backtrace:
[0]: Site::__construct /home/web/culture.site96.ru/www/index.php (line 39)
[1]: Site::launchPlugins /home/web/culture.site96.ru/www/engine/site/Site.php (line 85)
[2]: Plugins::launch /home/web/culture.site96.ru/www/engine/site/Site.php (line 209)
[3]: Plugins::launchPlugin /home/web/culture.site96.ru/www/engine/site/core/Plugins.inc.php (line 69)
[4]: call_user_func_array /home/web/culture.site96.ru/www/engine/site/core/Plugins.inc.php (line 167)
[5]: Heritages::document (line )
[6]: Plugins::forceLaunch /home/web/culture.site96.ru/www/site/plugins/Heritages/classess/Heritages.inc.php (line 153)
[7]: Plugins::launchPlugin /home/web/culture.site96.ru/www/engine/site/core/Plugins.inc.php (line 192)
}
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 /home/web/culture.site96.ru/www/engine/site/Site.php (line 85)
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();
$this->components('start');
[2]: Plugins::launch /home/web/culture.site96.ru/www/engine/site/Site.php (line 209)
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')) {
if ($this->mobile) {$page_template = str_replace('.tpl', '_mobile.tpl', $page_template);}
$html = View::get()->parseTemplateUnit($page_template);
} else {
$html = '';
}
if(!SystemOptions::get('oversite_disabled', false)) {
[3]: Plugins::launchPlugin /home/web/culture.site96.ru/www/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 /home/web/culture.site96.ru/www/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]: Heritages::document (line )
[6]: Plugins::forceLaunch /home/web/culture.site96.ru/www/site/plugins/Heritages/classess/Heritages.inc.php (line 153)
} else {
$header = View::get()->parseTemplateUnit('headerItem.tpl', array('item' => $doc));
View::get()->stack('headerContent', $header);
View::get()->stack('hideNaviPage', 1);
$doc['others'] = $this->getOthers($doc);
Plugins::getInstance()->forceLaunch('Articles', 'Heritage');
Plugins::getInstance()->forceLaunch('News', 'Heritage');
$doc['content'] = Plugins::getInstance()->launchInlinePlugins($doc['content'], Site::getSelf() -> getId());
View::get()->setPluginDirectory('Heritages');
View::get()->setContentFromFile('did.tpl', array('item' => $doc, 'tags' => $tags));
}
}
public function Person(){
$docObj = new DocumentList('heritage', false);
$docObj->setConditions(array('author' => Site::getSelf()->getDocumentId()));
[7]: Plugins::launchPlugin /home/web/culture.site96.ru/www/engine/site/core/Plugins.inc.php (line 192)
*
* @param unknown_type $key
* @param unknown_type $command
* @return unknown
*/
public function forceLaunch($key, $action = null, $actionParameters = array()) {
$currentTemplateDir = View::get()->getDirectory();
$plugin = PluginDetector::getPlugin($key);
$pluginObject = $this->launchPlugin($plugin, $action, true, $actionParameters);
View::get()->setDirectory($currentTemplateDir);
return $pluginObject;
}
public function isPluginExists($plugin_key) {
$has = false;
foreach ($this->_plugins as $plugin) {
if ($plugin['key'] === $plugin_key) {
$has = true;
Попробуйте обновить страницу, или перейти на главную страницу сайта
Система управления сайтом WiseCMS