Closed (outdated)
Project:
IP to Country
Version:
6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Apr 2011 at 14:29 UTC
Updated:
18 Oct 2021 at 11:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
drupalina commentedsubscribing - I have the same issue: after the update of database it still says that it is more than 2 months old.
Comment #2
anavarreSubsribing
Comment #3
jamesoakleyJust to say: I've posted an issue in the queue for the project IP to Locale - WebHosting.info, because that module is the planned successor for the relevant part of this project, and so that module needs to handle this issue too.
See: #1290138: Only as good as its data feed
Comment #4
LuRcH@www.daihatsu-drivers.co.uk commentedI have only recently realised that the database is no longer updated. Wouldn't it be possible to update the module to recognise and use the database from http://software77.net/geo-ip/ instead?
Comment #5
LuRcH@www.daihatsu-drivers.co.uk commentedI have edited the module and updated everything I could find to now retrieve and use the database from Software77 as they appear to update theres almost on a daily basis.
Comment #6
jamesoakleyI've been working on using MaxMind's offering. They offer a free, "lite" version of their GeoIP database. The great thing is, that it can plug straight into PHP, so that there's no need for a custom module at all. The only downside is that it needs the web host to install the relevant PECL package, so that could be a problem with some shared hosts, but at least the data is current.
Does your update work? I guess it all depends on whether the other data source uses close enough the same format?
Comment #7
LuRcH@www.daihatsu-drivers.co.uk commentedIt can import the data from the .csv file from the new source. However have noticed that the new source has a commented out header which causes it to fail until you remove it in a text editor. I am working on seeing if can get ip2cc to skip it so it works without needing to touch the csv.
Comment #8
LuRcH@www.daihatsu-drivers.co.uk commentedHave managed to fix the issue with the header in the CSV from the new source. Have tested and have been able to use fetchdb and then the update database option within the admin area :)
Comment #9
mrfelton commentedI was going to apply this patch today, but the source at http://software77.net/geo-ip seems to be unavailable. I've been unable to contact hat host all day.
Comment #10
jamesoakleyNot available how? - the page loads fine for me, and it says that the DB is 3 hours old.
I have to qualify that by saying that I've not tested the patch to switch sources, so I can't confirm that it works - but the source's website is up from here.
Comment #11
mrfelton commentedNot available as in, it just times out. I can't make a connection to http://software77.net at all, but can connect to everywhere else on the net without any issues. I'll try again later or tomorrow.
Comment #12
LuRcH@www.daihatsu-drivers.co.uk commentedThe structure of the MySQL table itself is not changed, so if you want you can safely use the patch, and if it not work in your case for whatever reason you can revert back to using the original 6.x-1.2 version.
Comment #13
rfayWhy don't we go ahead and get the software77 patch in there. Looks like it's still being updated.
Comment #14
rfaySoftware77.net is long gone, so this issue has no resolution, and the patches are invalid.
http://ip-to-country.webhosting.info/ still shows last update in 2010.
Has anybody had success with other approaches? Modern web browsers want to do html5-type geolocation, which would be far better.
Comment #15
rfayComment #16
jamesoakleyI'd forgotten about this issue, it was so old. To be honest, I had long ago changed tack entirely. I now use MaxMind's GeoLite database, which is free, and use it with Apache's mod_geoip module and/or the GeoIP PECL extension.
Both can be queried in Drupal. For the PECL, there are a number of well-documented functions to return various geographical attributes; for the Apache module, the country and continent are accessible as server variables.
Comment #17
avpadernoI am closing this issue, as Drupal 6 is now not supported.