Fatal error: Call to undefined method MaxMind
-
Hello,
New version 4.1.0. is causing big problems all the way with this plugin… Codes that are inserted on the site like:
[geoip_detect2_show_if country=”FR”]Acheter[/geoip_detect2_show_if][geoip_detect2_show_if country=”DE”]Kaufen[/geoip_detect2_show_if][geoip_detect2_show_if not_country=”FR, DE”]Buy[/geoip_detect2_show_if]
Is causing fatal error on particular page:
`Fatal error: Uncaught Error: Call to undefined method MaxMind\Db\Reader::getWithPrefixLen() in …./wp-content/plugins/geoip-detect/vendor/geoip2/geoip2/src/Database/Reader.php:246 Stack trace: #0 …./wp-content/plugins/geoip-detect/vendor/geoip2/geoip2/src/Database/Reader.php(217): GeoIp2\Database\Reader->getRecord(‘Country’, ‘Country’, ‘….’) #1 …./wp-content/plugins/geoip-detect/vendor/geoip2/geoip2/src/Database/Reader.php(90): GeoIp2\Database\Reader->modelFor(‘Country’, ‘Country’, ‘….’) #2 …./wp-content/plugins/geoip-detect/geoip-detect-lib.php(194): GeoIp2\Database\Reader->country(‘172.68.226.127’) #3 …./wp-content/plugins/geoip-detect/api.php(83): _geoip_detect2_get_record_from_reader(Object(GeoIp2\Database\Reader), ‘172.68.226.127’, ”) #4 …./public_html/me in …./wp-content/plugins/geoip-detect/vendor/geoip2/geoip2/src/Database/Reader.php on line 246Why is this happening all the sudden? Can you assist me please how to fix this?
- The topic ‘Fatal error: Call to undefined method MaxMind’ is closed to new replies.