does this plugin work with page caching?
]]>Hi,
When trying to activate the plugin I get this errpr
Fatal error: Cannot redeclare geoip_country_code_by_name() in ……/wp-content/plugins/visitor-country/geoip.inc on line 452
Deactivated all other plugins to ensure that nothing caused this issue, still getting the same error. Using WP 4.1 new install.
Any idea how to resolve this?
]]>I’m getting this error on each and every page (with WP_DEBUG set to true):
Strict Standards: Redefining already defined constructor for class VisitorCountry in /home/tours/public_html/wp-content/plugins/visitor-country/visitor-country.php on line 45
Can you please fix this?
]]>Does the plugin queries the database each and every single time the users changes page on WordPress or it does it only on the first pageview and then stores it in a session or something?
I’m asking this for performance proposes.
]]>Hey there,
Are you going to continue support for this plugin? It seems to have an outdated GeoIP.dat file and needs to be updated.
Take care,
Alex
I get the PHP error:
Strict standards: Redefining already defined constructor for class VisitorCountry in /wp-content/plugins/visitor-country/visitor-country.php on line 45
This can be fixed by making sure the PHP5 __construct() method is before the PHP4 VisitorCountry() method (i.e. swap the order of the methods round in the code).
https://www.ads-software.com/extend/plugins/visitor-country/
]]>We ran into an issue with one of our servers. We believe in your LoadVisitorData() function, the $_SERVER variable ‘HTTP_X_FORWARD_FOR’ should be ‘HTTP_X_FORWARDED_FOR’ ?
Also, some servers will use HTTP_CLIENT_IP. And some configurations will return a list of IP addresses. One of our senior developers submitted this snippet, which would solve all these problems;
// Get the visitor IP
$ip=$_SERVER['REMOTE_ADDR'];
if (!empty($_SERVER['HTTP_CLIENT_IP'])) { // check ip from share internet
$ip=$_SERVER['HTTP_CLIENT_IP'];
} elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { // to check ip is pass from proxy
$ip=$_SERVER['HTTP_X_FORWARDED_FOR'];
}
$ips = explode(",", $ip);
$this->mIP=$ips[0];
Please can this or similar be incorporated in your next release?
Many thanks!
https://www.ads-software.com/extend/plugins/visitor-country/
]]>