Fatal error: Uncaught exception 'MongoConnectionException' with message 'MongoClient::__construct(): php_network_getaddresses: getaddrinfo failed: Name or service not known' in /var/www/html/vendor/acidjazz/tryg/src/tryg/Model.php:95 Stack trace: #0 /var/www/html/vendor/acidjazz/tryg/src/tryg/Model.php(95): MongoClient->__construct('mongodb://db.by...') #1 /var/www/html/vendor/acidjazz/tryg/src/tryg/Model.php(116): tryg\Model::db() #2 /var/www/html/vendor/acidjazz/tryg/src/tryg/Model.php(176): tryg\Model::col() #3 /var/www/html/ctl/V.php(15): tryg\Model::__callStatic('findOne', Array) #4 /var/www/html/ctl/V.php(15): mdl\Item::findOne(Array) #5 [internal function]: ctl\V->__call('Ana+%7C+Sister+...', Array) #6 [internal function]: ctl\V->Ana+%7C+Sister+Story('kO4BFc9TK-E') #7 /var/www/html/vendor/acidjazz/tryg/src/tryg/Controller.php(35): call_user_func_array(Array, Array) #8 /var/www/html/pub/index.php(18): tryg\Controller->start() #9 {main} Next exception 'MongoConnectionException' with message 'Failed to connect to: db in /var/www/html/vendor/acidjazz/tryg/src/tryg/Model.php on line 95
tryg::Debug errors (1)
Error
Uncaught exception 'MongoConnectionException' with message 'MongoClient::__construct(): php_network_getaddresses: getaddrinfo failed: Name or service not known' in /var/www/html/vendor/acidjazz/tryg/src/tryg/Model.php:95 Stack trace: #0 /var/www/html/vendor/acidjazz/tryg/src/tryg/Model.php(95): MongoClient->__construct('mongodb://db.by...') #1 /var/www/html/vendor/acidjazz/tryg/src/tryg/Model.php(116): tryg\Model::db() #2 /var/www/html/vendor/acidjazz/tryg/src/tryg/Model.php(176): tryg\Model::col() #3 /var/www/html/ctl/V.php(15): tryg\Model::__callStatic('findOne', Array) #4 /var/www/html/ctl/V.php(15): mdl\Item::findOne(Array) #5 [internal function]: ctl\V->__call('Ana+%7C+Sister+...', Array) #6 [internal function]: ctl\V->Ana+%7C+Sister+Story('kO4BFc9TK-E') #7 /var/www/html/vendor/acidjazz/tryg/src/tryg/Controller.php(35): call_user_func_array(Array, Array) #8 /var/www/html/pub/index.php(18): tryg\Controller->start() #9 {main} Next exception 'MongoConnectionException' with message 'Failed to connect to: db
88
     if (!self::$_db) {
89
 
90
       $dbinfo self::getdb();
91
 
92
       if (isset($dbinfo['replicaSet'])) {
93
         $mongo = new \MongoClient($dbinfo['host'], array('replicaSet' => $dbinfo['replicaSet']));
94
       } else {
95
         $mongo = new \MongoClient($dbinfo['host']);
96
       }
97
 
98
       self::$_db $mongo->{$dbinfo['db']};
99
 
100
 
101
     }
102
 
103
     return self::$_db;