PHP Fatal error: Uncaught exception 'InvalidArgumentException'
-
[08-Mar-2016 03:32:17 UTC] PHP Fatal error: Uncaught exception ‘InvalidArgumentException’ with message ‘The value “1.0.0.196,41.196.197.115” is not a valid IP address.’ in /wp-content/plugins/geoip-detect/vendor/maxmind-db/reader/src/MaxMind/Db/Reader.php:100
Stack trace:
#0 /wp-content/plugins/geoip-detect/vendor/geoip2/geoip2/src/Database/Reader.php(203): MaxMind\Db\Reader->get(‘1.0.0.196,41.19…’)
#1 /wp-content/plugins/geoip-detect/vendor/geoip2/geoip2/src/Database/Reader.php(176): GeoIp2\Database\Reader->getRecord(‘Country’, ‘Country’, ‘1.0.0.196,41.19…’)
#2 /wp-content/plugins/geoip-detect/vendor/geoip2/geoip2/src/Database/Reader.php(87): GeoIp2\Database\Reader->modelFor(‘Country’, ‘Country’, ‘1.0.0.196,41.19…’)
#3 /wp-content/plugins/geoip-detect/geoip-detect-lib.php(144): GeoIp2\Database\Reader->country(‘1.0.0.196,41.19…’)
#4 /wp-content/plugins/geoip-detect/api.php(50): _geoip_detect in /wp-content/plugins/geoip-detect/vendor/maxmind-db/reader/src/MaxMind/Db/Reader.php on line 100
………………
I use this function to get the IP
$record = geoip_detect2_get_info_from_ip( $_SERVER[‘REMOTE_ADDR’], NULL);
it seems that it sends two ip addresses in each request
- The topic ‘PHP Fatal error: Uncaught exception 'InvalidArgumentException'’ is closed to new replies.