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(29): tryg\Model::col() #3 /var/www/html/ctl/Discuss.php(24): tryg\Model->__construct('PLEQgdsNx3CACAe...') #4 /var/www/html/ctl/Discuss.php(16): ctl\Discuss->details(Array) #5 [internal function]: ctl\Discuss->__call('verbal+bullying...', Array) #6 [internal function]: ctl\Discuss->verbal+bullying+es() #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 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(29): tryg\Model::col() #3 /var/www/html/ctl/Discuss.php(24): tryg\Model->__construct('PLEQgdsNx3CACAe...') #4 /var/www/html/ctl/Discuss.php(16): ctl\Discuss->details(Array) #5 [internal function]: ctl\Discuss->__call('verbal+bullying...', Array) #6 [internal function]: ctl\Discuss->verbal+bullying+es() #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
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;