• Resolved ikovac84

    (@ikovac84)


    Need help.
    I need geotargeting for popups, but when I install it it crash my page with this message

    Fatal error: Uncaught exception ‘GeoIp2\Exception\AddressNotFoundException’ with message ‘The address 127.0.0.1 is not in the database.’ in C:\Users\Bojana\Documents\Websites\www.example.dev\wp-content\plugins\geotargeting\vendor\geoip2\geoip2\src\GeoIp2\Database\Reader.php on line 205

    GeoIp2\Exception\AddressNotFoundException: The address 127.0.0.1 is not in the database. in C:\Users\Bojana\Documents\Websites\www.example.dev\wp-content\plugins\geotargeting\vendor\geoip2\geoip2\src\GeoIp2\Database\Reader.php on line 205

    I try it on localhost but it is the same when I try it on other host.
    What to do?
    Thanks

    https://www.ads-software.com/plugins/geotargeting/

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Damian

    (@timersys)

    What php version do you have?

    Thread Starter ikovac84

    (@ikovac84)

    php version 5.5.24

    Plugin Author Damian

    (@timersys)

    Yup it’s something I fixed in the premium but haven’t yet in the free version. As soon as I got Time I will do it.

    In the mean time you can filter the IP and add a real IP.

    https://gist.github.com/timersys/084f14fb980de98ffba1

    Plugin Author Damian

    (@timersys)

    Which version of geotargeting you are using??

    Plugin Author Damian

    (@timersys)

    Nevermind I foudn the issue. It was implemented in the free version, but in a wrong way :S Will release an update soon

    Xaroxantu

    (@xaroxantu)

    This is not solved. I’m still getting this kind of error on IE every now and then. I have to disable and re-enable the plugin for it to work temporarily before it screws up again.

    Warning: inet_pton(): Unrecognized address 2001:56a:74a3:d800:f097:e1b3:e33:5319 in /home/patronsc/public_html/wp-content/plugins/geotargeting/vendor/maxmind-db/reader/src/MaxMind/Db/Reader.php on line 121

    Fatal error: Uncaught exception ‘MaxMind\Db\Reader\InvalidDatabaseException’ with message ‘Something bad happened’ in /home/patronsc/public_html/wp-content/plugins/geotargeting/vendor/maxmind-db/reader/src/MaxMind/Db/Reader.php:145 Stack trace: #0 /home/patronsc/public_html/wp-content/plugins/geotargeting/vendor/maxmind-db/reader/src/MaxMind/Db/Reader.php(111): MaxMind\Db\Reader->findAddressInTree(‘2001:56a:74a3:d…’) #1 /home/patronsc/public_html/wp-content/plugins/geotargeting/vendor/geoip2/geoip2/src/GeoIp2/Database/Reader.php(203): MaxMind\Db\Reader->get(‘2001:56a:74a3:d…’) #2 /home/patronsc/public_html/wp-content/plugins/geotargeting/vendor/geoip2/geoip2/src/GeoIp2/Database/Reader.php(176): GeoIp2\Database\Reader->getRecord(‘Country’, ‘Country’, ‘2001:56a:74a3:d…’) #3 /home/patronsc/public_html/wp-content/plugins/geotargeting/vendor/geoip2/geoip2/src/GeoIp2/Database/Reader.php(87): GeoIp2\Database\Reader->modelFor(‘Country’, ‘Country’, ‘2001:56a:74a3:d…’) #4 /home/patronsc/public_html/wp-content/plugins/geotar in /home/patronsc/public_html/wp-content/plugins/geotargeting/vendor/maxmind-db/reader/src/MaxMind/Db/Reader.php on line 145

    Plugin Author Damian

    (@timersys)

    Actually that’s a different error. But don’t worry Im about to launch a new version with the fix and also updated ip database

    Regards

    Xaroxantu

    (@xaroxantu)

    I’m getting this now:

    Warning: inet_pton(): Unrecognized address 2a03:2880:1010:6ffa:face:b00c:0:8000 in /home/patronsc/public_html/wp-content/plugins/geotargeting/vendor/maxmind-db/reader/src/MaxMind/Db/Reader.php on line 121

    Plugin Author Damian

    (@timersys)

    local development? php version?

    No, it’s live on a server. PHP version 5.6.14

    Any updates on this? I’m still getting this weird error:
    Warning: inet_pton(): Unrecognized address 2601:204:c600:dded:c88a:5d31:df15:a1f6 in /home/patronsc/public_html/wp-content/plugins/geotargeting/vendor/maxmind-db/reader/src/MaxMind/Db/Reader.php on line 121

    Plugin Author Damian

    (@timersys)

    Could you check if your php version is compiled with ipv6 support?
    Checking this: https://stackoverflow.com/questions/22715720/inet-pton-warning-on-ipv6-addresses-error-in-my-code-or-server-config

    I would say to add somewere in your site :

    if (defined('AF_INET6')) {
      echo "PHP was compiled without --disable-ipv6 option";
    } else {
      echo "PHP was compiled with --disable-ipv6 option";
    }

    It seems that my hosting account doesn’t have IPV6 support. Is there a way around it so that IPV6 is not required to use your plugin?

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Fatal Error’ is closed to new replies.