During the initial parsing of the MaxMind CSV, the Watchdog log fills up with many notices - "Notice: Trying to get property of non-object in smart_ip_update_database() (line 328 of .../sites/all/modules/smart_ip/includes/smart_ip.utility.inc)."
Actually, what is happening is that cache_get() on line 311 is failing to return an object from the cache and each reference to $location is throwing a "non-object" error. Because of this my Watchdog log ends up with millions of errors.
The CSV source from MaxMind that I am using is:
http://geolite.maxmind.com/download/geoip/database/GeoLiteCity_CSV/GeoLi...
I may be misreading this but why does cache_set() on line 242 use "$data[0]" when cache_get() on 311 use "$data[2]" when creating its cid?
I am using 2.0, the module datestamp = "1364269218"
Comments
Comment #1
arpeggio commentedHi, I have already fixed this issue. Please use dev version. Thank you for reporting this issue.
The cache_set() on line 242 use "$data[0]" targets the locId column of file GeoLiteCity-Location.csv:
...and cache_get() on 311 use "$data[2]" also targets the locId column of file GeoLiteCity-Blocks.csv:
Comment #2
jschrab commentedI am afraid I am still seeing seeing errors by the thousands...
...within the try/catch block. I am using the current May 20th dev version.
Comment #3
arpeggio commentedHi, I have added condition to check if the data object element is set:
Please use the dev version. Thank you.
Comment #4
jschrab commentedI'm not certain what is happening but now any updates lead to a TOTALLY empty smart_ip table.
Comment #5
arpeggio commentedSorry I missed to update the correct count of columns in "GeoLiteCity-Location.csv". Before:
Correct:
And I have already tested. Please use the dev version. Thanks.
Comment #6
jschrab commentedThis all does resolve the original issue. However, I think there still is 'smartip' table rebuilding problems (possibly memcache or cache_set/cache_get/cron related). I will launch another issue as soon as I can finish gathering details and properly express the problem I am seeing.