( ! ) Fatal error: Uncaught PDOException: PDO::__construct(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /web/onko29.ru/www/app/db.php:8
Stack trace:
#0 /web/onko29.ru/www/app/db.php(8): PDO->__construct('mysql:host=mysq...', 'root', '12344', Array)
#1 /web/onko29.ru/www/app/models/BaseModel.php(46): Db::getConnection()
#2 /web/onko29.ru/www/app/models/News.php(11): BaseModel::getTblValueById('t_news', '347')
#3 /web/onko29.ru/www/app/controllers/NewsController.php(16): News::getNewsItemById('347')
#4 /web/onko29.ru/www/app/router.php(55): NewsController->actionView('347')
#5 /web/onko29.ru/www/index.php(17): Router->run()
#6 {main}
Next PDOException: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known in /web/onko29.ru/www/app/db.php on line 8 |
( ! ) PDOException: PDO::__construct(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /web/onko29.ru/www/app/db.php on line 8 |
Call Stack |
# | Time | Memory | Function | Location |
1 | 0.0000 | 359768 | {main}( ) | .../index.php:0 |
2 | 0.0004 | 505448 | Router->run( ) | .../index.php:17 |
3 | 0.0005 | 507448 | NewsController->actionView( ) | .../router.php:55 |
4 | 0.0005 | 507448 | News::getNewsItemById( ) | .../NewsController.php:16 |
5 | 0.0005 | 507448 | BaseModel::getTblValueById( ) | .../News.php:11 |
6 | 0.0005 | 507448 | Db::getConnection( ) | .../BaseModel.php:46 |
7 | 0.0005 | 508576 | __construct
( ) | .../db.php:8 |