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/vendor/acidjazz/tryg/src/tryg/Listing.php(35): tryg\Model::__callStatic('find', Array) #4 /var/www/html/vendor/acidjazz/tryg/src/tryg/Listing.php(35): mdl\Category::find(Array) #5 /var/www/html/ctl/Browse.php(31): tryg\Listing->get(Array, Array, 500) #6 [internal function]: ctl\Browse->__call('k:Gaiman_v:list', Array) #7 [internal function]: ctl\Browse->k:Gaiman_v:list() #8 /var/www/html/vendor/acidjazz/tryg/src/tryg/Controller.php(35): call_user_func_array(Array, Array) #9 /var/www/html/pub/index. 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/vendor/acidjazz/tryg/src/tryg/Listing.php(35): tryg\Model::__callStatic('find', Array) #4 /var/www/html/vendor/acidjazz/tryg/src/tryg/Listing.php(35): mdl\Category::find(Array) #5 /var/www/html/ctl/Browse.php(31): tryg\Listing->get(Array, Array, 500) #6 [internal function]: ctl\Browse->__call('k:Gaiman_v:list', Array) #7 [internal function]: ctl\Browse->k:Gaiman_v:list() #8 /var/www/html/vendor/acidjazz/tryg/src/tryg/Controller.php(35): call_user_func_array(Array, Array) #9 /var/www/html/pub/index.
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;