SIB-Colombia / rnc_app

National Colection Register
1 stars 3 forks source link

Error when refusing a new user request #72

Closed jdmartinez89 closed 7 years ago

jdmartinez89 commented 8 years ago

PHP warning

fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known

/var/www/html/admin/protected/extensions/yii-mail/vendors/swiftMailer/classes/Swift/Transport/StreamBuffer.php(236)

224 private function _establishSocketConnection() 225 { 226 $host = $this->_params['host']; 227 if (!empty($this->_params['protocol'])) 228 { 229 $host = $this->_params['protocol'] . '://' . $host; 230 } 231 $timeout = 15; 232 if (!empty($this->_params['timeout'])) 233 { 234 $timeout = $this->_params['timeout']; 235 } 236 if (!$this->_stream = fsockopen($host, $this->_params['port'], $errno, $errstr, $timeout)) 237 { 238 throw new Swift_TransportException( 239 'Connection could not be established with host ' . $this->_params['host'] . 240 ' [' . $errstr . ' #' . $errno . ']' 241 ); 242 } 243 if (!empty($this->_params['blocking'])) 244 { 245 stream_set_blocking($this->_stream, 1); 246 } 247 else 248 { Stack Trace

0

– /var/www/html/admin/protected/extensions/yii-mail/vendors/swiftMailer/classes/Swift/Transport/StreamBuffer.php(236): fsockopen("ssl://smtp.gmail.com", 465, 0, "", ...) 231 $timeout = 15; 232 if (!empty($this->_params['timeout'])) 233 { 234 $timeout = $this->_params['timeout']; 235 } 236 if (!$this->_stream = fsockopen($host, $this->_params['port'], $errno, $errstr, $timeout)) 237 { 238 throw new Swift_TransportException( 239 'Connection could not be established with host ' . $this->_params['host'] . 240 ' [' . $errstr . ' #' . $errno . ']' 241 );

1

– /var/www/html/admin/protected/extensions/yii-mail/vendors/swiftMailer/classes/Swift/Transport/StreamBuffer.php(73): Swift_Transport_StreamBuffer->_establishSocketConnection() 68 case self::TYPE_PROCESS: 69 $this->_establishProcessConnection(); 70 break; 71 case self::TYPE_SOCKET: 72 default: 73 $this->_establishSocketConnection(); 74 break; 75 } 76 } 77
78 /**

2

– /var/www/html/admin/protected/extensions/yii-mail/vendors/swiftMailer/classes/Swift/Transport/AbstractSmtpTransport.php(101): Swift_Transport_StreamBuffer->initialize(array("protocol" => "ssl", "host" => "smtp.gmail.com", "port" => 465, "timeout" => 30, ...)) 096 } 097 } 098
099 try 100 { 101 $this->_buffer->initialize($this->_getBufferParams()); 102 } 103 catch (Swift_TransportException $e) 104 { 105 $this->_throwException($e); 106 }

3

jag2kn commented 7 years ago

En el momento de este error faltaba realizar la configuración del servidor para el parámetro hostname

php_network_getaddresses: getaddrinfo failed: Name or service not know

Ya fue solucionado previamente

jag2kn commented 7 years ago

Revisado

AngelaCelis commented 7 years ago

Solved by Lumon.