[DatabaseException]
Description
Database connection failed
Stack Trace
13.
/var/www/tt-inf/data/www/tt.inf.ua/framework/components/database/MySQL.php (123) view- 120.
}
- 121.
- 122.
} catch (PhpException $e) {
- 123.
throw new DatabaseException("Database connection failed");
- 124.
}
- 125.
- 126.
//$this->query("SET TRANSACTION ISOLATION LEVEL READ COMMITTED"); //| READ COMMITED | READ UNCOMMITTED | REPEATABLE READ (default) |
12. MySQL->connect
/var/www/tt-inf/data/www/tt.inf.ua/framework/components/Database.php (284) view
- 281.
$oInstance = $this;
- 282.
}
- 283.
- 284.
return $oInstance->_databaseModule->connect();
- 285.
}
- 286.
- 287.
/**
11. Database->connect
/var/www/tt-inf/data/www/tt.inf.ua/framework/components/Database.php (204) view
- 201.
}
- 202.
- 203.
if (!$this->isConnected()) {
- 204.
$this->connect();
- 205.
}
- 206.
- 207.
$mResult = is_array($param)
10. Database->__call
/var/www/tt-inf/data/www/tt.inf.ua/framework/classes/ObjectList2.php (403) view
- 400.
$aRows = array();
- 401.
$aFieldsInfo = array();
- 402.
if (!$advanced) {
- 403.
$aRows = $this->_database->getAllArrays($this->getSelectQuery());
- 404.
} else {
- 405.
$hResult = $this->_database->query($this->getSelectQuery());
- 406.
if ($hResult) {
9. Database->getAllArrays
/var/www/tt-inf/data/www/tt.inf.ua/framework/classes/ObjectList2.php (403) view
- 400.
$aRows = array();
- 401.
$aFieldsInfo = array();
- 402.
if (!$advanced) {
- 403.
$aRows = $this->_database->getAllArrays($this->getSelectQuery());
- 404.
} else {
- 405.
$hResult = $this->_database->query($this->getSelectQuery());
- 406.
if ($hResult) {
8. ObjectList2->select
/var/www/tt-inf/data/www/tt.inf.ua/extends/DataObject2Split.php (129) view
- 126.
/**
- 127.
* Pull out the object
- 128.
*/
- 129.
->select();
- 130.
- 131.
$iQueryTime = time() - $iQueryTime;
- 132.
7. DataObject2Split->load
/var/www/tt-inf/data/www/tt.inf.ua/models/dataobjects/BlogPost.php (34) view
- 31.
);
- 32.
- 33.
public function load($values, $aTables = array()) {
- 34.
parent::load($values, $aTables);
- 35.
$this->tags = $this->getTagsArray();
- 36.
}
- 37.
6. BlogPost->load
/var/www/tt-inf/data/www/tt.inf.ua/extends/DataObject2Split.php (37) view
- 34.
$this->_cache = Cache::getInstance();
- 35.
- 36.
if (!empty ($values)) {
- 37.
$this->load($values, $aTables);
- 38.
}
- 39.
return $this;
- 40.
}
5. DataObject2Split->__construct
/var/www/tt-inf/data/www/tt.inf.ua/applications/public/blog/controller.php (100) view
- 97.
}
- 98.
- 99.
public function do_blogPost() {
- 100.
$this->oBlogPost = new BlogPost(array(BlogPost::SLUG => Request::get('slug')));
- 101.
if (!$this->oBlogPost->isLoaded() || $this->oBlogPost->status != BlogPost::STATUS_PUBLISHED) {
- 102.
throw new Http404PageNotFound();
- 103.
}
4. BlogPageController->do_blogPost
/var/www/tt-inf/data/www/tt.inf.ua/framework/classes/PageController.php (143) view
- 140.
(method_exists($this, $preMethodName)) AND $this->$preMethodName(Application::getInstance());
- 141.
- 142.
//execute action
- 143.
$result = $this->$methodName(Application::getInstance());
- 144.
- 145.
//executes postExecute method
- 146.
(method_exists($this, $postMethodName)) AND $this->$postMethodName(Application::getInstance());
3. PageController->execute
/var/www/tt-inf/data/www/tt.inf.ua/framework/classes/Application.php (146) view
- 143.
- 144.
// check access to controller and action
- 145.
if ($this->Module->Access->authorize($this->controller, $oPageController->getActionName())) {
- 146.
$oPageController->execute();
- 147.
} else {
- 148.
$oPageController->executeAuthorize();
- 149.
}
2. Application->execute
/var/www/tt-inf/data/www/tt.inf.ua/framework/classes/Application.php (106) view
- 103.
$this->language = Request::get('application_language', $this->language);
- 104.
- 105.
// execute Application
- 106.
$this->execute();
- 107.
- 108.
if (!empty(self::$ActionStack)) {
- 109.
end(self::$ActionStack);
1. Application->run
/var/www/tt-inf/data/www/tt.inf.ua/index.php (16) view
- 13.
- 14.
$nApplicationStartTime = microtime(1);
- 15.
$Application = Application::getInstance();
- 16.
$Application->run();
- 17.
$nApplicationStopTime = microtime(1);
- 18.
- 19.
echo '<!--Page generated in ' . round((float)($nApplicationStopTime - $nApplicationStartTime), 3) . ' seconds-->';