S
S
SLaMeeR2017-03-22 17:26:19
PHP
SLaMeeR, 2017-03-22 17:26:19

What is the "Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed" error?

When I try to log in via VK, the following error is displayed /

Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: No address associated with hostname in /var/www/html/app/controllers/AuthController.php on line 16

Warning: file_get_contents(http://ulogin.ru/token.php?token=ТУТ ТОКЕН&host=МОЙ САЙТ): failed to open stream: php_network_getaddresses: getaddrinfo failed: No address associated with hostname in /var/www/html/app/controllers/AuthController.php on line 16
Exception: Syntax error, unexpected token LIMIT, near to ' :APL0:', when parsing: SELECT [Users].* FROM [Users] WHERE uid = LIMIT :APL0: (55)

Line 16
$request = file_get_contents('http://ulogin.ru/token.php?token=' . $_POST['token'] . '&host=' . $_SERVER['HTTP_HOST']);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Max, 2017-03-22
@SLaMeeR

perhaps apache started before the network on the server was up. try restarting apache

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question