No matter what I do, I never seem to get HTML5 geolocation information from $SESSION with this module in the manner suggested in the documentation.
Printing $SESSION['ip_geoloc'] always gets this:
Array
(
[location] => Array
(
[ip_address] =>
)
)
I've tried with and without smart_ip. Smart IP does have location info in it when enabled, and this module prints a debug message showing that it has gotten this info. from Smart IP.
More importantly, I never get lat/long data in any way _except_ Smart IP. I am getting the popup showing a request for location data.
Debugging suggestions welcome, as I am just diving into this module and am not yet familiar with its code. Please note that I had the same (lack of) results with Smart IP's Device geolocation module.
Comments
Comment #1
adraskoy commentedComment #2
rdeboerIf it's the same in both Device Geolocation module and IP Geolocation, then there may be a common cause not related to either of the modules.
Not sure, what it can be.
Naturally, you have to be connected to the internet, accept to share your location when prompted or have the fallback (Smart IP with db configure) installed.
Comment #3
farald commentedUsing google geocode, does the browser ever ask for your location? I had some problems with chromium browser (Linux), never updating the location when using google geocode. Don't know if that was a browser code issue, but try using another browser.
If you don't get the requester, it's probably a js issue (Black & white ?)
If you do get the requester: Using firebug, check if the request to google geocode goes well. There should be a POST request immediately after you accept the geocode bubble. If this POST happens 10-20 sec after accepting, the request has failed. Since the request is only done trough this POST, it must work for you to get the lat/lon in $_SESSION.
If you've got xdebug running, you can place a break in the ajax reciever
ip_geoloc_current_location_ajax_recipient(), and in the session initiatorip_geoloc_init(), and see what happens, if anything.Hope this helps!
Comment #4
rdeboer