geoip_country_code_by_name compatibility
-
I’m seeing some errors in my PHP log that point to an incompatiblity with your version of
geoip_country_code_by_name()
versus the official version from the geoip PHP extension: https://php.net/manual/en/function.geoip-country-code-by-name.phpPHP Warning: Missing argument 2 for geoip_country_code_by_name(), called in /wp-content/plugins/edd-vat/includes/actions.php on line 532 and defined in /wp-content/plugins/wordfence/lib/wfGeoIP.php on line 448
It seems that both Wordfence and this other plugin (edd-vat) check for the existence of this function and create it when not present. However, your implementation differs from the official function (here) in that it takes completely different arguments, so when this other plugin calls this function and then uses yours, things go haywire.
I could enable the geoip extension to prevent either plugins from (re)creating this function, but I’m not sure if this will break anything in your plugin because your syntax will still be different to the official syntax… (regardless of whether I use that other plugin).
How should I best proceed?
Ewout
- The topic ‘geoip_country_code_by_name compatibility’ is closed to new replies.