: file_get_contents(): php_network_getaddresses: getaddrinfo for ip-api.com failed: No address associated with hostname [in
Code
{
$clientID=unserialize(file_get_contents("http://ip-api.com/php/".$clientIP));
return $clientID;
/var/www/mapa.conflictosmineros.net/ocmal_db-v2/src/Controller/AppController.php /var/www/mapa.conflictosmineros.net/ocmal_db-v2/src/Controller/AppController.php, line 239
App\Controller\AppController->App\Controller\{closure}() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Cache/Cache.php, line 591
Cake\Cache\Cache::remember() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/src/Controller/AppController.php, line 237
App\Controller\AppController->getClientIPInfo() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/src/Controller/AppController.php, line 255
App\Controller\AppController->isBlockedClientIP() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/src/Controller/AppController.php, line 98
App\Controller\AppController->initialize() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/src/Controller/DocumentoController.php, line 22
App\Controller\DocumentoController->initialize() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Controller/Controller.php, line 242
Cake\Controller\Controller->__construct() [internal], line ??
ReflectionClass->newInstance() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 88
Cake\Controller\ControllerFactory->create() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/BaseApplication.php, line 320
Cake\Http\BaseApplication->handle() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Runner.php, line 86
Cake\Http\Runner->handle() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Middleware/CsrfProtectionMiddleware.php, line 166
Cake\Http\Middleware\CsrfProtectionMiddleware->process() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Middleware/BodyParserMiddleware.php, line 157
Cake\Http\Middleware\BodyParserMiddleware->process() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Routing/Middleware/RoutingMiddleware.php, line 189
Cake\Routing\Middleware\RoutingMiddleware->process() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Routing/Middleware/AssetMiddleware.php, line 68
Cake\Routing\Middleware\AssetMiddleware->process() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Error/Middleware/ErrorHandlerMiddleware.php, line 149
Cake\Error\Middleware\ErrorHandlerMiddleware->process() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Runner.php, line 67
Cake\Http\Runner->run() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/vendor/cakephp/cakephp/src/Http/Server.php, line 99
Cake\Http\Server->run() /var/www/mapa.conflictosmineros.net/ocmal_db-v2/webroot/index.php, line 37
[main]