Ошибка
Пожалуйста, сообщите об этом разработчику
Пожалуйста, сообщите об этом разработчику
Ошибка
Не удалось определить `referer`
Показать системную информацию
backtrace:
[0]: Site::__construct /var/www/admin/data/www/exp-guar.zubr.ru/index.php (line 34)
[1]: Site::components /var/www/admin/data/www/exp-guar.zubr.ru/site/Site.inc.php (line 72)
[2]: componentsLayer::proccess /var/www/admin/data/www/exp-guar.zubr.ru/site/Site.inc.php (line 239)
[3]: Master::getInstance /var/www/admin/data/www/exp-guar.zubr.ru/site/componentsLayer.inc.php (line 157)
[4]: Master::__construct /var/www/admin/data/www/exp-guar.zubr.ru/site/components/Master/Master.inc.php (line 23)
[5]: Master::process /var/www/admin/data/www/exp-guar.zubr.ru/site/components/Master/Master.inc.php (line 13)
[6]: Master::detectHost /var/www/admin/data/www/exp-guar.zubr.ru/site/components/Master/Master.inc.php (line 78)
[7]: Site::fatalError /var/www/admin/data/www/exp-guar.zubr.ru/site/components/Master/Master.inc.php (line 97)
$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::components /var/www/admin/data/www/exp-guar.zubr.ru/site/Site.inc.php (line 72)
public function __construct($fullInit = true) {
$this->init($fullInit);
if(!$fullInit) {
return ;
}
try {
$this->components('start');
$this->launchPlugins();
$this->components('end');
if($this->getOption('wrapper')) {
$this->dump();
}
} catch (Exception404 $e) {
$this->error404();
} catch (Exception $e) {
[2]: componentsLayer::proccess /var/www/admin/data/www/exp-guar.zubr.ru/site/Site.inc.php (line 239)
*/
public static function getSelf() {
return self::$self;
}
private function components($stage) {
if(!$this->componentsLayer) {
$this->componentsLayer = new componentsLayer();
}
$this->componentsLayer -> proccess($stage);
}
private function launchPlugins() {
$this->plugins = new PluginLauncher;
if($this->urlParser->isHavePluginAction()) {
$plugin_key = $this->urlParser->getPluginKeyByAction();
if(!$this->plugins->isPluginExists($plugin_key)) {
throw new Exception404;
}
}
$this->plugins->doit();
[3]: Master::getInstance /var/www/admin/data/www/exp-guar.zubr.ru/site/componentsLayer.inc.php (line 157)
if ($this->getOption('show_text')) {
Component::factory('Text')->attachText();
}
}
public function proccess($stage) {
// init host conditions control
Master::getInstance();
switch ($stage) {
case 'start':
if ($this->getOption('multi_lang')) {
$this->_initLanguage();
}
$this->buildInterface();
$this->errorOnSite();
break;
[4]: Master::__construct /var/www/admin/data/www/exp-guar.zubr.ru/site/components/Master/Master.inc.php (line 23)
}
/**
* @static
* @return Master
*/
public static function getInstance() {
if (is_null(self::$instance)) {
self::$instance = new Master();
}
return self::$instance;
}
/**
* @return string
*/
public function getSiteName() {
return $this->name;
}
[5]: Master::process /var/www/admin/data/www/exp-guar.zubr.ru/site/components/Master/Master.inc.php (line 13)
protected static $instance;
protected $host;
protected $name;
protected $refererUrl;
protected $catalogId;
protected function __construct() {
$this->process();
}
/**
* @static
* @return Master
*/
public static function getInstance() {
if (is_null(self::$instance)) {
self::$instance = new Master();
}
[6]: Master::detectHost /var/www/admin/data/www/exp-guar.zubr.ru/site/components/Master/Master.inc.php (line 78)
public function getSenderEmail() {
$name = SimpleSQL::getCell('fdata_site_catalog', 'sender_email', array('id' => $this->getCatalogId()));
return $name;
}
protected function process() {
$this->refererUrl = Forms::REQUEST('host');
$this->host = $this->detectHost($this->refererUrl);
$this->catalogId = $this->detectCatalogId($this->host);
$this->name = $this->detectSiteName($this->getCatalogId());
Site::getSelf()->stack('master', $this);
}
protected function detectSiteName($catalogId) {
$name = SimpleSQL::getCell('fdata_site_catalog', 'name', array('id' => $catalogId));
return $name;
}
[7]: Site::fatalError /var/www/admin/data/www/exp-guar.zubr.ru/site/components/Master/Master.inc.php (line 97)
}
protected function detectHost($referer) {
$info = parse_url($referer);
$host = $info['host'];
if (!$host) {
Site::getSelf()->fatalError('Не удалось определить `referer`');
}
return $host;
}
public function getRefererURL() {
return $this->refererUrl;
}
protected function detectCatalogId($host) {
$catalogId = (int) SimpleSQL::getCell('ddata_site_address', 'parent', array('host' => $host));
Попробуйте обновить страницу, или перейти на главную страницу сайта
Система управления сайтом WiseCMS