PDOException Object
(
[message:protected] => SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
[string:Exception:private] =>
[code:protected] => 2002
[file:protected] => /home/poiskshi/public_html/libs/DB.php
[line:protected] => 39
[trace:Exception:private] => Array
(
[0] => Array
(
[file] => /home/poiskshi/public_html/libs/DB.php
[line] => 39
[function] => __construct
[class] => PDO
[type] => ->
[args] => Array
(
[0] => mysql:host=localhost;dbname=poiskshi_db
[1] => poiskshi_db
[2] => nR46CJCyJXZJ
[3] => Array
(
[19] => 2
)
)
)
[1] => Array
(
[file] => /home/poiskshi/public_html/libs/DB.php
[line] => 15
[function] => open
[class] => DB
[type] => ->
[args] => Array
(
[0] => localhost
[1] => poiskshi_db
[2] => nR46CJCyJXZJ
[3] => poiskshi_db
)
)
[2] => Array
(
[file] => /home/poiskshi/public_html/libs/DB.php
[line] => 21
[function] => __construct
[class] => DB
[type] => ->
[args] => Array
(
[0] => localhost
[1] => poiskshi_db
[2] => nR46CJCyJXZJ
[3] => poiskshi_db
)
)
[3] => Array
(
[file] => /home/poiskshi/public_html/libs/Environment.php
[line] => 133
[function] => getDB
[class] => DB
[type] => ::
[args] => Array
(
[0] => localhost
[1] => poiskshi_db
[2] => nR46CJCyJXZJ
[3] => poiskshi_db
[4] => local
)
)
[4] => Array
(
[file] => /home/poiskshi/public_html/libs/Environment.php
[line] => 106
[function] => getDB
[class] => Environment
[type] => ::
[args] => Array
(
)
)
[5] => Array
(
[file] => /home/poiskshi/public_html/libs/Builder.php
[line] => 24
[function] => getParseUrl
[class] => Environment
[type] => ::
[args] => Array
(
)
)
[6] => Array
(
[file] => /home/poiskshi/public_html/libs/Builder.php
[line] => 16
[function] => _parseUrl
[class] => Builder
[type] => ->
[args] => Array
(
)
)
[7] => Array
(
[file] => /home/poiskshi/public_html/index.php
[line] => 17
[function] => createStructure
[class] => Builder
[type] => ->
[args] => Array
(
)
)
)
[previous:Exception:private] =>
[errorInfo] =>
)
Fatal error: Call to a member function query() on null in /home/poiskshi/public_html/libs/DB.php on line 108