Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
1) DataBaseConnection->query/framework/system/orm/ormquery.class.inc : 152
147| {
148| $profile = Profiler::start(__CLASS__, __FUNCTION__);
149| if ($this->connection == null) {
150| $this->connection = ConnectionManager::getConnection();
151| }
152| $res = $this->connection->query($this->query, $this->getQueryParams());
153| Profiler::stop($profile);
154| return $res;
155| }
156|
157| /**
2) ORMQuery->execute/framework/system/orm/querybuilder/ormquerybuilder.class.inc : 559
554| protected function execute()
555| {
556| $this->query = $this->toSQL();
557| $this->params = $this->getQueryParams();
558|
559| return parent::execute();
560| }
561|
562| /**
563| * ÐовеÑÑÐ°Ñ Ð¼Ð°Ñив ÑезÑлÑÑаÑÑв вибÑÑки
564| *
3) ORMQueryBuilder->execute/framework/system/orm/ormquery.class.inc : 213
208| $res = $this->fillClass($cached, $baseClass);
209| return $res;
210| }
211| $profile = Profiler::start(__CLASS__, __FUNCTION__);
212|
213| $res = $this->execute();
214| $itm = $res->fetch(PDO::FETCH_ASSOC);
215| $result = null;
216| if ($itm !== false) {
217| $result = $this->fillClass($itm, $baseClass);
218| }
4) ORMQuery->fetch/framework/system/orm/querybuilder/ormquerybuilder.class.inc : 590
585| * @return mixed
586| */
587| public function fetch($baseClass = null)
588| {
589| if ($baseClass != null) {
590| return parent::fetch($baseClass);
591| }
592| if ($this->fetchType == null) {
593| throw new Exception('Unknown fetch type');
594| }
595| return parent::fetch($this->fetchType);
5) ORMQueryBuilder->fetch/framework/system/orm/ormrecord.class.inc : 91
86| $field = self::getAutoIncrementColumn($className);
87| $q = ORM::select($className . ' f')
88| ->andWhere('f.'.$field->Name.' = ?', $id)
89| ->limit(1);
90|
91| return $q->fetch($className);
92| }
93|
94| /**
95| * ÐовеÑÑÐ°Ñ Ð¾Ð±ÑÐºÑ Ð· ÐРпо маÑÐ¸Ð²Ñ Ð¿Ð°ÑамеÑÑÑв
96| *
6) ORMRecord::getById/framework/cms/models/baseclasses/basecmssites.class.inc : 54
49| $this->addRelation('Widgets', new ORMRelationOne2Many('CmsWidgetsConfig', 'id', 'site_id'));
50| }
51|
52| public function getById($id)
53| {
54| return parent::getById($id, self::MODEL_NAME);
55| }
56|
57| public function getByParams($params, $type = ORMRecord::ONE_RECORD, $limit = null)
58| {
59| return parent::getByParams($params, $type, $limit, self::MODEL_NAME);
7) BaseCmsSites::getById/framework/cms/Bazalt.php : 94
89| if (substr(strToLower($domain), 0, 4) == 'www.') {
90| $domain = substr($domain, 4);
91| }
92|
93| if (!defined('ENABLE_MULTISITING') || !ENABLE_MULTISITING) {
94| $site = CmsSites::getById(1);
95| if (!$site) {
96| $site = new CmsSites();
97| }
98| if (!CLI_MODE) {
99| $site->domain = $domain;
8) CMS_Bazalt::detectSite/framework/cms/Bazalt.php : 123
118| Logger::checkPoint(__CLASS__ . '::' . __FUNCTION__ . ' begin');
119|
120| require_once dirname(__FILE__) . '/models/baseclasses/baserecord.class.inc';
121| DataModelManager::add(new DataModel(dirname(__FILE__) . '/models'), 'CMS');
122|
123| self::detectSite();
124| Logger::checkPoint(__CLASS__ . '::' . __FUNCTION__ . ' end');
125| }
126|
127| /**
128| * Ïîâåðòຠøëÿõ äî ôàéëó â³äæåòó
9) CMS_Bazalt::init/framework/cms/Application.php : 37
32|
33| Logger::checkPoint(__CLASS__ . '::' . __FUNCTION__ . ' loadWebConfig');
34| $this->loadWebConfig();
35|
36| Logger::checkPoint(__CLASS__ . '::' . __FUNCTION__ . ' CMS_Bazalt::init');
37| CMS_Bazalt::init();
38|
39| Logger::checkPoint(__CLASS__ . '::' . __FUNCTION__ . ' initView');
40| $this->initView();
41|
42| $this->user = User::getUser();
10) CMS_Application->__construct/apps/site/App.php : 10
5| class Site_App extends CMS_Application
6| {
7| protected function __construct()
8| {
9| try {
10| parent::__construct();
11| } catch (CMS_Exception_DomainNotFound $ex) {
12| $this->view = new CMS_View(array(
13| 'SiteApp' => APPLICATION_DIR . '/templates',
14| CMS_Theme::getThemeTemplatePath()
15| ));
11) Site_App->__construct/framework/core/Object.php : 119
114|
115| $lowerName = strToLower($className);
116| if (!isset(self::$_objects[$lowerName]) || !is_object(self::$_objects[$lowerName])) {
117| Logger::getInstance()->info('Create singleton for ' . $className);
118|
119| $class = new $className();
120|
121| if (!$class instanceOf ISingleton) {
122| throw new Exception_Interface('ISingleton', $className);
123| }
124| if ($class instanceOf Object) {
12) Object::getInstance/framework/core/Object.php : 96
91| * @return object
92| */
93| public static function &Singleton()
94| {
95| $className = (func_num_args() > 0) ? func_get_arg(0) : getCalledClass();
96| return self::getInstance($className);
97| }
98|
99| /**
100| * РеалÑзÑÑ ÑÑаÑиÑнÑÑÑÑ ÐºÐ»Ð°ÑÑ Ð² ÑиÑÑемÑ.
101| * ÐÐ°Ð´Ð°Ñ Ð¼Ð¾Ð¶Ð»Ð¸Ð²ÑÑÑÑ ÑникнÑÑи глобалÑÐ½Ð¸Ñ Ð·Ð¼ÑÐ½Ð½Ð¸Ñ PHP.
13) Object::Singleton/main.inc : 59
54| $appClass = APPLICATION_NAME . '_App';
55| if (!class_exists($appClass)) {
56| throw new Exception('Class "' . $appClass . '" not found');
57| }
58| // init application
59| $app = Object::Singleton($appClass);
60| if (!($app instanceof CMS_Application)) {
61| throw new Exception('Class "' . $appClass . '" must be instance of CMS_Application');
62| }
63|
64| $app->start();
14) require_once/public/index.php : 8
3|
4| define('DEBUG', false);
5| define('APPLICATION_NAME', 'Site');
6| //define('WIDGET_BORDER_AROUND', true);
7|
8| require_once '../main.inc';
9| //echo $_SERVER['REQUEST_URI'];
10| echo $_SESSION['language'];
11| echo '
12| <script language="javascript" type="text/javascript">
13| function popUp($id)