When you add an exclusion to the list it only effects new entries in the database, so the old ones will still appear.
Thread Starter
tmudde
(@tmudde)
I waited until the new day to see the effects, but I still have entries from RU. Lots of them. Any ideas anybody?
Thread Starter
tmudde
(@tmudde)
as a workaround I now use a list of included countries, but this does not solve the initial problem though.
I’ve double checked the code and I can’t see any reason they wouldn’t be excluded, can you send me a screen shot of your excluded countries list? (you can submit it to me through the contact form on wp-statistics.com)
Thanks for the screen shot, it’s a bug in the code that splits the list of countries to exclude/include.
It will be fixed in the next release. If you want to make the fix yourself, edit wordpress/wp-content/plugins/wp-statistics/includes/classes/hits.geoip.class.php, line 51-52 should currently be:
$excluded_countries = explode( "\n", strtoupper( $this->get_option('excluded_countries') ) );
$included_countries_string = trim( strtoupper( $this->get_option('included_countries') ) );
replace them with:
$excluded_countries = explode( "\n", strtoupper( str_replace( "\r\n", "\n", $this->get_option('excluded_countries') ) ) );
$included_countries_string = trim( strtoupper( str_replace( "\r\n", "\n", $this->get_option('included_countries') ) ) );
Thread Starter
tmudde
(@tmudde)
I fixed it and it seems to be OK now. Thanks Greg